galapi
Class ProcessingContext

java.lang.Object
  extended bygalapi.Context
      extended bygalapi.ProcessingContext

public class ProcessingContext
extends Context

A ProcessingContext contains flags for controlling debugging, printing, and the processing phases


Field Summary
static int PROJECTION_None
          Use no projection on the input document
static int PROJECTION_Optimized
          Advanced projection
static int PROJECTION_Standard
          Use standard projection algorithm
static int SBDO_Adhoc
          distinct-docorder operations are removed using a sloppy approach (may be buggy)
static int SBDO_DupTidy
          distinct-docorder operations are removed based on the duptidy automaton optimization
static int SBDO_Preserve
          distinct-docorder operations are all preserved
static int SBDO_Remove
          distinct-docorder operations are all removed
static int SBDO_Sloppy
          distinct-docorder operations are removed based on the sloppy automaton optimization
static int SBDO_Tidy
          distinct-docorder operations are removed based on the tidy automaton optimization
static int SERIALIZE_Canonical
          Output canonical
static int SERIALIZE_NS_Preserve
          Preserve namespace nodes
static int SERIALIZE_NS_Strip
          Remove namespace nodes
static int SERIALIZE_WellFormed
          Output result as well formed XML document
static int SERIALIZE_XQuery
          Output result as regular XQuery output
static int TYPING_None
          no typing performed
static int TYPING_Strong
          Strong typing is performed (may be time consuming)
static int TYPING_Weak
          only weak typing is performed
 
Fields inherited from class galapi.Context
item
 
Constructor Summary
protected ProcessingContext()
           
protected ProcessingContext(int native_item)
           
 
Method Summary
 ItemList monitorOfAllCalls()
           
 ItemList monitorOfLastCall()
           
protected  int nativeMonitorOfAllCalls(int pc)
           
protected  int nativeMonitorOfLastCall(int pc)
           
protected  void nativeSetCleaningPhase(int pc, boolean b)
           
protected  void nativeSetEvaluationPhase(int pc, boolean b)
           
protected  void nativeSetMonitorMem(int pc, boolean b)
           
protected  void nativeSetMonitorTime(int pc, boolean b)
           
protected  void nativeSetNormalizationPhase(int pc, boolean b)
           
protected  void nativeSetProjectionKind(int pc, int kind)
           
protected  void nativeSetSbdoKind(int pc, int kind)
           
protected  void nativeSetSerializationKind(int pc, int kind)
           
protected  void nativeSetSerializeNsKind(int pc, int kind)
           
protected  void nativeSetTypingKind(int pc, int kind)
           
protected  void nativeSetTypingPhase(int pc, boolean b)
           
protected  void nativeSetXmlPisAndComments(int pc, boolean b)
           
protected  void nativeSetXmlWhiteSpace(int pc, boolean b)
           
protected  void nativeSetXQueryWhiteSpace(int pc, boolean b)
           
 void setCleaningPhase(boolean c)
           
 void setEvaluationPhase(boolean e)
          Enable/disable the evaluation phase
 void setMonitorMem(boolean b)
          Enable ing of memory usage.
 void setMonitorTime(boolean b)
          Enable ing of time
 void setNormalizationPhase(boolean n)
          Enable/disable the normalization phase
 void setProjectionKind(int kind)
          Enable one of the projection modes (default = PROJECTION_None)
 void setSbdoKind(int kind)
          Set one of the sbdo optimization modes (default = SBDO_Adhoc)
 void setSerializationKind(int kind)
          Set one of the serialization modes (default = SERIALIZE_WellFormed)
 void setSerializeNsKind(int kind)
          Enable/disable namespace node serialization (default = SERIALIZE_NS_Preserve)
 void setTypingKind(int kind)
          Set one of the typing modes (default = TYPING_None)
 void setTypingPhase(boolean t)
          Enable/disable the typing phase
 void setXmlPisAndComments(boolean b)
          Enable/disable preservation of comments and PI's in XML
 void setXmlWhitespace(boolean b)
          Enable/disable XML whitespace preservation
 void setXQueryWhiteSpace(boolean b)
          Enable/disable XQuery whitespace preservation
 
