Class OrderedObjectStatement

  • All Implemented Interfaces:
    Comparable<Object>

    public class OrderedObjectStatement
    extends gov.nasa.pds.tools.label.ObjectStatement
    An extension of the ObjectStatement object in order to preserve the ordering of the statements when they are added to the object. This comes in handy in that it allows the statements to be printed in order. The parent class stores statements in a Hash Map and sorts it by object name.
    Author:
    mcayanan
    • Field Summary

      • Fields inherited from class gov.nasa.pds.tools.label.Statement

        comment, identifier, label, lineNumber, sourceFile, sourceURI
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedObjectStatement​(gov.nasa.pds.tools.label.Label sourceLabel, String identifier)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addStatement​(gov.nasa.pds.tools.label.Statement statement)  
      List<gov.nasa.pds.tools.label.Statement> getStatements()  
      • Methods inherited from class gov.nasa.pds.tools.label.ObjectStatement

        equals, getAttribute, getAttribute, getAttributes, getGroups, getGroups, getGroups, getObjects, getObjects, getObjects, getPointer, getPointers, hasAttribute, hasGroup, hashcode, hasObject, hasPointer
      • Methods inherited from class gov.nasa.pds.tools.label.Statement

        attachComment, compareTo, getComment, getIdentifier, getLabel, getLineNumber, getSourceFile, getSourceString, getSourceURI, toString, validateCommentType, validateElementType, validateGroupType, validateObjectType, validatePointerType, validateType
    • Constructor Detail

      • OrderedObjectStatement

        public OrderedObjectStatement​(gov.nasa.pds.tools.label.Label sourceLabel,
                                      String identifier)
        Constructor.
        Parameters:
        sourceLabel - The label the object belongs to.
        identifier - The name of the object.
    • Method Detail

      • addStatement

        public void addStatement​(gov.nasa.pds.tools.label.Statement statement)
        Overrides:
        addStatement in class gov.nasa.pds.tools.label.ObjectStatement
      • getStatements

        public List<gov.nasa.pds.tools.label.Statement> getStatements()
        Overrides:
        getStatements in class gov.nasa.pds.tools.label.ObjectStatement