com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class XmpElementBase

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<XmpElementBase>
    Direct Known Subclasses:
    XmpMeta, XmpRdfRoot


    public abstract class XmpElementBase
    extends Object
    implements com.aspose.ms.System.IEquatable<XmpElementBase>

    Represents base XMP element contains attributes.

    • Field Detail

      • attributes

        protected final com.aspose.ms.System.Collections.Generic.Dictionary<String,String> attributes

        The XMPmeta element can have any number of attributes.

    • Constructor Detail

      • XmpElementBase

        protected XmpElementBase()

        Initializes a new instance of the XmpElementBase class.

    • Method Detail

      • addAttribute

        public void addAttribute(String attribute,
                        String value)

        Adds the attribute.

        Parameters:
        attribute - Attribute key.
        value - Attribute value.
      • clearAttributes

        public void clearAttributes()

        Removes all attributes.

      • containsAttribute

        public final boolean containsAttribute(String attribute)

        Determines whether element contains specific attribute.

        Parameters:
        attribute - Attribute name.
        Returns:
        true if attribute is exist; otherwise false.
      • getAttribute

        public String getAttribute(String attribute)

        Gets the attribute.

        Parameters:
        attribute - The attribute.
        Returns:
        attribute value.
      • equals

        public final boolean equals(XmpElementBase other)

        Indicates whether the current object is equal to another object of the same type.

        Parameters:
        other - An object to compare with this object.
        Returns:
        true if the current object is equal to the other parameter; otherwise, false.
      • equals

        public boolean equals(Object other)

        Determines whether XmpElementBase and other are considered equal.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<XmpElementBase>
        Overrides:
        equals in class Object
        Parameters:
        other - Compared object.
        Returns:
        true if objects are equal; otherwise false.
      • hashCode

        public int hashCode()

        Returns a hash code for this instance.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.