Methods inherited from class galapi.Context
finalize, getNativeItem, nativeFree, setItem
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SBDO_Remove

public static final int SBDO_Remove
distinct-docorder operations are all removed

See Also:
Constant Field Values

SBDO_Preserve

public static final int SBDO_Preserve
distinct-docorder operations are all preserved

See Also:
Constant Field Values

SBDO_Adhoc

public static final int SBDO_Adhoc
distinct-docorder operations are removed using a sloppy approach (may be buggy)

See Also:
Constant Field Values

SBDO_Tidy

public static final int SBDO_Tidy
distinct-docorder operations are removed based on the tidy automaton optimization

See Also:
Constant Field Values

SBDO_DupTidy

public static final int SBDO_DupTidy
distinct-docorder operations are removed based on the duptidy automaton optimization

See Also:
Constant Field Values

SBDO_Sloppy

public static final int SBDO_Sloppy
distinct-docorder operations are removed based on the sloppy automaton optimization

See Also:
Constant Field Values

TYPING_None

public static final int TYPING_None
no typing performed

See Also:
Constant Field Values

TYPING_Weak

public static final int TYPING_Weak
only weak typing is performed

See Also:
Constant Field Values

TYPING_Strong

public static final int TYPING_Strong
Strong typing is performed (may be time consuming)

See Also:
Constant Field Values

SERIALIZE_WellFormed

public static final int SERIALIZE_WellFormed
Output result as well formed XML document

See Also:
Constant Field Values

SERIALIZE_XQuery

public static final int SERIALIZE_XQuery
Output result as regular XQuery output

See Also:
Constant Field Values

SERIALIZE_Canonical

public static final int SERIALIZE_Canonical
Output canonical

See Also:
Constant Field Values

SERIALIZE_NS_Strip

public static final int SERIALIZE_NS_Strip
Remove namespace nodes

See Also:
Constant Field Values

SERIALIZE_NS_Preserve

public static final int SERIALIZE_NS_Preserve
Preserve namespace nodes

See Also:
Constant Field Values

PROJECTION_None

public static final int PROJECTION_None
Use no projection on the input document

See Also:
Constant Field Values

PROJECTION_Standard

public static final int PROJECTION_Standard
Use standard projection algorithm

See Also:
Constant Field Values

PROJECTION_Optimized

public static final int PROJECTION_Optimized
Advanced projection

See Also:
Constant Field Values
Constructor Detail

ProcessingContext

protected ProcessingContext()

ProcessingContext

protected ProcessingContext(int native_item)
Method Detail

setMonitorMem

public void setMonitorMem(boolean b)
                   throws GalapiException
Enable ing of memory usage.

Parameters:
b - If true, memory ing is enabled
Throws:
GalapiException

setMonitorTime

public void setMonitorTime(boolean b)
                    throws GalapiException
Enable ing of time

Parameters:
b - If true, time ing is enabled
Throws:
GalapiException

monitorOfLastCall

public ItemList monitorOfLastCall()
                           throws GalapiException
Returns:
the ing data of the last call
Throws:
GalapiException

monitorOfAllCalls

public ItemList monitorOfAllCalls()
                           throws GalapiException
Returns:
the monitoing data of all the calls made
Throws:
GalapiException

setNormalizationPhase

public void setNormalizationPhase(boolean n)
                           throws GalapiException
Enable/disable the normalization phase

Parameters:
n - If true, phase is enabled
Throws:
GalapiException

setTypingPhase

public void setTypingPhase(boolean t)
                    throws GalapiException
Enable/disable the typing phase

Parameters:
t - If true, phase is enabled
Throws:
GalapiException

setCleaningPhase

public void setCleaningPhase(boolean c)
                      throws GalapiException
Parameters:
c - If true, phase is enabled
Throws:
GalapiException

setEvaluationPhase

public void setEvaluationPhase(boolean e)
                        throws GalapiException
