DictionaryEditor
Inheritance: java.lang.Object, java.util.Dictionary <K,V> java.util.Hashtable < String , ICosPdfPrimitive > com.aspose.pdf.dataeditor.DictionaryEditor, java.util.Dictionary <K,V>, java.util.Hashtable < String , ICosPdfPrimitive > com.aspose.pdf.dataeditor.DictionaryEditor, java.util.Hashtable < String , ICosPdfPrimitive >, com.aspose.pdf.dataeditor.DictionaryEditor
All Implemented Interfaces: Serializable, Cloneable, Map < String, ICosPdfPrimitive >
public class DictionaryEditor extends Hashtable < String , ICosPdfPrimitive >
A class for accessing an document’s tree dictionary (document dictionary, page dictionary, resources dictionary).
Constructors
| Constructor | Description |
|---|---|
| DictionaryEditor | |
| DictionaryEditor | |
| DictionaryEditor | @exception ArgumentNullException The resources are null. |
Methods
| Method | Description |
|---|---|
| add | Set ICosPdfPrimitive to dictionary. |
| add | Set {@link ICosPdfPrimitive} to dictionary. |
| clear | Removes all items from the {@link DictionaryEditor}. |
| contains | Determines whether the DictionaryEditor contains a specific value. |
| containsKey | Determines whether the {@link DictionaryEditor} contains an element with the specified key. |
| copyTo | Copies the elements of the DictionaryEditor to an Array , starting at a particular Array index. |
| get_Item | Gets or sets the element with the specified key. |
| getAllKeys | Full collection of keys. Contains editable and not editable keys. |
| getKeys | Collection of editable keys. |
| getValues | Gets an {@link ICollection} containing the values in the {@link DictionaryEditor}. |
| isReadOnly | Gets a value indicating whether the {@link DictionaryEditor} is read-only. |
| iterator | Returns an enumerator that iterates through the collection. |
| remove | Removes the first occurrence of a specific object from the DictionaryEditor . |
| remove | Removes the element with the specified key from the {@link DictionaryEditor}. |
| set_Item | Gets or sets the element with the specified key. |
| size | Gets the number of elements contained in the {@link DictionaryEditor}. |
| tryGetValue | For access to simple data type like string, name, bool, number. Returns null for other types. |
DictionaryEditor
DictionaryEditor
DictionaryEditor
@exception ArgumentNullException The resources are null.
add
Set ICosPdfPrimitive to dictionary.
add
Set {@link ICosPdfPrimitive} to dictionary.
clear
public final void clear()
Removes all items from the {@link DictionaryEditor}.
contains
Determines whether the DictionaryEditor contains a specific value.
containsKey
Determines whether the {@link DictionaryEditor} contains an element with the specified key.
copyTo
Copies the elements of the DictionaryEditor to an Array , starting at a particular Array index.
get_Item
Gets or sets the element with the specified key.
getAllKeys
public final com.aspose.ms.System.Collections.Generic.IGenericCollection< String > getAllKeys()
Full collection of keys. Contains editable and not editable keys.
Returns: Iterable of String instance
getKeys
public final com.aspose.ms.System.Collections.Generic.IGenericCollection< String > getKeys()
Collection of editable keys.
Returns: Iterable of String instance
getValues
public final com.aspose.ms.System.Collections.Generic.IGenericCollection< ICosPdfPrimitive > getValues()
Gets an {@link ICollection} containing the values in the {@link DictionaryEditor}.
Returns: Iterable of ICosPdfPrimitive instance
isReadOnly
public final boolean isReadOnly()
Gets a value indicating whether the {@link DictionaryEditor} is read-only.
Returns: true if the {@link DictionaryEditor} is read-only; otherwise, false.
iterator
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair< String , ICosPdfPrimitive >> iterator()
Returns an enumerator that iterates through the collection.
Returns: An enumerator that can be used to iterate through the collection.
remove
Removes the first occurrence of a specific object from the DictionaryEditor .
remove
Removes the element with the specified key from the {@link DictionaryEditor}.
set_Item
Gets or sets the element with the specified key.
size
public final int size()
Gets the number of elements contained in the {@link DictionaryEditor}.
Returns: int value
tryGetValue
For access to simple data type like string, name, bool, number. Returns null for other types.