C# 클래스 com.ximpleware.AutoPilot

XimpleWare's AutoPilot implementation encapsulating node iterator and XPath.
파일 보기 프로젝트 열기: jzhang2004/vtd-xml 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
URL System.String
cachingEnabled bool
contextCopy int[]
depth int
endIndex int
ft bool
index int
iter_type int
localName System.String
name System.String
name2 System.String
nsHash System.Collections.Hashtable
size int
special bool
stackSize int
vn VTDNav
xpe Expr

공개 메소드들

메소드 설명
AutoPilot ( ) : System

Use this constructor for delayed binding to VTDNav which allows the reuse of XPath expression

AutoPilot ( VTDNav v ) : System

AutoPilot constructor comment.

bind ( VTDNav vnv ) : void

Bind is to replace rebind() and setVTDNav() It resets the internal state of AutoPilot so one can attach a VTDNav object to the autopilot

clearVariableExprs ( ) : void

Remove all namespaces bindings

clearXPathNameSpaces ( ) : void

Remove all namespace bindings

declareVariableExpr ( String varName, String varExpr ) : void

declare variable references

declareXPathNameSpace ( System prefix, System URL ) : void

This function creates URL ns prefix and is intended to be called prior to selectXPath

enableCaching ( bool state ) : void

set state to false to disable caching, which by default is enabled This method will turn on the internal caching feature during xpath evaluation, which is to store the evaluation results of absolute expressions when they resides in a predicate examples: //a[//bb=//cc] //bb and //cc are cached internally to avoid repeitive computation.. param state

evalXPath ( ) : int

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

evalXPathToBoolean ( ) : bool

evalXPathToBoolean() evaluates the xpath expression to a boolean

evalXPathToNumber ( ) : double

evalXPathToNumber() evaluates the xpath expression to a double

evalXPathToString ( ) : String

evalXPathToString() evaluates the xpath expression to a String

getExprString ( ) : System.String

Convert the expression to a string For debugging purpose

getNav ( ) : VTDNav
iterate ( ) : bool

Iterate over all the selected element nodes in document order. Null element name allowed, corresponding to node() in xpath Creation date: (12/4/03 5:25:42 PM)

iterate2 ( ) : bool
iterateAttr ( ) : int

This method implements the attribute axis for XPath

resetXPath ( ) : void

Reset the XPath so the XPath Expression can be reused and revaluated in anther context position

selectAttr ( System en ) : void

Select an attribute name for iteration, * choose all attributes of an element

selectAttrNS ( System ns_URL, System ln ) : void

Select an attribute name, both local part and namespace URL part

selectElement ( System en ) : void

Select the element name before iterating. "*" matches every element Creation date: (12/4/03 5:51:31 PM)

selectElementNS ( System ns_URL, System ln ) : void

Select the element name (name space version) before iterating. URL, if set to *, matches every namespace URL, if set to null, indicates the namespace is undefined. localname, if set to *, matches any localname Creation date: (12/4/03 6:05:19 PM)

selectXPath ( System s ) : void

This method selects the string representing XPath expression Usually evalXPath is called afterwards

보호된 메소드들

메소드 설명
checkNsUniqueness ( int i ) : bool
iterateAttr2 ( ) : int

This method implements the attribute axis for XPath

iterateNameSpace ( ) : int

selectDescendantNode ( ) : void

selectElementNS_D ( System ns_URL, System ln ) : void

Select all descendent elements along the Descendent axis, withns awareness

selectElementNS_F ( System ns_URL, System ln ) : void

Select all elements along the preceding axis as defined in XPath The namespace-aware version

selectElementNS_P ( System ns_URL, System ln ) : void

Select all elements along the preceding axis as defined in XPath This is the namespace aware version

selectElement_D ( System en ) : void

Select all descendent elements along the descendent axis, without ns awareness

selectElement_F ( System en ) : void

Select all elements along the following axis, without ns, null selects every elements and documents

selectElement_P ( System en ) : void

Select all elements along the preceding axis as defined in XPath

selectFollowingNode ( ) : void
selectNameSpace ( String en ) : void

