Class StartGroupData

    • Constructor Detail

      • StartGroupData

        public StartGroupData​(String id)
        Creates a new StartGroupData object with a given id.
        Parameters:
        id - the id to use for this group (should not be null, but allow it to set it later).
    • Method Detail

      • addNote

        public void addNote​(Note note)
        Description copied from interface: IWithNotes
        Adds a note to the list of notes.
        Specified by:
        addNote in interface IWithNotes
        Parameters:
        note - the note to add.
      • getNotes

        public Notes getNotes()
        Description copied from interface: IWithNotes
        Gets the Notes object for this object.
        Specified by:
        getNotes in interface IWithNotes
        Returns:
        the notes for this object. Never returns null.
      • getNoteCount

        public int getNoteCount()
        Description copied from interface: IWithNotes
        Gets the number of notes for this object.
        Specified by:
        getNoteCount in interface IWithNotes
        Returns:
        the number of notes available.
      • getName

        public String getName()
        Gets the name for this group.
        Returns:
        the name for this group (can be null).
      • setName

        public void setName​(String name)
        Sets the name for this group.
        Parameters:
        name - the new name to set (can be null).
      • getType

        public String getType()
        Gets the type for this group.
        Returns:
        the type for this group (can be null).
      • setType

        public void setType​(String type)
        Sets the type for this group. The value must have a prefix (for both unit and group elements)
        Parameters:
        type - the new type to set (can be null).
      • hasMetadata

        public boolean hasMetadata()
        Description copied from interface: IWithMetadata
        Indicates if the object has metadata.
        Specified by:
        hasMetadata in interface IWithMetadata
        Returns:
        true if the object has metadata, false otherwise.
      • getMetadata

        public Metadata getMetadata()
        Description copied from interface: IWithMetadata
        Gets the Metadata object for the parent, creates an empty of if there is none.
        Specified by:
        getMetadata in interface IWithMetadata
        Returns:
        the Metadata object for the parent (can be empty, but never null).
      • hasValidation

        public boolean hasValidation()
        Description copied from interface: IWithValidation
        Indicates if the object has validation data.
        Specified by:
        hasValidation in interface IWithValidation
        Returns:
        true if the object has validataion data, false otherwise.
      • hasChangeTrack

        public boolean hasChangeTrack()
        Description copied from interface: IWithChangeTrack
        Check if there is at least a revision for this element.
        Specified by:
        hasChangeTrack in interface IWithChangeTrack
        Returns:
        true if there is at least a revision for this element; false otherwise.
      • setId

        public void setId​(String id)
        Sets the id for this object.
        Parameters:
        id - the id for this object.
      • getId

        public String getId()
        Gets the id for this object.
        Returns:
        the id for this object.
      • hasExtAttribute

        public boolean hasExtAttribute()
        Description copied from interface: IWithExtAttributes
        Indicates if at least one extension attribute is present.
        Specified by:
        hasExtAttribute in interface IWithExtAttributes
        Returns:
        true if at least one extension attribute is present; false otherwise.
      • getExtAttributeValue

        public String getExtAttributeValue​(String namespaceURI,
                                           String localName)
        Description copied from interface: IWithExtAttributes
        Gets the value for a given extension attribute.
        Specified by:
        getExtAttributeValue in interface IWithExtAttributes
        Parameters:
        namespaceURI - the URI of the namespace for the attribute.
        localName - the name of the attribute.
        Returns:
        the value of the extension attribute, or null if it does not exist.