uk.ac.starlink.datanode.factory
Class VODataNodeBuilder

java.lang.Object
  extended by uk.ac.starlink.datanode.factory.DataNodeBuilder
      extended by uk.ac.starlink.datanode.factory.VODataNodeBuilder

public class VODataNodeBuilder
extends DataNodeBuilder


Constructor Summary
VODataNodeBuilder()
           
 
Method Summary
 DataNode buildNode(Object obj)
          Builds a DataNode from a given object.
 boolean suitable(Class objClass)
          Determine whether this builder can be used to work on an object of a given class.
 
Methods inherited from class uk.ac.starlink.datanode.factory.DataNodeBuilder
getBuilders, getNodeClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VODataNodeBuilder

public VODataNodeBuilder()
Method Detail

suitable

public boolean suitable(Class objClass)
Description copied from class: DataNodeBuilder
Determine whether this builder can be used to work on an object of a given class.

Specified by:
suitable in class DataNodeBuilder
Parameters:
objClass - the class of an object which might be passed as the argument of buildNode
Returns:
whether it's OK to do that

buildNode

public DataNode buildNode(Object obj)
                   throws NoSuchDataException
Description copied from class: DataNodeBuilder
Builds a DataNode from a given object.

Specified by:
buildNode in class DataNodeBuilder
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


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.