Package org.apache.xmpbox.type
Class ArrayProperty
- java.lang.Object
-
- org.apache.xmpbox.type.AbstractField
-
- org.apache.xmpbox.type.AbstractComplexProperty
-
- org.apache.xmpbox.type.ArrayProperty
-
public class ArrayProperty extends AbstractComplexProperty
Object representation of a Complex XMP Property (Represents Ordered, Unordered and Alternative Arrays builder)
-
-
Field Summary
Fields Modifier and Type Field Description private Cardinality
arrayType
private java.lang.String
namespace
private java.lang.String
prefix
-
Constructor Summary
Constructors Constructor Description ArrayProperty(XMPMetadata metadata, java.lang.String namespace, java.lang.String prefix, java.lang.String propertyName, Cardinality type)
Constructor of a complex property
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cardinality
getArrayType()
java.util.List<java.lang.String>
getElementsAsString()
java.lang.String
getNamespace()
Get the namespace URI of this entityjava.lang.String
getPrefix()
Get the prefix of this entity-
Methods inherited from class org.apache.xmpbox.type.AbstractComplexProperty
addNamespace, addProperty, getAllNamespacesWithPrefix, getAllProperties, getArrayProperty, getContainer, getFirstEquivalentProperty, getNamespacePrefix, getProperty, removeProperty
-
Methods inherited from class org.apache.xmpbox.type.AbstractField
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
-
-
-
-
Field Detail
-
arrayType
private final Cardinality arrayType
-
namespace
private final java.lang.String namespace
-
prefix
private final java.lang.String prefix
-
-
Constructor Detail
-
ArrayProperty
public ArrayProperty(XMPMetadata metadata, java.lang.String namespace, java.lang.String prefix, java.lang.String propertyName, Cardinality type)
Constructor of a complex property- Parameters:
metadata
- The metadata to attach to this propertynamespace
- The namespace URI to associate to this propertyprefix
- The prefix to set for this propertypropertyName
- The local Name of this propertytype
- type of complexProperty (Bag, Seq, Alt)
-
-
Method Detail
-
getArrayType
public Cardinality getArrayType()
-
getElementsAsString
public java.util.List<java.lang.String> getElementsAsString()
-
getNamespace
public final java.lang.String getNamespace()
Get the namespace URI of this entity- Specified by:
getNamespace
in classAbstractField
- Returns:
- the namespace URI
-
getPrefix
public java.lang.String getPrefix()
Get the prefix of this entity- Specified by:
getPrefix
in classAbstractField
- Returns:
- the prefix specified
-
-