Package com.adobe.xmp.schema.model
Interface ArrayType
-
- All Superinterfaces:
PropertyType
,java.io.Serializable
public interface ArrayType extends PropertyType
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 Classes Modifier and Type Interface Description static class
ArrayType.ArrayForm
Enumeration of the four XMP array forms.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addItemQualifier(PropertyDescription qualifier)
Add an array item qualifier to each array item.ArrayType.ArrayForm
getForm()
PropertyDescription
getItemQualifier(java.lang.String namespaceURI, java.lang.String localName)
Gets an item qualifier by namespace and local name if existing.java.util.List<PropertyDescription>
getItemQualifiers()
PropertyType
getItemType()
boolean
hasItemQualifiers()
void
removeItemQualifier(java.lang.String namespaceURI, java.lang.String localName)
Removes an item qualifier by namespace and local name.void
setItemType(PropertyType itemType)
-
Methods inherited from interface com.adobe.xmp.schema.model.PropertyType
accept, getDescription, getLabel, getName, getRule, setDescription, setLabel, setName, setRule
-
-
-
-
Method Detail
-
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
void setItemType(PropertyType itemType)
- 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
void addItemQualifier(PropertyDescription qualifier)
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
PropertyDescription getItemQualifier(java.lang.String namespaceURI, java.lang.String localName)
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
null
if not existing.
-
getItemQualifiers
java.util.List<PropertyDescription> getItemQualifiers()
- Returns:
- Returns the collection of all item qualifiers
-
removeItemQualifier
void removeItemQualifier(java.lang.String namespaceURI, java.lang.String localName)
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.
-
-