selectNode ( ) : void
selectPrecedingNode ( ) : void

메소드 상세

AutoPilot() 공개 메소드

Use this constructor for delayed binding to VTDNav which allows the reuse of XPath expression
public AutoPilot ( ) : System
리턴 System

AutoPilot() 공개 메소드

AutoPilot constructor comment.
If the VTDNav object is null ///
public AutoPilot ( VTDNav v ) : System
v VTDNav
리턴 System

bind() 공개 메소드

Bind is to replace rebind() and setVTDNav() It resets the internal state of AutoPilot so one can attach a VTDNav object to the autopilot
public bind ( VTDNav vnv ) : void
vnv VTDNav * ///
리턴 void

checkNsUniqueness() 보호된 메소드

protected checkNsUniqueness ( int i ) : bool
i int
리턴 bool

clearVariableExprs() 공개 메소드

Remove all namespaces bindings
public clearVariableExprs ( ) : void
리턴 void

clearXPathNameSpaces() 공개 메소드

Remove all namespace bindings
public clearXPathNameSpaces ( ) : void
리턴 void

declareVariableExpr() 공개 메소드

declare variable references
public declareVariableExpr ( String varName, String varExpr ) : void
varName String
varExpr String
리턴 void

declareXPathNameSpace() 공개 메소드

This function creates URL ns prefix and is intended to be called prior to selectXPath
public declareXPathNameSpace ( System prefix, System URL ) : void
prefix System
URL System
리턴 void

enableCaching() 공개 메소드

set state to false to disable caching, which by default is enabled This method will turn on the internal caching feature during xpath evaluation, which is to store the evaluation results of absolute expressions when they resides in a predicate examples: //a[//bb=//cc] //bb and //cc are cached internally to avoid repeitive computation.. param state
public enableCaching ( bool state ) : void
state bool
리턴 void

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
public evalXPath ( ) : int
리턴 int

evalXPathToBoolean() 공개 메소드

evalXPathToBoolean() evaluates the xpath expression to a boolean
public evalXPathToBoolean ( ) : bool
리턴 bool

evalXPathToNumber() 공개 메소드

evalXPathToNumber() evaluates the xpath expression to a double
public evalXPathToNumber ( ) : double
리턴 double

evalXPathToString() 공개 메소드

evalXPathToString() evaluates the xpath expression to a String
public evalXPathToString ( ) : String
리턴 String

getExprString() 공개 메소드

Convert the expression to a string For debugging purpose
public getExprString ( ) : System.String
리턴 System.String

getNav() 공개 메소드

public getNav ( ) : VTDNav
리턴 VTDNav

iterate() 공개 메소드

Iterate over all the selected element nodes in document order. Null element name allowed, corresponding to node() in xpath Creation date: (12/4/03 5:25:42 PM)
See description in method toElement() in VTDNav class. ///
public iterate ( ) : bool
리턴 bool

iterate2() 공개 메소드

public iterate2 ( ) : bool
리턴 bool

iterateAttr() 공개 메소드

This method implements the attribute axis for XPath
public iterateAttr ( ) : int
리턴 int

iterateAttr2() 보호된 메소드

This method implements the attribute axis for XPath
protected iterateAttr2 ( ) : int
리턴 int

iterateNameSpace() 보호된 메소드

protected iterateNameSpace ( ) : int
리턴 int

resetXPath() 공개 메소드

Reset the XPath so the XPath Expression can be reused and revaluated in anther context position
public resetXPath ( ) : void
리턴 void

selectAttr() 공개 메소드

Select an attribute name for iteration, * choose all attributes of an element
public selectAttr ( System en ) : void
en System ///
리턴 void

selectAttrNS() 공개 메소드

Select an attribute name, both local part and namespace URL part
public selectAttrNS ( System ns_URL, System ln ) : void
ns_URL System ///
ln System ///
리턴 void

selectDescendantNode() 보호된 메소드

protected selectDescendantNode ( ) : void
리턴 void

selectElement() 공개 메소드

Select the element name before iterating. "*" matches every element Creation date: (12/4/03 5:51:31 PM)
public selectElement ( System en ) : void
en System java.lang.String ///
리턴 void

