Packages

 

com.aspose.imaging.xmp

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.

    • Method Detail

      • addAttribute

        public void addAttribute(String attribute,
                                 String value)

        Adds the attribute.

        Parameters:
        attribute - The attribute.
        value - The value.
      • getAttribute

        public String getAttribute(String attribute)

        Gets the attribute.

        Parameters:
        attribute - The attribute.
        Returns:
        Returns the attribute for specified attribute name.
      • clearAttributes

        public void clearAttributes()

        Removes all attributes.

      • isEquals

        public boolean isEquals(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 obj)

        Determines whether the specified Object, is equal to this instance.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<XmpElementBase>
        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with this instance.
        Returns:
        true if the specified Object is equal to this instance; 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.