|
Qizx/open API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.axyana.qizxopen.dm.BaseNodeTest
Tests a node by node kind, and by name if appropriate. Supports wildcards.
Field Summary | |
int |
kind
Tested kind (ELEMENT TEXT PI COMMENT..., or -1 for node()) |
java.lang.String |
name
Localname test: null if not specified (* or ns:*) |
Namespace |
namespace
Namespace test: null if not specified (* or *:NCName) |
QName |
qname
Accelerator, non-null if non-null namespace and name. |
Constructor Summary | |
BaseNodeTest(int kind,
Namespace namespace,
java.lang.String name)
Builds a node test specifying the node-kind and optionally the name of nodes to match. |
Method Summary | |
boolean |
accepts(int nodeKind,
QName nodeName)
Optimized test method. |
boolean |
accepts(Node node)
Generic test method. |
int |
getNodeKind()
Returns the node kind (Node.ELEMENT, Node.TEXT etc) specifically matched, or -1 if several kinds can be matched. |
boolean |
needsNode()
Tells whether more information than the node kind and its name are necessary to perform the test. |
boolean |
staticallyCheckable()
Returns true for simple node test (node kind only). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int kind
public Namespace namespace
public java.lang.String name
public QName qname
Constructor Detail |
public BaseNodeTest(int kind, Namespace namespace, java.lang.String name)
kind
- the node-kind as defined in Node: ELEMENT, ATTRIBUTE, TEXT etc.namespace
- of the node name.
If null, represents the wildcard *:NCName.name
- local part of node name.
If null, represents the wildcard ns:* or *.Method Detail |
public java.lang.String toString()
public int getNodeKind()
NodeTest
getNodeKind
in interface NodeTest
public boolean staticallyCheckable()
NodeTest
staticallyCheckable
in interface NodeTest
public boolean accepts(int nodeKind, QName nodeName)
NodeTest
NodeTest.needsNode()
.
accepts
in interface NodeTest
public boolean needsNode()
NodeTest
needsNode
in interface NodeTest
public boolean accepts(Node node)
NodeTest
accepts
in interface NodeTest
|
© 2005 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |