Class Item

    • Constructor Detail

      • Item

        public Item()
        Creates a new Item object.
      • Item

        public Item​(Item original)
        Copy constructor
        Parameters:
        original - the original object to duplicate.
      • Item

        public Item​(String property)
        Constructor.
        Parameters:
        property - the value for the REQUIRED attribute property.
        See Also:
        setProperty(String)
    • Method Detail

      • setText

        public void setText​(String text)
        Sets the contained text.
        Parameters:
        text - the contained text.
      • getText

        public String getText()
        Gets the contained text.
        Returns:
        the contained text.
      • setProperty

        public final void setProperty​(String property)
        Sets the value of the property attribute. The value MUST be either content to signify the content of an element, or the name of the attribute relating to the revision data. If either a null or an empty string is provided, an IllegalArgumentException is thrown.
        Parameters:
        property - the value of the property attribute.
      • getProperty

        public String getProperty()
        Gets the value of the property attribute.
        Returns:
        the value of the property attribute.
      • getAttributesString

        public String getAttributesString()
        Gets the attributes string.
        Returns:
        the attributes string.
      • getOpeningTagName

        public String getOpeningTagName()
        Gets the opening item tag name.
        Returns:
        the opening item tag name.
      • getClosingTag

        public String getClosingTag()
        Gets the complete item closing tag.
        Returns:
        the complete item closing tag.
      • equals

        public boolean equals​(Object obj)
        Description copied from class: DataWithExtAttributes
        Indicates if this object is equals to a given one.
        Overrides:
        equals in class DataWithExtAttributes
        Parameters:
        obj - the other object to compare.
        Returns:
        true if the two objects are identical.