public abstract class Pattern extends Object
Pattern
defines the behaviour for pattern in
the XSLT processing model.
Modifier and Type | Field and Description |
---|---|
static short |
ANY_NODE
Deprecated.
Matches any node
|
static short |
ATTRIBUTE_NODE
Deprecated.
Matches attribute nodes
|
static short |
CDATA_SECTION_NODE
Deprecated.
Matches CDATA section nodes
|
static short |
COMMENT_NODE
Deprecated.
Matches comment nodes
|
static short |
DOCUMENT_NODE
Deprecated.
Matches document nodes
|
static short |
DOCUMENT_TYPE_NODE
Deprecated.
Matches DocumentType nodes
|
static short |
ELEMENT_NODE
Deprecated.
Matches Element nodes
|
static short |
ENTITY_REFERENCE_NODE
Deprecated.
Matches entity reference nodes
|
static short |
MAX_NODE_TYPE
Deprecated.
The maximum number of node types for sizing purposes
|
static short |
NAMESPACE_NODE
Deprecated.
Matches a Namespace Node
|
static short |
NO_NODE
Deprecated.
Matches no nodes
|
static short |
PROCESSING_INSTRUCTION_NODE
Deprecated.
Matches ProcessingInstruction
|
static short |
TEXT_NODE
Deprecated.
Matches text nodes
|
static short |
UNKNOWN_NODE
Deprecated.
Does not match any valid node
|
Constructor and Description |
---|
Pattern()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getMatchesNodeName()
Deprecated.
For patterns which only match an ATTRIBUTE_NODE or an
ELEMENT_NODE then this pattern may return the name of the
element or attribute it matches.
|
short |
getMatchType()
Deprecated.
Returns the type of node the pattern matches.
|
double |
getPriority()
Deprecated.
Returns the default resolution policy of the pattern according to the
XSLT conflict resolution rules.
|
abstract String |
getText()
Deprecated.
Returns a textual representation of this pattern
|
Pattern[] |
getUnionPatterns()
Deprecated.
If this pattern is a union pattern then this
method should return an array of patterns which
describe the union pattern, which should contain more than one pattern.
|
abstract boolean |
matches(Object node,
Context context)
Deprecated.
|
Pattern |
simplify()
Deprecated.
|
public static final short ELEMENT_NODE
public static final short ATTRIBUTE_NODE
public static final short TEXT_NODE
public static final short CDATA_SECTION_NODE
public static final short ENTITY_REFERENCE_NODE
public static final short PROCESSING_INSTRUCTION_NODE
public static final short COMMENT_NODE
public static final short DOCUMENT_NODE
public static final short DOCUMENT_TYPE_NODE
public static final short NAMESPACE_NODE
public static final short UNKNOWN_NODE
public static final short MAX_NODE_TYPE
public static final short ANY_NODE
public static final short NO_NODE
public abstract boolean matches(Object node, Context context) throws JaxenException
node
- ????context
- ????JaxenException
- if ????public double getPriority()
public Pattern[] getUnionPatterns()
public short getMatchType()
ANY_NODE
unless overriddenpublic String getMatchesNodeName()
public Pattern simplify()
public abstract String getText()
Copyright © 2001–2021 The Jaxen Project. All rights reserved.