|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Simple filter for doing node tests. Note the semantics of this are somewhat different that the DOM's NodeFilter.
Field Summary | |
static int |
SHOW_ALL
Show all Nodes . |
static int |
SHOW_ATTRIBUTE
Show Attr nodes. |
static int |
SHOW_BYFUNCTION
Special bitmap for match patterns starting with a function. |
static int |
SHOW_CDATA_SECTION
Show CDATASection nodes. |
static int |
SHOW_COMMENT
Show Comment nodes. |
static int |
SHOW_DOCUMENT
Show Document nodes. |
static int |
SHOW_DOCUMENT_FRAGMENT
Show DocumentFragment nodes. |
static int |
SHOW_DOCUMENT_TYPE
Show DocumentType nodes. |
static int |
SHOW_ELEMENT
Show Element nodes. |
static int |
SHOW_ENTITY
Show Entity nodes. |
static int |
SHOW_ENTITY_REFERENCE
Show EntityReference nodes. |
static int |
SHOW_NAMESPACE
This bit specifies a namespace, and extends the SHOW_XXX stuff in NodeFilter . |
static int |
SHOW_NOTATION
Show Notation nodes. |
static int |
SHOW_PROCESSING_INSTRUCTION
Show ProcessingInstruction nodes. |
static int |
SHOW_TEXT
Show Text nodes. |
Method Summary | |
short |
acceptNode(int nodeHandle,
int whatToShow)
Test whether a specified node is visible in the logical view of a DTMIterator . |
short |
acceptNode(int nodeHandle,
int whatToShow,
int expandedName)
Test whether a specified node is visible in the logical view of a DTMIterator . |
Field Detail |
public static final int SHOW_ALL
Nodes
.public static final int SHOW_ELEMENT
Element
nodes.public static final int SHOW_ATTRIBUTE
Attr
nodes. This is meaningful only when creating an
iterator or tree-walker with an attribute node as its
root
; in this case, it means that the attribute node
will appear in the first position of the iteration or traversal.
Since attributes are never children of other nodes, they do not
appear when traversing over the document tree.public static final int SHOW_TEXT
Text
nodes.public static final int SHOW_CDATA_SECTION
CDATASection
nodes.public static final int SHOW_ENTITY_REFERENCE
EntityReference
nodes.public static final int SHOW_ENTITY
Entity
nodes. This is meaningful only when creating
an iterator or tree-walker with an Entity
node as its
root
; in this case, it means that the Entity
node will appear in the first position of the traversal. Since
entities are not part of the document tree, they do not appear when
traversing over the document tree.public static final int SHOW_PROCESSING_INSTRUCTION
ProcessingInstruction
nodes.public static final int SHOW_COMMENT
Comment
nodes.public static final int SHOW_DOCUMENT
Document
nodes.public static final int SHOW_DOCUMENT_TYPE
DocumentType
nodes.public static final int SHOW_DOCUMENT_FRAGMENT
DocumentFragment
nodes.public static final int SHOW_NOTATION
Notation
nodes. This is meaningful only when creating
an iterator or tree-walker with a Notation
node as its
root
; in this case, it means that the
Notation
node will appear in the first position of the
traversal. Since notations are not part of the document tree, they do
not appear when traversing over the document tree.public static final int SHOW_NAMESPACE
NodeFilter
.public static final int SHOW_BYFUNCTION
NodeFilter
.Method Detail |
public short acceptNode(int nodeHandle, int whatToShow)
DTMIterator
. Normally, this function
will be called by the implementation of DTMIterator
;
it is not normally called directly from
user code.nodeHandle
- int Handle of the node.whatToShow
- one of SHOW_XXX values.public short acceptNode(int nodeHandle, int whatToShow, int expandedName)
DTMIterator
. Normally, this function
will be called by the implementation of DTMIterator
;
it is not normally called directly from
user code.nodeHandle
- int Handle of the node.whatToShow
- one of SHOW_XXX values.expandedName
- a value defining the exanded name as defined in
the DTM interface. Wild cards will be defined
by 0xFFFF in the high word and/or in the low word.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |