Class DataWithExtAttributes

    • Constructor Detail

      • DataWithExtAttributes

        protected DataWithExtAttributes()
        Creates an empty DataWithExtAttributes object.
      • DataWithExtAttributes

        protected DataWithExtAttributes​(DataWithExtAttributes original)
        Copy constructor.
        Parameters:
        original - the original object to duplicate.
    • Method Detail

      • 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.
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class Object