|
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.PdfObjectWrapper<PdfArray>
org.pdfclown.objects.Array<TItem>
public class Array<TItem extends IPdfObjectWrapper>
Collection of sequentially-arranged object wrappers.
| Nested Class Summary | |
|---|---|
static interface |
Array.IWrapper<TItem>
Item instancer. |
| Constructor Summary | |
|---|---|
protected |
Array(Array.IWrapper<TItem> itemWrapper,
PdfDirectObject baseObject)
Wraps an existing base array using the specified wrapper for wrapping its items. |
protected |
Array(Class<TItem> itemClass,
PdfDirectObject baseObject)
Wraps an existing base array using the default wrapper for wrapping its items. |
|
Array(Document context,
Array.IWrapper<TItem> itemWrapper)
Wraps a new base array using the specified wrapper for wrapping its items. |
|
Array(Document context,
Array.IWrapper<TItem> itemWrapper,
PdfArray baseDataObject)
Wraps the specified base array using the specified wrapper for wrapping its items. |
|
Array(Document context,
Class<TItem> itemClass)
Wraps a new base array using the default wrapper for wrapping its items. |
|
Array(Document context,
Class<TItem> itemClass,
PdfArray baseDataObject)
Wraps the specified base array using the default wrapper for wrapping its items. |
| Method Summary | ||
|---|---|---|
void |
add(int index,
TItem item)
|
|
boolean |
add(TItem item)
|
|
boolean |
addAll(Collection<? extends TItem> items)
|
|
boolean |
addAll(int index,
Collection<? extends TItem> items)
|
|
void |
clear()
|
|
Array<TItem> |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
|
boolean |
contains(Object item)
|
|
boolean |
containsAll(Collection<?> items)
|
|
TItem |
get(int index)
|
|
int |
indexOf(Object item)
|
|
boolean |
isEmpty()
|
|
Iterator<TItem> |
iterator()
|
|
int |
lastIndexOf(Object item)
|
|
ListIterator<TItem> |
listIterator()
|
|
ListIterator<TItem> |
listIterator(int index)
|
|
TItem |
remove(int index)
|
|
boolean |
remove(Object item)
|
|
boolean |
removeAll(Collection<?> items)
|
|
boolean |
retainAll(Collection<?> items)
|
|
TItem |
set(int index,
TItem item)
|
|
int |
size()
|
|
List<TItem> |
subList(int fromIndex,
int toIndex)
|
|
Object[] |
toArray()
|
|
|
toArray(T[] array)
|
|
static
|
wrap(Array.IWrapper<TItem> itemWrapper,
PdfDirectObject baseObject)
Wraps an existing base array using the specified wrapper for wrapping its items. |
|
static
|
wrap(Class<TItem> itemClass,
PdfDirectObject baseObject)
Wraps an existing base array using the default wrapper for wrapping its items. |
|
| Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
|---|
checkCompatibility, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public Array(Document context,
Class<TItem> itemClass)
context - Document context.itemClass - Item class.
public Array(Document context,
Array.IWrapper<TItem> itemWrapper)
context - Document context.itemWrapper - Item wrapper.
public Array(Document context,
Class<TItem> itemClass,
PdfArray baseDataObject)
context - Document context.itemClass - Item class.baseDataObject - Base array.
public Array(Document context,
Array.IWrapper<TItem> itemWrapper,
PdfArray baseDataObject)
context - Document context.itemWrapper - Item wrapper.baseDataObject - Base array.
protected Array(Class<TItem> itemClass,
PdfDirectObject baseObject)
itemClass - Item class.baseObject - Base array. MUST be a reference every time available.
protected Array(Array.IWrapper<TItem> itemWrapper,
PdfDirectObject baseObject)
itemWrapper - Item wrapper.baseObject - Base array. MUST be a reference every time available.| Method Detail |
|---|
public static <TItem extends IPdfObjectWrapper> Array<TItem> wrap(Class<TItem> itemClass,
PdfDirectObject baseObject)
itemClass - Item class.baseObject - Base array. MUST be a reference every time available.
public static <TItem extends IPdfObjectWrapper> Array<TItem> wrap(Array.IWrapper<TItem> itemWrapper,
PdfDirectObject baseObject)
itemWrapper - Item wrapper.baseObject - Base array. MUST be a reference every time available.public Array<TItem> clone(Document context)
PdfObjectWrapper
clone in class PdfObjectWrapper<PdfArray>context - Which document the clone has to be registered in.public boolean add(TItem item)
add in interface Collection<TItem extends IPdfObjectWrapper>add in interface List<TItem extends IPdfObjectWrapper>
public void add(int index,
TItem item)
add in interface List<TItem extends IPdfObjectWrapper>public boolean addAll(Collection<? extends TItem> items)
addAll in interface Collection<TItem extends IPdfObjectWrapper>addAll in interface List<TItem extends IPdfObjectWrapper>
public boolean addAll(int index,
Collection<? extends TItem> items)
addAll in interface List<TItem extends IPdfObjectWrapper>public void clear()
clear in interface Collection<TItem extends IPdfObjectWrapper>clear in interface List<TItem extends IPdfObjectWrapper>public boolean contains(Object item)
contains in interface Collection<TItem extends IPdfObjectWrapper>contains in interface List<TItem extends IPdfObjectWrapper>public boolean containsAll(Collection<?> items)
containsAll in interface Collection<TItem extends IPdfObjectWrapper>containsAll in interface List<TItem extends IPdfObjectWrapper>public TItem get(int index)
get in interface List<TItem extends IPdfObjectWrapper>public int indexOf(Object item)
indexOf in interface List<TItem extends IPdfObjectWrapper>public boolean isEmpty()
isEmpty in interface Collection<TItem extends IPdfObjectWrapper>isEmpty in interface List<TItem extends IPdfObjectWrapper>public Iterator<TItem> iterator()
iterator in interface Iterable<TItem extends IPdfObjectWrapper>iterator in interface Collection<TItem extends IPdfObjectWrapper>iterator in interface List<TItem extends IPdfObjectWrapper>public int lastIndexOf(Object item)
lastIndexOf in interface List<TItem extends IPdfObjectWrapper>public ListIterator<TItem> listIterator()
listIterator in interface List<TItem extends IPdfObjectWrapper>public ListIterator<TItem> listIterator(int index)
listIterator in interface List<TItem extends IPdfObjectWrapper>public boolean remove(Object item)
remove in interface Collection<TItem extends IPdfObjectWrapper>remove in interface List<TItem extends IPdfObjectWrapper>public TItem remove(int index)
remove in interface List<TItem extends IPdfObjectWrapper>public boolean removeAll(Collection<?> items)
removeAll in interface Collection<TItem extends IPdfObjectWrapper>removeAll in interface List<TItem extends IPdfObjectWrapper>public boolean retainAll(Collection<?> items)
retainAll in interface Collection<TItem extends IPdfObjectWrapper>retainAll in interface List<TItem extends IPdfObjectWrapper>
public TItem set(int index,
TItem item)
set in interface List<TItem extends IPdfObjectWrapper>public int size()
size in interface Collection<TItem extends IPdfObjectWrapper>size in interface List<TItem extends IPdfObjectWrapper>
public List<TItem> subList(int fromIndex,
int toIndex)
subList in interface List<TItem extends IPdfObjectWrapper>public Object[] toArray()
toArray in interface Collection<TItem extends IPdfObjectWrapper>toArray in interface List<TItem extends IPdfObjectWrapper>public <T> T[] toArray(T[] array)
toArray in interface Collection<TItem extends IPdfObjectWrapper>toArray in interface List<TItem extends IPdfObjectWrapper>
|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||