|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.in.PathContext
Describes parse state of TargetPath.
| Constructor Summary | |
PathContext(int pStartDepth,
PathContext pPathContext)
Create a copy with different start depth. |
|
PathContext(TargetPath pTargetPath,
int pDepth,
DocContext pDocContext)
Create from TargetPath for current document context. |
|
| Method Summary | |
void |
ascend(TargetPath pTargetPath)
Move to previous path part. |
void |
clear(TargetPath pTargetPath)
Clear data values and match state. |
void |
clearPredicateSubPaths(DocContext pDocContext)
Clear data values from sub paths that are in predicates. |
void |
clearValue()
Clear the data value. |
void |
descend(TargetPath pTargetPath,
int pDepth,
DocContext pDocContext)
Move to next search part. |
PathPart |
getChild(TargetPath pTargetPath)
Get the path part following the current one. |
com.ricebridge.xmlman.tp.Context |
getContext()
Get the current Jaxen Context. |
int |
getMatchCount()
Get the number of times this path matched. |
int |
getMatchDepth()
Get the depth at which a match was found. |
PathPart |
getParent()
Get the previous path part. |
int |
getParentMatchDepth()
Get the depth at which the previous part matched. |
int |
getPartPosition()
get the current part position. |
PathPart |
getSearch()
Get the currently searching path part. |
int |
getSearchMatchDepth()
get the depth at which the current searching part matched. |
int |
getSearchStartDepth()
get the depth at which the current searching part started searching. |
int |
getStartDepth()
Get the depth at which searching started. |
TextAppender |
getTextAppender()
Get the current TextAppender. |
Object |
getValue(TargetPath pTargetPath)
Get the current data value. |
void |
handleTarget(TargetPath pTargetPath,
EndPoint pEndPoint)
On match of target element end tag, collect text value. |
void |
handleTarget(TargetPath pTargetPath,
StartPoint pStartPoint,
int pDepth,
DocContext pDocContext)
On match of target element start tag (final path part), collect values. |
boolean |
hasChild(TargetPath pTargetPath)
Current path part has a following path part. |
boolean |
hasParent()
Check for previous path part. |
boolean |
hasSearch()
Check for current searching part. |
void |
incrementMatchCount()
increment the match count. |
boolean |
matchConditions(TargetPath pTargetPath,
DocContext pDocContext)
Test for match of conditions on all path parts. |
void |
revokeValue(TargetPath pTargetPath)
Reset data value to previous value. |
void |
setIgnoreClear(boolean pIgnoreClear)
Ignore requests to clear data values and match state. |
void |
setMatchDepth(int pMatchDepth)
Set the depth at which a match was found. |
void |
setStartDepth(int pStartDepth)
Set the depth at which this path started searching. |
String |
toString()
Debugging description. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PathContext(TargetPath pTargetPath,
int pDepth,
DocContext pDocContext)
TargetPath for current document context.
public PathContext(int pStartDepth,
PathContext pPathContext)
| Method Detail |
public void descend(TargetPath pTargetPath,
int pDepth,
DocContext pDocContext)
public void ascend(TargetPath pTargetPath)
public void clearPredicateSubPaths(DocContext pDocContext)
public int getMatchCount()
public void incrementMatchCount()
public void setIgnoreClear(boolean pIgnoreClear)
public void clear(TargetPath pTargetPath)
public void revokeValue(TargetPath pTargetPath)
public void setStartDepth(int pStartDepth)
public int getPartPosition()
public int getParentMatchDepth()
public int getSearchMatchDepth()
public int getSearchStartDepth()
public PathPart getParent()
public boolean hasParent()
public PathPart getSearch()
public boolean hasSearch()
public boolean hasChild(TargetPath pTargetPath)
public PathPart getChild(TargetPath pTargetPath)
public void setMatchDepth(int pMatchDepth)
public int getMatchDepth()
public int getStartDepth()
public Object getValue(TargetPath pTargetPath)
public void clearValue()
public com.ricebridge.xmlman.tp.Context getContext()
Context.
public TextAppender getTextAppender()
TextAppender.
public String toString()
public void handleTarget(TargetPath pTargetPath,
StartPoint pStartPoint,
int pDepth,
DocContext pDocContext)
public void handleTarget(TargetPath pTargetPath,
EndPoint pEndPoint)
public boolean matchConditions(TargetPath pTargetPath,
DocContext pDocContext)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||