Package com.adobe.xmp.schema.model
Interface ArrayType
- All Superinterfaces:
PropertyType,Serializable
Describes an XMP array property.
There are four types of arrays:
- Bag (unorderen array)
- Seq (ordered array)
- Alt (alternative array)
- Alt-Text (language alternative, syntactically equal to Alt, but contains only text properties with a language qualifier)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration of the four XMP array forms. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemQualifier(PropertyDescription qualifier) Add an array item qualifier to each array item.getForm()getItemQualifier(String namespaceURI, String localName) Gets an item qualifier by namespace and local name if existing.booleanvoidremoveItemQualifier(String namespaceURI, String localName) Removes an item qualifier by namespace and local name.voidsetItemType(PropertyType itemType) Methods inherited from interface com.adobe.xmp.schema.model.PropertyType
accept, getDescription, getLabel, getName, getRule, setDescription, setLabel, setName, setRule
-
Method Details
-
getForm
ArrayType.ArrayForm getForm()- Returns:
- Returns the array form.
-
getItemType
PropertyType getItemType()- Returns:
- Returns the type of the array items. This can be any XMP type including another array. Note: All array items must have the same type, even if RDF does not enforce this.
-
setItemType
- Parameters:
itemType- the type of the array items. This can be any XMP type including another array. Note: All array items must have the same type, even if RDF does not enforce this.
-
addItemQualifier
Add an array item qualifier to each array item. As array items have the same type in XMP, the qualfiers are valid for all array items.- Parameters:
qualifier- the qualifier to add.
-
getItemQualifier
Gets an item qualifier by namespace and local name if existing.- Parameters:
namespaceURI- the qualifier's namespacelocalName- the qualifier's local name- Returns:
- Returns the qualifier or
nullif not existing.
-
getItemQualifiers
List<PropertyDescription> getItemQualifiers()- Returns:
- Returns the collection of all item qualifiers
-
removeItemQualifier
Removes an item qualifier by namespace and local name.- Parameters:
namespaceURI- the qualifier's namespacelocalName- the qualifier's local name
-
hasItemQualifiers
boolean hasItemQualifiers()- Returns:
- Returns true if the property has at least on qualifier.
-