Package uk.ac.starlink.datanode.factory
Class StringDataNodeBuilder
java.lang.Object
uk.ac.starlink.datanode.factory.DataNodeBuilder
uk.ac.starlink.datanode.factory.StringDataNodeBuilder
-
Method Summary
Modifier and TypeMethodDescriptionBuilds a DataNode from a given object.static StringDataNodeBuilderObtains the singleton instance of this class.booleanDetermine whether this builder can be used to work on an object of a given class.toString()Methods inherited from class uk.ac.starlink.datanode.factory.DataNodeBuilder
getBuilders, getNodeClass
-
Method Details
-
getInstance
Obtains the singleton instance of this class. -
suitable
Description copied from class:DataNodeBuilderDetermine whether this builder can be used to work on an object of a given class.- Specified by:
suitablein classDataNodeBuilder- Parameters:
objClass- the class of an object which might be passed as the argument ofbuildNode- Returns:
- whether it's OK to do that
-
buildNode
Description copied from class:DataNodeBuilderBuilds a DataNode from a given object.- Specified by:
buildNodein classDataNodeBuilder- Parameters:
obj- the object to build a datanode from- Returns:
- a new DataNode made from
obj - Throws:
NoSuchDataException- if no new node can be created
-
toString
-