selectElementNS() 공개 메소드

Select the element name (name space version) before iterating. URL, if set to *, matches every namespace URL, if set to null, indicates the namespace is undefined. localname, if set to *, matches any localname Creation date: (12/4/03 6:05:19 PM)
public selectElementNS ( System ns_URL, System ln ) : void
ns_URL System
ln System java.lang.String ///
리턴 void

selectElementNS_D() 보호된 메소드

Select all descendent elements along the Descendent axis, withns awareness
protected selectElementNS_D ( System ns_URL, System ln ) : void
ns_URL System ///
ln System ///
리턴 void

selectElementNS_F() 보호된 메소드

Select all elements along the preceding axis as defined in XPath The namespace-aware version
protected selectElementNS_F ( System ns_URL, System ln ) : void
ns_URL System
ln System
리턴 void

selectElementNS_P() 보호된 메소드

Select all elements along the preceding axis as defined in XPath This is the namespace aware version
protected selectElementNS_P ( System ns_URL, System ln ) : void
ns_URL System ///
ln System ///
리턴 void

selectElement_D() 보호된 메소드

Select all descendent elements along the descendent axis, without ns awareness
protected selectElement_D ( System en ) : void
en System ///
리턴 void

selectElement_F() 보호된 메소드

Select all elements along the following axis, without ns, null selects every elements and documents
protected selectElement_F ( System en ) : void
en System ///
리턴 void

selectElement_P() 보호된 메소드

Select all elements along the preceding axis as defined in XPath
protected selectElement_P ( System en ) : void
en System ///
리턴 void

selectFollowingNode() 보호된 메소드

protected selectFollowingNode ( ) : void
리턴 void

selectNameSpace() 보호된 메소드

protected selectNameSpace ( String en ) : void
en String
리턴 void

selectNode() 보호된 메소드

protected selectNode ( ) : void
리턴 void

selectPrecedingNode() 보호된 메소드

protected selectPrecedingNode ( ) : void
리턴 void

selectXPath() 공개 메소드

This method selects the string representing XPath expression Usually evalXPath is called afterwards
public selectXPath ( System s ) : void
s System ///
리턴 void

프로퍼티 상세

URL 보호되어 있는 프로퍼티

Store URL name after selectElementNS
protected String,System URL
리턴 System.String

cachingEnabled 보호되어 있는 프로퍼티

true if caching is enabled for xpath evaluation
protected bool cachingEnabled
리턴 bool

contextCopy 보호되어 있는 프로퍼티

for preceding axis
protected int[] contextCopy
리턴 int[]

depth 보호되어 있는 프로퍼티

the depth of the element at the starting point will determine when to stop iteration
protected int depth
리턴 int

endIndex 보호되어 있는 프로퍼티

protected int endIndex
리턴 int

ft 보호되어 있는 프로퍼티

a helper variable for
protected bool ft
리턴 bool

index 보호되어 있는 프로퍼티

for iterAttr
protected int index
리턴 int

iter_type 보호되어 있는 프로퍼티

see selectElement
protected int iter_type
리턴 int

localName 보호되어 있는 프로퍼티

Store local name after selectElemntNS
protected String,System localName
리턴 System.String

name 보호되어 있는 프로퍼티

Store element name after selectElement
protected String,System name
리턴 System.String

name2 보호되어 있는 프로퍼티

xmlns:+name
protected String,System name2
리턴 System.String

nsHash 보호되어 있는 정적으로 프로퍼티

hash table holding
protected static System.Collections.Hashtable nsHash
리턴 System.Collections.Hashtable

size 보호되어 있는 프로퍼티

for iterateAttr
protected int size
리턴 int

special 보호되어 있는 프로퍼티

This helps distinguish between
protected bool special
리턴 bool

stackSize 보호되어 있는 프로퍼티

the stack size for xpath evaluation
protected int stackSize
리턴 int

vn 보호되어 있는 프로퍼티

the navigator object
protected VTDNav vn
리턴 VTDNav

xpe 보호되어 있는 프로퍼티

for evalXPath
protected Expr xpe
리턴 Expr