Top Fields Constructors Methods
org.apache.xmpbox.type

public abstract Class AbstractComplexProperty

extends AbstractField
Class Inheritance
Known Direct Subclasses
org.apache.xmpbox.type.AbstractStructuredType, org.apache.xmpbox.type.ArrayProperty
Imports
java.util.HashMap, .List, .Map, org.apache.xmpbox.XMPMetadata

Field Summary

Modifier and TypeField and Description
private final ComplexPropertyContainer
private final Map<String, String>

Constructor Summary

AccessConstructor and Description
public
AbstractComplexProperty(XMPMetadata metadata, String propertyName)

Method Summary

Modifier and TypeMethod and Description
public void
addNamespace(String namespace, String prefix)

public final void
addProperty(AbstractField
the property to add
obj
)

Add a property to the current structure

public Map<String, String>
public final List<AbstractField>
public final ArrayProperty
public final ComplexPropertyContainer
protected final AbstractField
public String
public final AbstractField
getProperty(String fieldName)

public final void
removeProperty(AbstractField
The property to remove
property
)

Remove a property

Inherited from org.apache.xmpbox.type.AbstractField:
containsAttributegetAllAttributesgetAttributegetMetadatagetNamespacegetPrefixgetPropertyNameremoveAttributesetAttributesetPropertyName

Field Detail

containerback to summary
private final ComplexPropertyContainer container
namespaceToPrefixback to summary
private final Map<String, String> namespaceToPrefix

Constructor Detail

AbstractComplexPropertyback to summary
public AbstractComplexProperty(XMPMetadata metadata, String propertyName)

Method Detail

addNamespaceback to summary
public void addNamespace(String namespace, String prefix)
addPropertyback to summary
public final void addProperty(AbstractField obj)

Add a property to the current structure

Parameters
obj:AbstractField

the property to add

getAllNamespacesWithPrefixback to summary
public Map<String, String> getAllNamespacesWithPrefix()
getAllPropertiesback to summary
public final List<AbstractField> getAllProperties()
getArrayPropertyback to summary
public final ArrayProperty getArrayProperty(String fieldName)
getContainerback to summary
public final ComplexPropertyContainer getContainer()
getFirstEquivalentPropertyback to summary
protected final AbstractField getFirstEquivalentProperty(String localName, Class<? extends AbstractField> type)
getNamespacePrefixback to summary
public String getNamespacePrefix(String namespace)
getPropertyback to summary
public final AbstractField getProperty(String fieldName)
removePropertyback to summary
public final void removeProperty(AbstractField property)

Remove a property

Parameters
property:AbstractField

The property to remove