Constructor and Description |
---|
XmpDataCollection()
Initializes a new instance of the
XmpDataCollection class. |
XmpDataCollection(com.aspose.eps.xmp.SecureXmlDocument document)
Initializes a new instance of the
XmpDataCollection class. |
Modifier and Type | Method and Description |
---|---|
void |
add(Map.Entry<String,XmpValue> item)
Adds pair with key and value into this collection.
|
void |
add(String key,
Object value)
Adds an element with the provided key and value.
|
void |
addArray(String key,
XmpValue[] items)
Adds the array.
|
int |
addPacket()
Adds the packet.
|
void |
addStructure(String key,
Map.Entry<String,XmpValue>[] fields)
Adds the structure.
|
void |
clear()
Removes all elements from this collection.
|
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the
specified value.
|
void |
copyToArray(Map.Entry<String,XmpValue>[] array,
int arrayIndex)
Copies the elements of this collection to an array, starting at
a particular index.
|
Set<Map.Entry<String,XmpValue>> |
entrySet()
Returns a set of key/value pair objects.
|
XmpValue |
get(Object key)
Gets or sets the element with the specified key.
|
String |
getNamespaceURIByPrefix(String prefix)
Gets the namespace URI by prefix.
|
int |
getPacketsCount()
Gets the packets count.
|
String |
getPrefixByNamespaceURI(String namespaceURI)
Gets the prefix by namespace URI.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to this collection.
|
int |
getWorkingPacketIndex()
Gets the index of the working packet.
|
boolean |
isEmpty()
Returns true if this set contains no elements.
|
boolean |
isSynchronized()
Gets a value indicating whether access to this collection is
synchronized (thread safe).
|
Set<String> |
keySet()
Gets a set containing the keys.
|
XmpValue |
put(String key,
XmpValue value)
Adds an element with the provided key and value.
|
void |
putAll(Map<? extends String,? extends XmpValue> m)
Copies all of the mappings from the specified map to this map
(optional operation).
|
void |
registerNamespaceURI(String prefix,
String namespaceURI)
Registers the namespace URI in the working packet.
|
void |
registerNamespaceURI(String prefix,
String namespaceURI,
String schemaDescription)
Registers the namespace URI in the working packet.
|
XmpValue |
remove(Object key)
Removes the element with the specified key from the
T:System.Collections.IDictionary
object. |
XmpValue |
removeItem(Map.Entry<String,XmpValue> item)
Removes key/value pair from the colleciton.
|
void |
save(com.aspose.ms.System.IO.Stream stream,
String topLevelNodeName)
Saves the specified stream.
|
void |
save(String fileName,
String topLevelNodeName)
Saves the specified file name.
|
void |
savePacket(String fileName,
int packetIndex)
Saves the packet.
|
int |
size()
Gets the number of elements contained in this collection.
|
void |
switchWorkingPacket(int packetIndex)
Switches the working packet.
|
boolean |
tryGetValue(String key,
Object[] value)
Tries to find key in this collection and retrieves value if found.
|
boolean |
tryGetValue(String key,
XmpValue[] value)
Tries to find key in this collection and retrieves value if found.
|
Collection<XmpValue> |
values()
Gets a collection containing the values.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public XmpDataCollection()
Initializes a new instance of the XmpDataCollection
class.
public XmpDataCollection(com.aspose.eps.xmp.SecureXmlDocument document)
Initializes a new instance of the XmpDataCollection
class.
document
- The document.public int getWorkingPacketIndex()
Gets the index of the working packet.
Value: The index of the working packet.public void registerNamespaceURI(String prefix, String namespaceURI)
Registers the namespace URI in the working packet.
prefix
- The prefix.namespaceURI
- The namespace URI.public void registerNamespaceURI(String prefix, String namespaceURI, String schemaDescription)
Registers the namespace URI in the working packet.
prefix
- The prefix.namespaceURI
- The namespace URI.public String getNamespaceURIByPrefix(String prefix)
Gets the namespace URI by prefix.
prefix
- The prefix.public String getPrefixByNamespaceURI(String namespaceURI)
Gets the prefix by namespace URI.
namespaceURI
- The namespace URI.public void save(String fileName, String topLevelNodeName)
Saves the specified file name.
fileName
- Name of the file.topLevelNodeName
- Name of the top level node.public void savePacket(String fileName, int packetIndex)
Saves the packet.
fileName
- Name of the file.packetIndex
- Index of the packet.public void save(com.aspose.ms.System.IO.Stream stream, String topLevelNodeName)
Saves the specified stream.
stream
- The stream.topLevelNodeName
- Name of the top level node.public boolean containsKey(Object key)
containsKey
in interface Map<String,XmpValue>
key
- key whose presence in this map is to be testedpublic boolean containsValue(Object value)
containsValue
in interface Map<String,XmpValue>
value
- value whose presence in this map is to be testedpublic void add(String key, Object value)
Adds an element with the provided key and value.
key
- The key of the element to add.value
- The value of the element to add.public XmpValue put(String key, XmpValue value)
Adds an element with the provided key and value.
public void putAll(Map<? extends String,? extends XmpValue> m)
put(k, v)
on this map once
for each mapping from key k to value v in the
specified map. The behavior of this operation is undefined if the
specified map is modified while the operation is in progress.public void clear()
Removes all elements from this collection.
public boolean isEmpty()
public XmpValue remove(Object key)
Removes the element with the specified key from the T:System.Collections.IDictionary
object.
public Collection<XmpValue> values()
Gets a collection containing the values.
public void addStructure(String key, Map.Entry<String,XmpValue>[] fields)
Adds the structure.
key
- The key.fields
- The fields.public void addArray(String key, XmpValue[] items)
Adds the array.
key
- The key.items
- The items.public void copyToArray(Map.Entry<String,XmpValue>[] array, int arrayIndex)
Copies the elements of this collection to an array, starting at a particular index.
array
- The one-dimensional array that is the destination of the elements copied
from this collection. The array must have
zero-based indexing.arrayIndex
- The zero-based index in array at which copying begins.public int size()
Gets the number of elements contained in this collection.
public Object getSyncRoot()
Gets an object that can be used to synchronize access to this collection.
public boolean isSynchronized()
Gets a value indicating whether access to this collection is synchronized (thread safe).
public boolean tryGetValue(String key, Object[] value)
Tries to find key in this collection and retrieves value if found.
key
- Key to search.value
- Retreived value.public boolean tryGetValue(String key, XmpValue[] value)
Tries to find key in this collection and retrieves value if found.
key
- Key to search in the dictionary.value
- Retreived value.public void add(Map.Entry<String,XmpValue> item)
Adds pair with key and value into this collection.
item
- Item to be added.public XmpValue removeItem(Map.Entry<String,XmpValue> item)
Removes key/value pair from the colleciton.
item
- Key/value pair to be removed.public int getPacketsCount()
Gets the packets count.
public int addPacket()
Adds the packet.
public void switchWorkingPacket(int packetIndex)
Switches the working packet.
packetIndex
- Index of the packet.Copyright © 2022 Aspose. All Rights Reserved.