|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfclown.objects.PdfObject
org.pdfclown.objects.PdfDataObject
org.pdfclown.objects.PdfDirectObject
org.pdfclown.objects.PdfDictionary
public final class PdfDictionary
PDF dictionary object [PDF:1.6:3.2.6].
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
PdfDictionary()
|
|
PdfDictionary(int capacity)
|
|
PdfDictionary(Map<PdfName,PdfDirectObject> entries)
|
|
PdfDictionary(PdfName[] keys,
PdfDirectObject[] values)
|
|
| Method Summary | ||
|---|---|---|
PdfObject |
accept(IVisitor visitor,
Object data)
Accepts a visit. |
|
void |
clear()
|
|
PdfDictionary |
clone(File context)
Creates a deep copy of this object within the specified file context. |
|
int |
compareTo(PdfDirectObject obj)
|
|
boolean |
containsKey(Object key)
|
|
boolean |
containsValue(Object value)
|
|
Set<Map.Entry<PdfName,PdfDirectObject>> |
entrySet()
|
|
boolean |
equals(Object object)
|
|
PdfDirectObject |
get(Object key)
|
|
|
get(PdfName key,
Class<T> valueClass)
Gets the value corresponding to the given key, forcing its instantiation as a direct object in case of missing entry. |
|
|
get(PdfName key,
Class<T> valueClass,
boolean direct)
Gets the value corresponding to the given key, forcing its instantiation in case of missing entry. |
|
PdfName |
getKey(PdfDirectObject value)
Gets the key associated to the specified value. |
|
PdfObject |
getParent()
Gets the parent of this object. |
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
boolean |
isUpdateable()
Gets whether the detection of object state changes is enabled. |
|
boolean |
isUpdated()
Gets whether the initial state of this object has been modified. |
|
protected boolean |
isVirtual()
Gets whether this object acts like a null-object placeholder. |
|
Set<PdfName> |
keySet()
|
|
PdfDirectObject |
put(PdfName key,
PdfDirectObject value)
|
|
void |
putAll(Map<? extends PdfName,? extends PdfDirectObject> entries)
|
|
PdfDirectObject |
remove(Object key)
|
|
PdfDataObject |
resolve(PdfName key)
Gets the dereferenced value corresponding to the given key. |
|
|
resolve(PdfName key,
Class<T> valueClass)
Gets the dereferenced value corresponding to the given key, forcing its instantiation in case of missing entry. |
|
void |
setUpdateable(boolean value)
|
|
protected void |
setUpdated(boolean value)
|
|
protected void |
setVirtual(boolean value)
|
|
int |
size()
|
|
PdfDictionary |
swap(PdfObject other)
Swaps contents between this object and the other one. |
|
String |
toString()
|
|
Collection<PdfDirectObject> |
values()
|
|
void |
writeTo(IOutputStream stream,
File context)
Serializes this object to the specified stream. |
|
| Methods inherited from class org.pdfclown.objects.PdfObject |
|---|
clone, clone, getContainer, getDataContainer, getFile, getIndirectObject, getReference, resolve, resolve, unresolve, unresolve, update |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PdfDictionary()
public PdfDictionary(int capacity)
public PdfDictionary(PdfName[] keys,
PdfDirectObject[] values)
public PdfDictionary(Map<PdfName,PdfDirectObject> entries)
| Method Detail |
|---|
public PdfObject accept(IVisitor visitor,
Object data)
IVisitable
accept in interface IVisitablevisitor - Visiting object.data - Supplemental data.
public PdfDictionary clone(File context)
PdfObject
clone in class PdfObjectpublic int compareTo(PdfDirectObject obj)
compareTo in interface Comparable<PdfDirectObject>compareTo in class PdfDirectObject
public <T extends PdfDataObject> PdfDirectObject get(PdfName key,
Class<T> valueClass)
key - Key whose associated value is to be returned.valueClass - Class to use for instantiating the value in case of missing entry.
public <T extends PdfDataObject> PdfDirectObject get(PdfName key,
Class<T> valueClass,
boolean direct)
key - Key whose associated value is to be returned.valueClass - Class to use for instantiating the value in case of missing entry.direct - Whether the item has to be instantiated directly within its container instead of
being referenced through an indirect object.public PdfName getKey(PdfDirectObject value)
public PdfObject getParent()
PdfObject
getParent in class PdfObjectPdfObject.getContainer()public boolean isUpdateable()
PdfObject
isUpdateable in class PdfObjectpublic boolean isUpdated()
PdfObject
isUpdated in class PdfObjectpublic PdfDataObject resolve(PdfName key)
This method takes care to resolve the value returned by get(Object).
key - Key whose associated value is to be returned.
public <T extends PdfDataObject> T resolve(PdfName key,
Class<T> valueClass)
This method takes care to resolve the value returned by get(PdfName, Class).
key - Key whose associated value is to be returned.valueClass - Class to use for instantiating the value in case of missing entry.
public void setUpdateable(boolean value)
setUpdateable in class PdfObjectPdfObject.isUpdateable()public PdfDictionary swap(PdfObject other)
PdfObject
swap in class PdfObjectother - Object whose contents have to be swapped with this one's.
public String toString()
toString in class Object
public void writeTo(IOutputStream stream,
File context)
PdfObject
writeTo in class PdfObjectstream - Target stream.context - File context.public void clear()
clear in interface Map<PdfName,PdfDirectObject>public boolean containsKey(Object key)
containsKey in interface Map<PdfName,PdfDirectObject>public boolean containsValue(Object value)
containsValue in interface Map<PdfName,PdfDirectObject>public Set<Map.Entry<PdfName,PdfDirectObject>> entrySet()
entrySet in interface Map<PdfName,PdfDirectObject>public boolean equals(Object object)
equals in interface Map<PdfName,PdfDirectObject>equals in class Objectpublic PdfDirectObject get(Object key)
get in interface Map<PdfName,PdfDirectObject>public int hashCode()
hashCode in interface Map<PdfName,PdfDirectObject>hashCode in class Objectpublic boolean isEmpty()
isEmpty in interface Map<PdfName,PdfDirectObject>public Set<PdfName> keySet()
keySet in interface Map<PdfName,PdfDirectObject>
public PdfDirectObject put(PdfName key,
PdfDirectObject value)
put in interface Map<PdfName,PdfDirectObject>public void putAll(Map<? extends PdfName,? extends PdfDirectObject> entries)
putAll in interface Map<PdfName,PdfDirectObject>public PdfDirectObject remove(Object key)
remove in interface Map<PdfName,PdfDirectObject>public int size()
size in interface Map<PdfName,PdfDirectObject>public Collection<PdfDirectObject> values()
values in interface Map<PdfName,PdfDirectObject>protected boolean isVirtual()
PdfObject
isVirtual in class PdfObjectprotected void setUpdated(boolean value)
setUpdated in class PdfObjectPdfObject.isUpdated()protected void setVirtual(boolean value)
setVirtual in class PdfObjectPdfObject.isVirtual()
|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||