|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.datanode.factory.DataNodeBuilder
public abstract class DataNodeBuilder
Constructs a DataNode from an Object using a particular method or constructor. Instances of this class are the basic building blocks used by DataNodeFactory to do its DataNode construction.
Constructor Summary | |
---|---|
DataNodeBuilder()
|
Method Summary | |
---|---|
abstract DataNode |
buildNode(Object obj)
Builds a DataNode from a given object. |
static DataNodeBuilder[] |
getBuilders(Class clazz)
Returns an array of DataNodeBuilder objects which are all the ones that can be found by reflection in the supplied class. |
Class |
getNodeClass()
Returns the class which all nodes returned by the buildNode(java.lang.Object)
method will belong to. |
abstract boolean |
suitable(Class objClass)
Determine whether this builder can be used to work on an object of a given class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataNodeBuilder()
Method Detail |
---|
public abstract boolean suitable(Class objClass)
objClass
- the class of an object which might be passed
as the argument of buildNode
public abstract DataNode buildNode(Object obj) throws NoSuchDataException
obj
- the object to build a datanode from
NoSuchDataException
- if no new node can be createdpublic Class getNodeClass()
buildNode(java.lang.Object)
method will belong to. DataNodeBuilder's implementation of this
returns DataNode.class, but implementations which can
be more specific should override this method.
public static DataNodeBuilder[] getBuilders(Class clazz)
clazz
- a class to reflect on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |