org.pdfclown.objects.PdfArray Class Reference

PDF array object, that is a one-dimensional collection of (possibly-heterogeneous) objects arranged sequentially [PDF:1.7:3.2.5]. More...

Inheritance diagram for org.pdfclown.objects.PdfArray:
org.pdfclown.objects.PdfDirectObject org.pdfclown.objects.PdfDataObject org.pdfclown.objects.PdfObject org.pdfclown.objects.IVisitable

List of all members.

Public Member Functions

override PdfObject Accept (IVisitor visitor, object data)
 Accepts a visit.
void Add (PdfDirectObject item)
void Clear ()
virtual PdfObject Clone (File context)
 Creates a deep copy of this object within the specified file context.
object Clone ()
 Creates a shallow copy of this object.
override int CompareTo (PdfDirectObject obj)
bool Contains (PdfDirectObject item)
void CopyTo (PdfDirectObject[] items, int index)
override bool Equals (object @object)
PdfDirectObject Get< T > (int index, bool direct)
 Gets the value corresponding to the given index, forcing its instantiation in case of missing entry.
PdfDirectObject Get< T > (int index)
 Gets the value corresponding to the given index, forcing its instantiation as a direct object in case of missing entry.
IEnumerator< PdfDirectObjectGetEnumerator ()
override int GetHashCode ()
int IndexOf (PdfDirectObject item)
void Insert (int index, PdfDirectObject item)
 PdfArray (IList< PdfDirectObject > items)
 PdfArray (params PdfDirectObject[] items)
 PdfArray (int capacity)
 PdfArray ()
bool Remove (PdfDirectObject item)
void RemoveAt (int index)
PdfDataObject Resolve ()
 Ensures this object to be resolved into its corresponding data object.
PdfDataObject Resolve (int index)
 Gets the dereferenced value corresponding to the given index.
Resolve< T > (int index)
 Gets the dereferenced value corresponding to the given index, forcing its instantiation in case of missing entry.
override PdfObject Swap (PdfObject other)
 Swaps contents between this object and the other one.
override string ToString ()
PdfDirectObject Unresolve ()
 Ensures this object to be unresolved into its corresponding indirect reference, if available.
override void WriteTo (IOutputStream stream, File context)
 Serializes this object to the specified stream.

Static Public Member Functions

static PdfObject Clone (PdfObject @object, File context)
 Gets the clone of the specified object, registered inside the specified file context.
static PdfDataObject Resolve (PdfObject @object)
 Ensures an indirect reference to be resolved into its corresponding data object.
static PdfDirectObject Unresolve (PdfDataObject @object)
 Ensures a data object to be unresolved into its corresponding indirect reference, if available.

Protected Member Functions

internal void Update ()
 Updates the state of this object.

Properties

virtual PdfIndirectObject Container [get]
 Gets the indirect object containing this object.
int Count [get]
PdfIndirectObject DataContainer [get]
 Gets the indirect object containing the data associated to this object.
virtual File File [get]
 Gets the file containing this object.
virtual PdfIndirectObject IndirectObject [get]
 Gets the indirect object corresponding to this object.
bool IsReadOnly [get]
override PdfObject Parent [get, set]
 Gets/Sets the parent of this object.
virtual PdfReference Reference [get]
 Gets the indirect reference of this object.
PdfDirectObject this [int index] [get, set]
override bool Updateable [get, set]
 Gets/Sets whether the detection of object state changes is enabled.
override bool Updated [get, set]
 Gets/Sets whether the initial state of this object has been modified.
internal override bool Virtual [get, set]
 Gets/Sets whether this object acts like a null-object placeholder.

PDF array object, that is a one-dimensional collection of (possibly-heterogeneous) objects arranged sequentially [PDF:1.7:3.2.5].


Constructor & Destructor Documentation

org.pdfclown.objects.PdfArray.PdfArray (  ) 
org.pdfclown.objects.PdfArray.PdfArray ( int  capacity  ) 
org.pdfclown.objects.PdfArray.PdfArray ( params PdfDirectObject[]  items  ) 
org.pdfclown.objects.PdfArray.PdfArray ( IList< PdfDirectObject items  ) 

