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)
    Additionally, a rule can be added to contrain an array to have a minimum and/or maximum number of Items (LengthRule).
    • Method Detail

      • 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 namespace
        localName - 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 namespace
        localName - the qualifier's local name
      • hasItemQualifiers

        boolean hasItemQualifiers()
        Returns:
        Returns true if the property has at least on qualifier.