org.gxml.u
Interface GuTree<N>

All Superinterfaces:
GuReadable<N>, GuWritable<N>

public interface GuTree<N>
extends GuReadable<N>, GuWritable<N>

A virtual XML tree for which the access mode has not been determined.

The GuTree interface allows the consumer to choose a mode of access that is appropriate to the expected size of the XML tree. A small tree that should easily fit in memory may be accessed through the GuCursor or GuModel (Node) interfaces with random access capability. A large document may read sequentially using the GuReader (Pull) or GuContentHandler (Push) interfaces. The XML tree may be directly serialized or it may be queried to return a small in-memory subset.


Method Summary
 N asNode()
          Provides random access to the tree as a node.
 GuProcessingContext<N> getProcessingContext()
          Returns the processing context associated with this tree.
 
Methods inherited from interface org.gxml.u.GuReadable
reader
 
Methods inherited from interface org.gxml.u.GuWritable
write
 

Method Detail

asNode

N asNode()
         throws java.io.IOException,
                GuMarshalException
Provides random access to the tree as a node. This is appropriate for trees that can easily be stored in memory.

Throws:
java.io.IOException
GuMarshalException

getProcessingContext

GuProcessingContext<N> getProcessingContext()
Returns the processing context associated with this tree.

Specified by:
getProcessingContext in interface GuReadable<N>
Specified by:
getProcessingContext in interface GuWritable<N>


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.