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