Packages

 

com.aspose.cad.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.

      • equals

        public 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 the specified System.Object, is equal to this instance.

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