Class ScalarDataNode

  • All Implemented Interfaces:
    DataNode

    public class ScalarDataNode
    extends DefaultDataNode
    Simple DataNode for representing scalar values.
    • Constructor Detail

      • ScalarDataNode

        public ScalarDataNode​(java.lang.String name,
                              java.lang.String type,
                              java.lang.String value)
        Constructs a ScalarDataNode with a given name and value.
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: DataNode
        Gets a concise description of this object. The form of the description will depend on the type of node, but it might detail the shape or type of data represented, or otherwise give some information additional to the name. It should not include the return value of the getName method, since they may be presented together. It should be on one line, and preferably no longer than around 70 characters. The null value may be returned if there is nothing to say.
        Specified by:
        getDescription in interface DataNode
        Overrides:
        getDescription in class DefaultDataNode
        Returns:
        a short string describing this object
      • nodeType

        public java.lang.String nodeType()