Packages

 

com.aspose.imaging.xmp

Class XmpPackage

    • Constructor Detail

      • XmpPackage

        public XmpPackage(String prefix,
                          String namespaceUri)

        Initializes a new instance of the XmpPackage class.

        Parameters:
        prefix - The prefix.
        namespaceUri - The namespace URI.
    • Method Detail

      • getXmlNamespace

        public String getXmlNamespace()

        Gets the XML namespace.

        Value: The XML namespace.
      • getPrefix

        public String getPrefix()

        Gets the prefix.

        Value: The prefix.
      • getNamespaceUri

        public String getNamespaceUri()

        Gets the namespace URI.

        Value: The namespace URI.
      • getKeys

        public com.aspose.ms.System.Collections.Generic.Dictionary.KeyCollection<String,Object> getKeys()

        Gets the keys in XMP package.

        Value: The keys in XMP package.
      • containsKey

        public boolean containsKey(String key)

        Determines whether the specified key contains key.

        Parameters:
        key - The key to be checked.
        Returns:
        Returns true if the specified key contains key.
      • get_Item

        public Object get_Item(String key)

        Gets or sets the Object with the specified key.

        Parameters:
        key - The key that identifies value.
        Returns:
        Returns the Object with the specified key.
      • set_Item

        public void set_Item(String key,
                             Object value)

        Sets the Object with the specified key.

        Parameters:
        key - The key that identifies value.
        value - The Object value.
      • addValue

        public void addValue(String key,
                             String value)

        Adds the value.

        Parameters:
        key - The string representation of key that is identified with added value.
        value - The value to add to.
        Throws:
        com.aspose.ms.System.ArgumentNullException - key is null.
      • remove

        public boolean remove(String key)

        Remove the value with the specified key.

        Parameters:
        key - The string representation of key that is identified with removed value.
        Returns:
        Returns true if the value with the specified key was removed.
      • clear

        public void clear()

        Clears this instance.

      • setValue

        public void setValue(String key,
                             IXmlValue value)

        Sets the value.

        Parameters:
        key - The string representation of key that is identified with added value.
        value - The value to add to.
      • setXmpTypeValue

        public void setXmpTypeValue(String key,
                                    XmpTypeBase value)

        Sets the XMP type value.

        Parameters:
        key - The string representation of key that is identified with set value.
        value - The value to set to.
      • getXmlValue

        public String getXmlValue()

        Converts XMP value to the XML representation.

        Specified by:
        getXmlValue in interface IXmlValue
        Returns:
        Returns the XMP value converted to the XML representation.
      • iterator

        public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>>
        Specified by:
        iterator in interface Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,Object>>
        Returns:
        A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • setXmpGuid

        public void setXmpGuid(String key,
                               String guid)

        Sets the XMP unique identifier.

        Parameters:
        key - The string representation of key that is identified with set GUID value.
        guid - The unique identifier.
      • setXmpBoolean

        public void setXmpBoolean(String key,
                                  String boolValue)

        Sets the XMP boolean value.

        Parameters:
        key - The string representation of key that is identified with set value.
        boolValue - The boolean value.