public class XmpPackage extends Object implements IXmlValue, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair>
Represents base abstraction for XMP package.
| Constructor and Description |
|---|
XmpPackage(String prefix,
String namespaceUri)
Initializes a new instance of the
XmpPackage class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(String key,
String value)
Adds the value.
|
void |
clear()
Clears this instance.
|
boolean |
containsKey(String key)
Determines whether the specified key contains key.
|
Object |
get_Item(String key)
Gets or sets the
Object with the specified key. |
com.aspose.ms.System.Collections.Generic.Dictionary.KeyCollection |
getKeys()
Gets the keys in XMP package.
|
String |
getNamespaceUri()
Gets the namespace URI.
|
String |
getPrefix()
Gets the prefix.
|
String |
getXmlNamespace()
Gets the XML namespace.
|
String |
getXmlValue()
Converts XMP value to the XML representation.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair> |
iterator()
Returns an enumerator that iterates through the collection.
|
boolean |
remove(String key)
Remove the value with the specified key.
|
void |
set_Item(String key,
Object value)
Sets the
Object with the specified key. |
void |
setValue(String key,
IXmlValue value)
Sets the value.
|
void |
setXmpBoolean(String key,
String boolValue)
Sets the XMP boolean value.
|
void |
setXmpGuid(String key,
String guid)
Sets the XMP unique identifier.
|
void |
setXmpTypeValue(String key,
XmpTypeBase value)
Sets the XMP type value.
|
public String getXmlNamespace()
Gets the XML namespace.
Value: The XML namespace.public String getPrefix()
Gets the prefix.
Value: The prefix.public String getNamespaceUri()
Gets the namespace URI.
Value: The namespace URI.public com.aspose.ms.System.Collections.Generic.Dictionary.KeyCollection getKeys()
Gets the keys in XMP package.
Value: The keys in XMP package.public boolean containsKey(String key)
Determines whether the specified key contains key.
key - The key to be checked.public Object get_Item(String key)
Gets or sets the Object with the specified key.
key - The key that identifies value.Object with the specified key.public void set_Item(String key, Object value)
Sets the Object with the specified key.
key - The key that identifies value.value - The Object value.public void addValue(String key, String value)
Adds the value.
key - The string representation of key that is identified with added value.value - The value to add to.com.aspose.ms.System.ArgumentNullException - key is null.public boolean remove(String key)
Remove the value with the specified key.
key - The string representation of key that is identified with removed value.public void clear()
Clears this instance.
public void setValue(String key, IXmlValue value)
Sets the value.
key - The string representation of key that is identified with added value.value - The value to add to.public void setXmpTypeValue(String key, XmpTypeBase value)
Sets the XMP type value.
key - The string representation of key that is identified with set value.value - The value to set to.public String getXmlValue()
Converts XMP value to the XML representation.
getXmlValue in interface IXmlValuepublic com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair> iterator()
Returns an enumerator that iterates through the collection.
T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.public void setXmpGuid(String key, String guid)
Sets the XMP unique identifier.
key - The string representation of key that is identified with set GUID value.guid - The unique identifier.