XmpPackage
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public class XmpPackage implements Iterable<Map.Entry<String,XmpValue>>
Represents base abstraction for XMP package.
Methods
| Method | Description |
|---|---|
| getXmlNamespace() | Gets the XML namespace. |
| getPrefix() | Gets the prefix. |
| getNamespaceUri() | Gets the namespace URI. |
| getKeys() | Gets the keys in XMP package. |
| getCount() | Gets the XMP key count. |
| get_Item(String key) | Gets the first XMP attribute or element value with by specified key. |
| set_Item(String key, XmpValue value) | Sets the first XMP attribute or element value with by specified key. |
| containsKey(String key) | Determines whether this collection specified key. |
| addValue(String key, String value) | Adds the value to the specified key. |
| addValue(String key, Object value) | Adds the value to the specified key. |
| tryGetValue(String key, XmpValue[] value) | Gets the value by the key. |
| remove(String key) | Removes the first element or attribute value with the specified key. |
| clear() | Clears this instance. |
| setValue(String key, IXmlValue value) | Sets the value. |
| setValue(String key, IXmpType value) | Sets the value. |
| setXmpTypeValue(String key, XmpTypeBase value) | Sets the XMP type value. |
| iterator() | Returns an enumerator that iterates through the collection. |
getXmlNamespace()
public final String getXmlNamespace()
Gets the XML namespace.
Value: The XML namespace.
Returns: java.lang.String - the XML namespace.
getPrefix()
public final String getPrefix()
Gets the prefix.
Value: The prefix.
Returns: java.lang.String - the prefix.
getNamespaceUri()
public final String getNamespaceUri()
Gets the namespace URI.
Value: The namespace URI.
Returns: java.lang.String - the namespace URI.
getKeys()
public System.Collections.Generic.IGenericCollection<String> getKeys()
Gets the keys in XMP package.
Value: The keys in XMP package.
Returns: com.aspose.ms.System.Collections.Generic.IGenericCollection<java.lang.String> - the keys in XMP package.
getCount()
public final int getCount()
Gets the XMP key count.
Returns: int - the XMP key count.
get_Item(String key)
public XmpValue get_Item(String key)
Gets the first XMP attribute or element value with by specified key.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The key that identifies value. Value: The XmpValue. |
Returns: XmpValue - Returns the XmpValue by the specified key.
set_Item(String key, XmpValue value)
public void set_Item(String key, XmpValue value)
Sets the first XMP attribute or element value with by specified key.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The key that identifies value. Value: The XmpValue. |
| value | XmpValue | the first XMP attribute or element value with by specified key. |
containsKey(String key)
public boolean containsKey(String key)
Determines whether this collection specified key.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The key to be checked. |
Returns:
boolean - if the `IDictionary\{TKey, TValue\}` contains the specified key; otherwise,.
addValue(String key, String value)
public void addValue(String key, String value)
Adds the value to the specified key.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The string representation of key that is identified with added value. |
| value | java.lang.String | The value to add to. |
addValue(String key, Object value)
public void addValue(String key, Object value)
Adds the value to the specified key.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The string representation of key that is identified with added value. |
| value | java.lang.Object | The value to add to. |
tryGetValue(String key, XmpValue[] value)
public final boolean tryGetValue(String key, XmpValue[] value)
Gets the value by the key.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The XMP element key. |
| value | XmpValue[] | The XMP value. |
Returns:
boolean - , if the `IDictionary\{TKey, TValue\}` contains the `key`; otherwise, .
remove(String key)
public boolean remove(String key)
Removes the first element or attribute value with the specified key.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The string representation of key that is identified with removed value. |
Returns: boolean - Returns true if the value with the specified key was removed.
clear()
public void clear()
Clears this instance.
setValue(String key, IXmlValue value)
public void setValue(String key, IXmlValue value)
Sets the value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The string representation of key that is identified with added value. |
| value | IXmlValue | The value to add to. |
setValue(String key, IXmpType value)
public void setValue(String key, IXmpType value)
Sets the value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The string representation of key that is identified with added value. |
| value | IXmpType | The value to add to. |
setXmpTypeValue(String key, XmpTypeBase value)
public void setXmpTypeValue(String key, XmpTypeBase value)
Sets the XMP type value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.String | The string representation of key that is identified with set value. |
| value | XmpTypeBase | The value to set to. |
iterator()
public final Iterator<Map.Entry<String,XmpValue>> iterator()
Returns an enumerator that iterates through the collection.
Returns:
java.util.Iterator<java.util.Map.Entry<java.lang.String,com.aspose.imaging.xmp.types.XmpValue» - A System.Collections.Generic.IEnumerator\1` that can be used to iterate through the collection.