Enable/disable the evaluation phase

Parameters:
e - If true, phase is enabled
Throws:
GalapiException

setSbdoKind

public void setSbdoKind(int kind)
                 throws GalapiException
Set one of the sbdo optimization modes (default = SBDO_Adhoc)

Parameters:
kind - One of SBDO_Remove, SBDO_Preserve, SBDO_Adhoc, SBDO_Tidy, SBDO_DupTidy, SBDO_Sloppy
Throws:
GalapiException

setTypingKind

public void setTypingKind(int kind)
                   throws GalapiException
Set one of the typing modes (default = TYPING_None)

Parameters:
kind - One of TYPING_None, TYPING_Weak, TYPING_Strong
Throws:
GalapiException

setSerializationKind

public void setSerializationKind(int kind)
                          throws GalapiException
Set one of the serialization modes (default = SERIALIZE_WellFormed)

Parameters:
kind - One of SERIALIZE_WellFormed, ERIALIZE_XQuery, SERIALIZE_Canonical
Throws:
GalapiException

setSerializeNsKind

public void setSerializeNsKind(int kind)
                        throws GalapiException
Enable/disable namespace node serialization (default = SERIALIZE_NS_Preserve)

Parameters:
kind - One of SERIALIZE_NS_Preserve, SERIALIZE_NS_Strip
Throws:
GalapiException

setProjectionKind

public void setProjectionKind(int kind)
                       throws GalapiException
Enable one of the projection modes (default = PROJECTION_None)

Parameters:
kind - One of PROJECTION_None, PROJECTION_Standard, PROJECTION_Optimized
Throws:
GalapiException

setXQueryWhiteSpace

public void setXQueryWhiteSpace(boolean b)
                         throws GalapiException
Enable/disable XQuery whitespace preservation

Parameters:
b - If true, whitespace is preserved
Throws:
GalapiException

setXmlWhitespace

public void setXmlWhitespace(boolean b)
                      throws GalapiException
Enable/disable XML whitespace preservation

Parameters:
b - If true, whitespace is preserved
Throws:
GalapiException

setXmlPisAndComments

public void setXmlPisAndComments(boolean b)
                          throws GalapiException
Enable/disable preservation of comments and PI's in XML

Parameters:
b - If true, PI's and comments are preserved
Throws:
GalapiException

nativeMonitorOfLastCall

protected int nativeMonitorOfLastCall(int pc)

nativeMonitorOfAllCalls

protected int nativeMonitorOfAllCalls(int pc)

nativeSetMonitorMem

protected void nativeSetMonitorMem(int pc,
                                   boolean b)

nativeSetMonitorTime

protected void nativeSetMonitorTime(int pc,
                                    boolean b)

nativeSetNormalizationPhase

protected void nativeSetNormalizationPhase(int pc,
                                           boolean b)

nativeSetTypingPhase

protected void nativeSetTypingPhase(int pc,
                                    boolean b)

nativeSetCleaningPhase

protected void nativeSetCleaningPhase(int pc,
                                      boolean b)

nativeSetEvaluationPhase

protected void nativeSetEvaluationPhase(int pc,
                                        boolean b)

nativeSetSbdoKind

protected void nativeSetSbdoKind(int pc,
                                 int kind)

nativeSetTypingKind

protected void nativeSetTypingKind(int pc,
                                   int kind)

nativeSetSerializationKind

protected void nativeSetSerializationKind(int pc,
                                          int kind)

nativeSetSerializeNsKind

protected void nativeSetSerializeNsKind(int pc,
                                        int kind)

nativeSetProjectionKind

protected void nativeSetProjectionKind(int pc,
                                       int kind)

nativeSetXQueryWhiteSpace

protected void nativeSetXQueryWhiteSpace(int pc,
                                         boolean b)

nativeSetXmlWhiteSpace

protected void nativeSetXmlWhiteSpace(int pc,
                                      boolean b)

nativeSetXmlPisAndComments

protected void nativeSetXmlPisAndComments(int pc,
                                          boolean b)