XmpElementBase

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage

public abstract class XmpElementBase extends CustomPackage

Represents base XMP element that contains attributes.

Methods

Method Description
setAttribute(String attribute, String value) Adds the attribute.
clearAttributes() Removes all attributes.
containsAttribute(String attribute) Determines whether the element contains a specific attribute.
getAttribute(String attribute) Gets the attribute.

setAttribute(String attribute, String value)

public void setAttribute(String attribute, String value)

Adds the attribute.

Parameters:

Parameter Type Description
attribute java.lang.String Attribute key.
value java.lang.String Attribute value.

clearAttributes()

public final void clearAttributes()

Removes all attributes.

containsAttribute(String attribute)

public final boolean containsAttribute(String attribute)

Determines whether the element contains a specific attribute.

Parameters:

Parameter Type Description
attribute java.lang.String Attribute name.

Returns: boolean - true if attribute is exist; otherwise false.

getAttribute(String attribute)

public final String getAttribute(String attribute)

Gets the attribute.

Parameters:

Parameter Type Description
attribute java.lang.String The attribute.

Returns: java.lang.String - The attribute value.