Package org.apache.xmpbox.type
Class AbstractField
java.lang.Object
org.apache.xmpbox.type.AbstractField
- Direct Known Subclasses:
AbstractComplexProperty
,AbstractSimpleProperty
Abstract Object representation of a XMP 'field' (-> Properties and specific Schemas)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractField
(XMPMetadata metadata, String propertyName) Constructor of a XMP Field -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
containsAttribute
(String qualifiedName) Check if an attribute is declared for this entityGet attributes list defined for this entityfinal Attribute
getAttribute
(String qualifiedName) Get an attribute with its name in this entityfinal XMPMetadata
abstract String
abstract String
Get the prefix of this entityfinal String
Get the propertyName (or localName)final void
removeAttribute
(String qualifiedName) Remove an attribute of this entityfinal void
setAttribute
(Attribute value) Set a new attribute for this entityfinal void
setPropertyName
(String value)
-
Field Details
-
metadata
-
propertyName
-
attributes
-
-
Constructor Details
-
AbstractField
Constructor of a XMP Field- Parameters:
metadata
- The metadata to attach to this fieldpropertyName
- the local name to set for this field
-
-
Method Details
-
getPropertyName
Get the propertyName (or localName)- Returns:
- the local Name
-
setPropertyName
-
setAttribute
Set a new attribute for this entity- Parameters:
value
- The Attribute property to add
-
containsAttribute
Check if an attribute is declared for this entity- Parameters:
qualifiedName
- the full qualified name of the attribute concerned- Returns:
- true if attribute is present
-
getAttribute
Get an attribute with its name in this entity- Parameters:
qualifiedName
- the full qualified name of the attribute wanted- Returns:
- The attribute property
-
getAllAttributes
Get attributes list defined for this entity- Returns:
- Attributes list
-
removeAttribute
Remove an attribute of this entity- Parameters:
qualifiedName
- the full qualified name of the attribute wanted
-
getMetadata
-
getNamespace
-
getPrefix
Get the prefix of this entity- Returns:
- the prefix specified
-