Class SourceDataNodeBuilder


  • public class SourceDataNodeBuilder
    extends DataNodeBuilder
    A DataNodebuilder which tries to build a DataNode from a DataSource object. It examines the file and may invoke a constructor of a DataNode subclass if it knows of one which is likely to be suitable. It will only try constructors which might have a chance.

    Part of its duties involve constructing a DOM from a DataSource which looks like XML and offering it to known XML consumers.

    • Method Detail

      • getInstance

        public static SourceDataNodeBuilder getInstance()
        Obtains the singleton instance of this class.
      • suitable

        public boolean suitable​(java.lang.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object