|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface describing XSLT Pattern behavior.
| Field Summary | |
static int |
ANY_TARGET
When returned from getTarget(), indicates this Pattern matches any node type. |
static int |
ATTRIBUTE_NAMED_TARGET
When returned from getTarget(), indicates this Pattern matches attributes with a specific name. |
static int |
ATTRIBUTE_WILDCARD_TARGET
When returned from getTarget(), indicates this Pattern matches attributes with any name (this includes the forms NCName:*, *:NCName, and *). |
static int |
COMMENT_TARGET
When returned from getTarget(), indicates this Pattern matches comment nodes. |
static int |
ELEMENT_NAMED_TARGET
When returned from getTarget(), indicates this Pattern matches elements with a specific name. |
static int |
ELEMENT_WILDCARD_TARGET
When returned from getTarget(), indicates this Pattern matches elements with any name (this includes the forms NCName:*, *:NCName, and *). |
static int |
NAMESPACE_TARGET
When returned from getTarget(), indicates this Pattern matches namespace nodes. |
static int |
PI_TARGET
When returned from getTarget(), indicates this Pattern matches processing-instruction nodes. |
static int |
ROOT_TARGET
When returned from getTarget(), indicates this Pattern matches the root node. |
static int |
TEXT_TARGET
When returned from getTarget(), indicates this Pattern matches text nodes. |
| Method Summary | |
void |
dump(PrintWriter writer,
int indent)
Print the pattern in a readable form for debugging. |
double |
getDefaultPriority()
Return the default priority for this pattern. |
int |
getTarget()
Return the target type of this Pattern. |
ExpandedQName |
getTargetName()
Return the name of the patterns target, if there is a target name. |
boolean |
match(Node node,
ExpressionContext context)
Return true or false depending on whether the passed node matches the XSLT Pattern or not. |
| Field Detail |
public static final int ROOT_TARGET
public static final int ELEMENT_NAMED_TARGET
public static final int ELEMENT_WILDCARD_TARGET
public static final int ATTRIBUTE_NAMED_TARGET
public static final int ATTRIBUTE_WILDCARD_TARGET
public static final int COMMENT_TARGET
public static final int PI_TARGET
public static final int TEXT_TARGET
public static final int NAMESPACE_TARGET
public static final int ANY_TARGET
| Method Detail |
public boolean match(Node node,
ExpressionContext context)
throws XPathEvaluationException
node - The node to match.context - The context for matching.
XPathEvaluationExceptionpublic double getDefaultPriority()
public int getTarget()
public ExpandedQName getTargetName()
public void dump(PrintWriter writer,
int indent)
writer - The output device.indent - Number of tabs to indent the result.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||