public abstract class AbstractField
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Attribute> |
attributes |
private XMPMetadata |
metadata |
private java.lang.String |
propertyName |
Constructor and Description |
---|
AbstractField(XMPMetadata metadata,
java.lang.String propertyName)
Constructor of a XMP Field
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsAttribute(java.lang.String qualifiedName)
Check if an attribute is declared for this entity
|
java.util.List<Attribute> |
getAllAttributes()
Get attributes list defined for this entity
|
Attribute |
getAttribute(java.lang.String qualifiedName)
Get an attribute with its name in this entity
|
XMPMetadata |
getMetadata() |
abstract java.lang.String |
getNamespace() |
abstract java.lang.String |
getPrefix()
Get the prefix of this entity
|
java.lang.String |
getPropertyName()
Get the propertyName (or localName)
|
void |
removeAttribute(java.lang.String qualifiedName)
Remove an attribute of this entity
|
void |
setAttribute(Attribute value)
Set a new attribute for this entity
|
void |
setPropertyName(java.lang.String value) |
private final XMPMetadata metadata
private java.lang.String propertyName
private final java.util.Map<java.lang.String,Attribute> attributes
public AbstractField(XMPMetadata metadata, java.lang.String propertyName)
metadata
- The metadata to attach to this fieldpropertyName
- the local name to set for this fieldpublic final java.lang.String getPropertyName()
public final void setPropertyName(java.lang.String value)
public final void setAttribute(Attribute value)
value
- The Attribute property to addpublic final boolean containsAttribute(java.lang.String qualifiedName)
qualifiedName
- the full qualified name of the attribute concernedpublic final Attribute getAttribute(java.lang.String qualifiedName)
qualifiedName
- the full qualified name of the attribute wantedpublic final java.util.List<Attribute> getAllAttributes()
public final void removeAttribute(java.lang.String qualifiedName)
qualifiedName
- the full qualified name of the attribute wantedpublic final XMPMetadata getMetadata()
public abstract java.lang.String getNamespace()
public abstract java.lang.String getPrefix()