|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgalapi.Context
galapi.ProcessingContext
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 |
public static final int SBDO_Remove
public static final int SBDO_Preserve
public static final int SBDO_Adhoc
public static final int SBDO_Tidy
public static final int SBDO_DupTidy
public static final int SBDO_Sloppy
public static final int TYPING_None
public static final int TYPING_Weak
public static final int TYPING_Strong
public static final int SERIALIZE_WellFormed
public static final int SERIALIZE_XQuery
public static final int SERIALIZE_Canonical
public static final int SERIALIZE_NS_Strip
public static final int SERIALIZE_NS_Preserve
public static final int PROJECTION_None
public static final int PROJECTION_Standard
public static final int PROJECTION_Optimized
Constructor Detail |
protected ProcessingContext()
protected ProcessingContext(int native_item)
Method Detail |
public void setMonitorMem(boolean b) throws GalapiException
b
- If true, memory ing is enabled
GalapiException
public void setMonitorTime(boolean b) throws GalapiException
b
- If true, time ing is enabled
GalapiException
public ItemList monitorOfLastCall() throws GalapiException
GalapiException
public ItemList monitorOfAllCalls() throws GalapiException
GalapiException
public void setNormalizationPhase(boolean n) throws GalapiException
n
- If true, phase is enabled
GalapiException
public void setTypingPhase(boolean t) throws GalapiException
t
- If true, phase is enabled
GalapiException
public void setCleaningPhase(boolean c) throws GalapiException
c
- If true, phase is enabled
GalapiException
public void setEvaluationPhase(boolean e) throws GalapiException
e
- If true, phase is enabled
GalapiException
public void setSbdoKind(int kind) throws GalapiException
kind
- One of SBDO_Remove, SBDO_Preserve, SBDO_Adhoc, SBDO_Tidy, SBDO_DupTidy, SBDO_Sloppy
GalapiException
public void setTypingKind(int kind) throws GalapiException
kind
- One of TYPING_None, TYPING_Weak, TYPING_Strong
GalapiException
public void setSerializationKind(int kind) throws GalapiException
kind
- One of SERIALIZE_WellFormed, ERIALIZE_XQuery, SERIALIZE_Canonical
GalapiException
public void setSerializeNsKind(int kind) throws GalapiException
kind
- One of SERIALIZE_NS_Preserve, SERIALIZE_NS_Strip
GalapiException
public void setProjectionKind(int kind) throws GalapiException
kind
- One of PROJECTION_None, PROJECTION_Standard, PROJECTION_Optimized
GalapiException
public void setXQueryWhiteSpace(boolean b) throws GalapiException
b
- If true, whitespace is preserved
GalapiException
public void setXmlWhitespace(boolean b) throws GalapiException
b
- If true, whitespace is preserved
GalapiException
public void setXmlPisAndComments(boolean b) throws GalapiException
b
- If true, PI's and comments are preserved
GalapiException
protected int nativeMonitorOfLastCall(int pc)
protected int nativeMonitorOfAllCalls(int pc)
protected void nativeSetMonitorMem(int pc, boolean b)
protected void nativeSetMonitorTime(int pc, boolean b)
protected void nativeSetNormalizationPhase(int pc, boolean b)
protected void nativeSetTypingPhase(int pc, boolean b)
protected void nativeSetCleaningPhase(int pc, boolean b)
protected void nativeSetEvaluationPhase(int pc, boolean b)
protected void nativeSetSbdoKind(int pc, int kind)
protected void nativeSetTypingKind(int pc, int kind)
protected void nativeSetSerializationKind(int pc, int kind)
protected void nativeSetSerializeNsKind(int pc, int kind)
protected void nativeSetProjectionKind(int pc, int kind)
protected void nativeSetXQueryWhiteSpace(int pc, boolean b)
protected void nativeSetXmlWhiteSpace(int pc, boolean b)
protected void nativeSetXmlPisAndComments(int pc, boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |