PDF Clown
0.0.8

it.stefanochizzolini.clown.objects
Class NameTree<T extends PdfObjectWrapper<?>>

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary>
      extended by it.stefanochizzolini.clown.objects.NameTree<T>
All Implemented Interfaces:
Map<PdfString,T>
Direct Known Subclasses:
NamedDestinations, NamedEmbeddedFiles

public abstract class NameTree<T extends PdfObjectWrapper<?>>
extends PdfObjectWrapper<PdfDictionary>
implements Map<PdfString,T>

Name tree [PDF:1.6:3.8.5].

Since:
0.0.4
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
NameTree(Document context)
           
NameTree(PdfDirectObject baseObject, PdfIndirectObject container)
           
 
Method Summary
 void clear()
           
 NameTree<T> clone(Document context)
          Gets a clone of the object, registered inside the given document context.
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<PdfString,T>> entrySet()
           
 boolean equals(Object object)
           
 T get(Object key)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<PdfString> keySet()
           
 T put(PdfString key, T value)
           
 void putAll(Map<? extends PdfString,? extends T> entries)
           
 T remove(Object key)
           
 int size()
           
 Collection<T> values()
           
protected abstract  T wrap(PdfDirectObject baseObject, PdfIndirectObject container, PdfString name)
          Wraps a base object within its corresponding high-level representation.
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameTree

public NameTree(Document context)

NameTree

public NameTree(PdfDirectObject baseObject,
                PdfIndirectObject container)
Method Detail

clone

public NameTree<T> clone(Document context)
Description copied from class: PdfObjectWrapper
Gets a clone of the object, registered inside the given document context.

Specified by:
clone in class PdfObjectWrapper<PdfDictionary>
Parameters:
context - Which document the clone has to be registered in.

clear

public void clear()
Specified by:
clear in interface Map<PdfString,T extends PdfObjectWrapper<?>>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<PdfString,T extends PdfObjectWrapper<?>>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<PdfString,T extends PdfObjectWrapper<?>>

entrySet

public Set<Map.Entry<PdfString,T>> entrySet()
Specified by:
entrySet in interface Map<PdfString,T extends PdfObjectWrapper<?>>

equals

public boolean equals(Object object)
Specified by:
equals in interface Map<PdfString,T extends PdfObjectWrapper<?>>
Overrides:
equals in class Object

get

public T get(Object key)
Specified by:
get in interface Map<PdfString,T extends PdfObjectWrapper<?>>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<PdfString,T extends PdfObjectWrapper<?>>
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<PdfString,T extends PdfObjectWrapper<?>>

keySet

public Set<PdfString> keySet()
Specified by:
keySet in interface Map<PdfString,T extends PdfObjectWrapper<?>>

put

public T put(PdfString key,
             T value)
Specified by:
put in interface Map<PdfString,T extends PdfObjectWrapper<?>>

putAll

public void putAll(Map<? extends PdfString,? extends T> entries)
Specified by:
putAll in interface Map<PdfString,T extends PdfObjectWrapper<?>>

remove

public T remove(Object key)
Specified by:
remove in interface Map<PdfString,T extends PdfObjectWrapper<?>>

size

public int size()
Specified by:
size in interface Map<PdfString,T extends PdfObjectWrapper<?>>

values

public Collection<T> values()
Specified by:
values in interface Map<PdfString,T extends PdfObjectWrapper<?>>

wrap

protected abstract T wrap(PdfDirectObject baseObject,
                          PdfIndirectObject container,
                          PdfString name)
Wraps a base object within its corresponding high-level representation.


PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.