|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ximpleware.extended.AutoPilotHuge
public class AutoPilotHuge
XimpleWare's AutoPilotHuge implementation encapsulating node iterator and XPath. AutoPilotHuge is an extended VTD edition of AutoPilot supporting 256 GigByte XML file
| Field Summary | |
|---|---|
static int |
ATTR
|
static int |
ATTR_NS
|
static int |
DESCENDANT
|
static int |
DESCENDANT_NS
|
static int |
FOLLOWING
|
static int |
FOLLOWING_NS
|
static int |
PRECEDING
|
static int |
PRECEDING_NS
|
static int |
SIMPLE
|
static int |
SIMPLE_NS
|
static int |
UNDEFINED
|
| Constructor Summary | |
|---|---|
AutoPilotHuge()
Use this constructor for delayed binding to VTDNavHuge which allows the reuse of XPath expression |
|
AutoPilotHuge(VTDNavHuge v)
AutoPilotHuge constructor comment. |
|
| Method Summary | |
|---|---|
void |
bind(VTDNavHuge vnv)
Bind resets the internal state of AutoPilotHuge so one can attach a VTDNavHuge object to the autopilot |
void |
clearVariableExprs()
Remove all declared variable expressions |
void |
clearXPathNameSpaces()
Remove all namespaces bindings |
void |
declareVariableExpr(String varName,
String varExpr)
Register the binding between a variableExpr name and variableExpr expression |
void |
declareXPathNameSpace(String prefix,
String URL)
This function creates URL ns prefix and is intended to be called prior to selectXPath |
int |
evalXPath()
This method returns the next node in the nodeset it returns -1 if there is no more node Afer finishing evaluating, don't forget to reset the xpath |
boolean |
evalXPathToBoolean()
evalXPathToBoolean() evaluates the xpath expression to a boolean |
double |
evalXPathToNumber()
evalXPathToNumber() evaluates the xpath expression to a double |
String |
evalXPathToString()
evalXPathToString() evaluates the xpath expression to a String |
String |
getExprString()
Convert the expression to a string For debugging purpose |
protected String |
getName()
|
boolean |
iterate()
Iterate over all the selected element nodes in document order. |
protected int |
iterateAttr()
This method implements the attribute axis for XPath |
void |
resetXPath()
Reset the XPath so the XPath Expression can be reused and revaluated in anther context position |
protected void |
selectAttr(String en)
Select an attribute name for iteration, * choose all attributes of an element |
protected void |
selectAttrNS(String ns_URL,
String ln)
Select an attribute name, both local part and namespace URL part |
protected void |
selectElement_D(String en)
Select all descendent elements along the descendent axis, without ns awareness |
protected void |
selectElement_F(String en)
Select all elements along the following axis, without ns, null selects every elements and documents |
protected void |
selectElement_P(String en)
Select all elements along the preceding axis as defined in XPath |
void |
selectElement(String en)
Select the element name before iterating. "*" matches every element Creation date: (12/4/03 5:51:31 PM) |
protected void |
selectElementNS_D(String ns_URL,
String ln)
Select all descendent elements along the Descendent axis, withns awareness |
protected void |
selectElementNS_F(String ns_URL,
String ln)
Select all elements along the preceding axis as defined in XPath The namespace-aware version |
protected void |
selectElementNS_P(String ns_URL,
String ln)
Select all elements along the preceding axis as defined in XPath This is the namespace aware version |
void |
selectElementNS(String ns_URL,
String ln)
Select the element name (name space version) before iterating. |
void |
selectXPath(String s)
This method selects the string representing XPath expression Usually evalXPath is called afterwards |
protected void |
setSpecial(boolean b)
Setspecial is used by XPath evaluator to distinguish between node() and * node() corresponding to b= true; |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNDEFINED
public static final int SIMPLE
public static final int SIMPLE_NS
public static final int DESCENDANT
public static final int DESCENDANT_NS
public static final int FOLLOWING
public static final int FOLLOWING_NS
public static final int PRECEDING
public static final int PRECEDING_NS
public static final int ATTR
public static final int ATTR_NS
| Constructor Detail |
|---|
public AutoPilotHuge(VTDNavHuge v)
IllegalArgumentException - If the VTDNav object is nullpublic AutoPilotHuge()
| Method Detail |
|---|
protected String getName()
public void declareXPathNameSpace(String prefix,
String URL)
prefix - URL - public void bind(VTDNavHuge vnv)
vnv -
public void declareVariableExpr(String varName,
String varExpr)
throws XPathParseExceptionHuge
varName - varExpr -
XPathParseException
XPathParseExceptionHuge
public boolean iterate()
throws PilotExceptionHuge,
NavExceptionHuge
NavExceptionHuge - See description in method toElement() in VTDNavHuge class.
PilotExceptionHuge
protected int iterateAttr()
throws PilotExceptionHuge,
NavExceptionHuge
PilotException
PilotExceptionHuge
NavExceptionHugepublic void selectElement(String en)
en - java.lang.String
public void selectElementNS(String ns_URL,
String ln)
ns_URL - Stringln - Stringprotected void selectElement_D(String en)
en -
protected void selectElementNS_D(String ns_URL,
String ln)
ns_URL - ln - protected void selectElement_F(String en)
en -
protected void selectElementNS_F(String ns_URL,
String ln)
en - protected void selectElement_P(String en)
en -
protected void selectElementNS_P(String ns_URL,
String ln)
ns_URL - ln - protected void selectAttr(String en)
en -
protected void selectAttrNS(String ns_URL,
String ln)
ns_URL - ln -
public void selectXPath(String s)
throws XPathParseExceptionHuge
s -
XPathParseException
XPathParseExceptionHugepublic void resetXPath()
public double evalXPathToNumber()
public String evalXPathToString()
public boolean evalXPathToBoolean()
public int evalXPath()
throws XPathEvalExceptionHuge,
NavExceptionHuge
XPathEvalExceptionHuge
NavExceptionHugeprotected void setSpecial(boolean b)
b - public String getExprString()
public void clearVariableExprs()
public void clearXPathNameSpaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||