Member Function Documentation

override PdfObject org.pdfclown.objects.PdfArray.Accept ( IVisitor  visitor,
object  data 
) [virtual]

Accepts a visit.

Parameters:
visitor Visiting object.
data Supplemental data.
Returns:
Result object.

Implements org.pdfclown.objects.PdfObject.

References org.pdfclown.objects.IVisitor.Visit().

void org.pdfclown.objects.PdfArray.Add ( PdfDirectObject  item  ) 
void org.pdfclown.objects.PdfArray.Clear (  ) 
virtual PdfObject org.pdfclown.objects.PdfObject.Clone ( File  context  )  [virtual, inherited]

Creates a deep copy of this object within the specified file context.

Reimplemented in org.pdfclown.objects.PdfSimpleObject< TValue >.

References org.pdfclown.files.File.Cloner.

object org.pdfclown.objects.PdfObject.Clone (  )  [inherited]

Creates a shallow copy of this object.

References org.pdfclown.objects.PdfObject.Parent.

static PdfObject org.pdfclown.objects.PdfObject.Clone ( PdfObject object,
File  context 
) [static, inherited]

Gets the clone of the specified object, registered inside the specified file context.

Parameters:
object Object to clone into the specified file context.
context File context of the cloning.

Referenced by org.pdfclown.objects.PdfObjectWrapper< PdfTextString >.Clone(), and org.pdfclown.objects.Cloner.Visit().

override int org.pdfclown.objects.PdfArray.CompareTo ( PdfDirectObject  obj  )  [virtual]
bool org.pdfclown.objects.PdfArray.Contains ( PdfDirectObject  item  ) 
void org.pdfclown.objects.PdfArray.CopyTo ( PdfDirectObject[]  items,
int  index 
)
override bool org.pdfclown.objects.PdfArray.Equals ( object @  object  ) 
PdfDirectObject org.pdfclown.objects.PdfArray.Get< T > ( int  index,
bool  direct 
)

Gets the value corresponding to the given index, forcing its instantiation in case of missing entry.

Parameters:
index Index of the item to return.
direct Whether the item has to be instantiated directly within its container instead of being referenced through an indirect object.
Type Constraints
T :PdfDataObject 
T :new() 
PdfDirectObject org.pdfclown.objects.PdfArray.Get< T > ( int  index  ) 

Gets the value corresponding to the given index, forcing its instantiation as a direct object in case of missing entry.

Parameters:
index Index of the item to return.
itemClass Class to use for instantiating the item in case of missing entry.
Type Constraints
T :PdfDataObject 
T :new() 
IEnumerator<PdfDirectObject> org.pdfclown.objects.PdfArray.GetEnumerator (  ) 
override int org.pdfclown.objects.PdfArray.GetHashCode (  ) 
int org.pdfclown.objects.PdfArray.IndexOf ( PdfDirectObject  item  ) 
void org.pdfclown.objects.PdfArray.Insert ( int  index,
PdfDirectObject  item 
)
bool org.pdfclown.objects.PdfArray.Remove ( PdfDirectObject  item  ) 
void org.pdfclown.objects.PdfArray.RemoveAt ( int  index  ) 
PdfDataObject org.pdfclown.objects.PdfObject.Resolve (  )  [inherited]

Ensures this object to be resolved into its corresponding data object.

See also:
Unresolve()

References org.pdfclown.objects.PdfReference.DataObject.

static PdfDataObject org.pdfclown.objects.PdfObject.Resolve ( PdfObject object  )  [static, inherited]
PdfDataObject org.pdfclown.objects.PdfArray.Resolve ( int  index  ) 

Gets the dereferenced value corresponding to the given index.

This method takes care to resolve the value returned by this[int].

Parameters:
index Index of the item to return.

References org.pdfclown.objects.PdfArray.Resolve().

Referenced by org.pdfclown.documents.contents.Contents.Flush(), and org.pdfclown.objects.PdfArray.Resolve().

T org.pdfclown.objects.PdfArray.Resolve< T > ( int  index  ) 

Gets the dereferenced value corresponding to the given index, forcing its instantiation in case of missing entry.

