NameTree
Vue de l’ensemble
‘NameTree’ est une classe dans Aspose.PDF FOSS pour Java.
Lire/écrire une vue sur un arbre de nom PDF (ISO 32000-1:2008, §7.9.6).
Cette classe fournit 12 méthodes pour travailler avec les objets NameTree dans les programmes Java. Les méthodologies disponibles comprennent: NameTREE, clear , containsKey ; ’entries; entréesUnmodifiable : ‘get et ’getRoot . isEmptys, ‘key s’impose, 'remove. Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : emptyet root`
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
root | PdfDictionary | Read | Returns the underlying root dictionary, or {@code null} if this view |
| was constructed over a {@code null} root. | |||
empty | boolean | Read | Returns whether the tree has no entries. |
méthodes
| Signature | Description |
|---|---|
NameTree(root: PdfDictionary) | Wraps the given root dictionary. |
getRoot() → PdfDictionary | Returns the underlying root dictionary, or {@code null} if this view |
| was constructed over a {@code null} root. | |
isEmpty() → boolean | Returns whether the tree has no entries. |
size() → int | Returns the number of (key, value) pairs in the tree. |
get(key: String) → PdfBase | Looks up a key. |
containsKey(key: String) → boolean | Returns whether the tree contains the given key. |
entries() → List<Map.Entry<String, PdfBase>> | Returns all entries in tree order (which, for a conformant tree, is |
| key-sorted order). | |
keys() → List<String> | Returns all keys in tree order. |
put(key: String, value: PdfBase) → PdfBase | Inserts or replaces a value. |
remove(key: String) → PdfBase | Removes a key. |
clear() | Empties the tree: drops all {@code /Kids}, {@code /Limits} and any |
| {@code /Names} array contents. | |
entriesUnmodifiable() → List<Map.Entry<String, PdfBase>> | Returns an unmodifiable view of {@link #entries()} for callers that |
| want a {@link List} interface but no mutation. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise