org.gxml.sa
Interface GxProcessingContext<I,U,N extends I,A extends I,S,T,X>

All Superinterfaces:
ProcessingContext<N,S,SmName<S>>

public interface GxProcessingContext<I,U,N extends I,A extends I,S,T,X>
extends ProcessingContext<N,S,SmName<S>>

A processing context parameterized by atom(s) and type(s).


Method Summary
 A atom(I item)
          Applies a hypothetical atom() test to the item.
 GxApplication<I,U,N,A,S,T,X> getApplication()
          Returns the application that owns this processing context.
 GxAtomBridge<A,S> getAtomBridge()
          Returns the bridge used for atom interaction.
 GxMetaBridge<A,S,T> getMetaBridge()
          Returns the bridge used for meta-data interaction.
 GxModel<N,A,S,T> getModel()
          Returns the GxModel for navigating the document model.
 GxNameBridge<S> getNameBridge()
          Returns the bridge used for symbolic name interaction.
 U getNID(N node)
          Returns the node identity that corresponds to the node.
 GxVariantBridge<I,N,A,X> getVariantBridge()
          Returns the bridge used for value handles.
 boolean isAtom(I item)
          Determines whether the item is an atom.
 boolean isNode(I item)
          Determines whether the item is a node.
 I[] itemArray(int size)
          Allocates an empty array of items.
 GxCursor<N,A,S,T> newCursor(N node)
          Returns a new cursor for navigating the XDM model.
 GxFragmentBuilder<N,A,S,T> newFragmentBuilder()
          Creates a new builder for creating tree fragments.
 N node(I item)
          Applies the node() test to the item.
 N[] nodeArray(int size)
          Allocates an empty array of nodes.
 

Method Detail

atom

A atom(I item)
Applies a hypothetical atom() test to the item.

If the item is an atom, the atom is returned. Otherwise, returns null.

Parameters:
item - The candidate item.

getApplication

GxApplication<I,U,N,A,S,T,X> getApplication()
Returns the application that owns this processing context.

Specified by:
getApplication in interface ProcessingContext<N extends I,S,SmName<S>>

getAtomBridge

GxAtomBridge<A,S> getAtomBridge()
Returns the bridge used for atom interaction.


newCursor

GxCursor<N,A,S,T> newCursor(N node)
Description copied from interface: ProcessingContext
Returns a new cursor for navigating the XDM model.

Specified by:
newCursor in interface ProcessingContext<N extends I,S,SmName<S>>
Parameters:
node - The node over which the cursor is initially positioned. Cannot be null.

getMetaBridge

GxMetaBridge<A,S,T> getMetaBridge()
Returns the bridge used for meta-data interaction.


getModel

GxModel<N,A,S,T> getModel()
Returns the GxModel for navigating the document model.

Specified by:
getModel in interface ProcessingContext<N extends I,S,SmName<S>>

getNameBridge

GxNameBridge<S> getNameBridge()
Returns the bridge used for symbolic name interaction.


getNID

U getNID(N node)
Returns the node identity that corresponds to the node.
An identity object supports Object.hashCode() and Object.equals(Object)

Parameters:
node - The node for which the identity is required.

getVariantBridge

GxVariantBridge<I,N,A,X> getVariantBridge()
Returns the bridge used for value handles.


isAtom

boolean isAtom(I item)
Determines whether the item is an atom.

If the item is null, the return value is false.

Parameters:
item - The candidate item.

isNode

boolean isNode(I item)
Determines whether the item is a node.

If the item is null, the return value is false.

Parameters:
item - The candidate item.

itemArray

I[] itemArray(int size)
Allocates an empty array of items.

Parameters:
size - The size of the array of items.

newFragmentBuilder

GxFragmentBuilder<N,A,S,T> newFragmentBuilder()
Creates a new builder for creating tree fragments.


node

N node(I item)
Applies the node() test to the item.

If the item is a node, the node is returned. Otherwise, returns null.

Parameters:
item - The candidate item.

nodeArray

N[] nodeArray(int size)
Allocates an empty array of nodes.

Parameters:
size - The size of the array of nodes.


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.