This method takes care to resolve the value returned by Get<T>.

Parameters:
index Index of the item to return.
Type Constraints
T :PdfDataObject 
T :new() 
override PdfObject org.pdfclown.objects.PdfArray.Swap ( PdfObject  other  )  [virtual]

Swaps contents between this object and the other one.

Parameters:
other Object whose contents have to be swapped with this one's.
Returns:
This object.

Implements org.pdfclown.objects.PdfObject.

References org.pdfclown.objects.PdfObject.Update().

override string org.pdfclown.objects.PdfArray.ToString (  ) 
PdfDirectObject org.pdfclown.objects.PdfObject.Unresolve (  )  [inherited]

Ensures this object to be unresolved into its corresponding indirect reference, if available.

Returns:
PdfReference, if available;
this
, otherwise.
See also:
Resolve()
static PdfDirectObject org.pdfclown.objects.PdfObject.Unresolve ( PdfDataObject object  )  [static, inherited]

Ensures a data object to be unresolved into its corresponding indirect reference, if available.

Parameters:
object Object to unresolve.
Returns:
PdfReference, if available;
object
, otherwise.
internal void org.pdfclown.objects.PdfObject.Update (  )  [protected, inherited]
override void org.pdfclown.objects.PdfArray.WriteTo ( IOutputStream  stream,
File  context 
) [virtual]

Serializes this object to the specified stream.

Parameters:
stream Target stream.
context File context.

Implements org.pdfclown.objects.PdfObject.

References org.pdfclown.objects.PdfObject.Virtual, and org.pdfclown.bytes.IOutputStream.Write().


Property Documentation

virtual PdfIndirectObject org.pdfclown.objects.PdfObject.Container [get, inherited]

Gets the indirect object containing this object.

See also:
DataContainer, IndirectObject

Reimplemented in org.pdfclown.objects.PdfIndirectObject.

Referenced by org.pdfclown.tokens.CompressedWriter.WriteIncremental().

int org.pdfclown.objects.PdfArray.Count [get]
PdfIndirectObject org.pdfclown.objects.PdfObject.DataContainer [get, inherited]

Gets the indirect object containing the data associated to this object.

See also:
Container, IndirectObject
virtual File org.pdfclown.objects.PdfObject.File [get, inherited]

Gets the file containing this object.

Reimplemented in org.pdfclown.objects.PdfIndirectObject.

Referenced by org.pdfclown.objects.Cloner.Visit().

virtual PdfIndirectObject org.pdfclown.objects.PdfObject.IndirectObject [get, inherited]

Gets the indirect object corresponding to this object.

See also:
Container, DataContainer

Reimplemented in org.pdfclown.objects.PdfIndirectObject, and org.pdfclown.objects.PdfReference.

bool org.pdfclown.objects.PdfArray.IsReadOnly [get]
override PdfObject org.pdfclown.objects.PdfArray.Parent [get, set]

Gets/Sets the parent of this object.

See also:
Container

Reimplemented from org.pdfclown.objects.PdfObject.

Referenced by org.pdfclown.objects.Tree< TKey, TValue >.Remove().

virtual PdfReference org.pdfclown.objects.PdfObject.Reference [get, inherited]
PdfDirectObject org.pdfclown.objects.PdfArray.this[int index] [get, set]
override bool org.pdfclown.objects.PdfArray.Updateable [get, set]

Gets/Sets whether the detection of object state changes is enabled.

Reimplemented from org.pdfclown.objects.PdfObject.

Referenced by org.pdfclown.tokens.BaseParser.ParsePdfObject().

override bool org.pdfclown.objects.PdfArray.Updated [get, set]

Gets/Sets whether the initial state of this object has been modified.

Reimplemented from org.pdfclown.objects.PdfObject.

internal override bool org.pdfclown.objects.PdfArray.Virtual [get, set, protected]

Gets/Sets whether this object acts like a null-object placeholder.

Reimplemented from org.pdfclown.objects.PdfObject.

Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.

Generated on Sat Feb 9 21:08:40 2013 for PDF Clown 0.1.2 by  doxygen 1.6.3