|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.in.PathPart
Represents a node in search tree.
| Field Summary | |
static PathPart |
NONE
Empty node. |
| Constructor Summary | |
PathPart(String pLocalName,
int pType)
Convenience constructor. |
|
PathPart(String pLocalName,
int pType,
int pTest)
Convenience constructor. |
|
PathPart(String pLocalName,
String pPrefix,
int pType,
int pTest,
boolean pNamespaceAware)
Define a search node in the TargetPath. |
|
| Method Summary | |
void |
clearPredicateSubPaths(DocContext pDocContext)
Clear the TargetPath data values of paths that are in the condition predicate of this path part. |
Condition |
getCondition()
Get the Condition that this node must satisfy. |
boolean |
getContinueAfterMatch()
Get continue searching after match setting. |
String |
getLocalName()
Get the localname of the nodes that this part matches. |
String |
getNamespaceURI()
Get the URI of the namespace that this part requires. |
String |
getPrefix()
Get the namespace prefix of the nodes that this part matches. |
String |
getQName()
Get the qualified named (prefix:localname) of the nodes that this part matches. |
int |
getTest()
Get the node test, for example CoreDef.ANY. |
int |
getType()
Get the node match type, for example CoreDef.CHILD. |
boolean |
match(PartContext pPartContext,
DocContext pDocContext)
Check whether the condition of this part matches against the current parse context. |
void |
resolveURI(Map pNamespaceMap)
Store namespace associated with prefix provided in constructor. |
void |
setCondition(Condition pCondition)
Set the Condition that this node must satisfy, can be null. |
void |
setContinueAfterMatch(boolean pContinueAfterMatch)
Continue searching after match found, used for descendant axis. |
String |
toString()
Debugging description. |
PathPart |
unconditionalDuplicate()
Create a new part with same match criteria as this one, but no conditions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final PathPart NONE
| Constructor Detail |
public PathPart(String pLocalName,
int pType)
PathPart(String,String,int,int,boolean)
public PathPart(String pLocalName,
int pType,
int pTest)
PathPart(String,String,int,int,boolean)
public PathPart(String pLocalName,
String pPrefix,
int pType,
int pTest,
boolean pNamespaceAware)
TargetPath.
pLocalName - element tag local namepPrefix - element tag prefixpType - node type (for example: CoreDef.CHILD)pTest - node text (for example: CoreDef.ANY)pNamespaceAware - localname is qname| Method Detail |
public void resolveURI(Map pNamespaceMap)
public void setContinueAfterMatch(boolean pContinueAfterMatch)
public boolean getContinueAfterMatch()
setContinueAfterMatch(boolean)public PathPart unconditionalDuplicate()
public int getType()
CoreDef.CHILD.
public int getTest()
CoreDef.ANY.
public String getLocalName()
public String getPrefix()
public String getQName()
public String getNamespaceURI()
public void setCondition(Condition pCondition)
Condition that this node must satisfy, can be null.
public Condition getCondition()
Condition that this node must satisfy.
NOTE: may be null if there is no condition.
public void clearPredicateSubPaths(DocContext pDocContext)
TargetPath data values of paths that are in the condition predicate of this path part.
public boolean match(PartContext pPartContext,
DocContext pDocContext)
If no condition, always match.
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||