XmpElementBase
Leave feedback
On this page
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.
| 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. |
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. |
public final void clearAttributes()
Removes all attributes.
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.
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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.