Package | Description |
---|---|
org.codehaus.staxmate.in |
Package contains functionality for input-side processing.
|
Modifier and Type | Class and Description |
---|---|
class |
SMFlatteningCursor
Default implementation of generic flat (non-scoped) cursor; cursor
that traverse all descendants (children and grandchildren) of a start
element.
|
class |
SMHierarchicCursor
Default implementation of generic nested (scoped) cursor; cursor that only
traverses direct children of a single start element.
|
Modifier and Type | Method and Description |
---|---|
SMInputCursor |
SMInputCursor.advance()
Method that does what
getNext() does, but instead of
returning resulting event type, returns this cursor. |
SMInputCursor |
SMInputCursor.childCursor()
Method that will create a new nested cursor for iterating
over all (immediate) child nodes of the start element this cursor
currently points to.
|
SMInputCursor |
SMInputCursor.childCursor(SMFilter f)
Method that will create a new nested cursor for iterating
over all (immediate) child nodes of the start element this cursor
currently points to that are passed by the specified filter.
|
SMInputCursor |
SMInputCursor.childElementCursor()
Convenience method; equivalent to
childCursor(SMFilterFactory.getElementOnlyFilter()); |
SMInputCursor |
SMInputCursor.childElementCursor(QName elemName)
Convenience method; equivalent to
childCursor(SMFilterFactory.getElementOnlyFilter(elemName));
Will only return START_ELEMENT and END_ELEMENT events, whose element
name matches given qname. |
SMInputCursor |
SMInputCursor.childElementCursor(String elemLocalName)
Convenience method; equivalent to
childCursor(SMFilterFactory.getElementOnlyFilter(elemName));
Will only return START_ELEMENT and END_ELEMENT events, whose element's
local name matches given local name, and that does not belong to
a namespace. |
SMInputCursor |
SMInputCursor.childMixedCursor()
Convenience method; equivalent to
childCursor(SMFilterFactory.getMixedFilter()); |
protected abstract SMInputCursor |
SMInputCursor.constructChildCursor(SMFilter f)
Abstract method that concrete sub-classes implement, and is used
for all instantiation of child cursors by this cursor instance.
|
SMInputCursor |
SMHierarchicCursor.constructChildCursor(SMFilter f) |
SMInputCursor |
SMFlatteningCursor.constructChildCursor(SMFilter f) |
protected abstract SMInputCursor |
SMInputCursor.constructDescendantCursor(SMFilter f)
Abstract method that concrete sub-classes implement, and is used
for all instantiation of descendant cursors by this cursor instance.
|
SMInputCursor |
SMHierarchicCursor.constructDescendantCursor(SMFilter f) |
SMInputCursor |
SMFlatteningCursor.constructDescendantCursor(SMFilter f) |
SMInputCursor |
SMInputCursor.descendantCursor()
Method that will create a new nested cursor for iterating
over all the descendant (children and grandchildren) nodes of
the start element this cursor currently points to.
|
SMInputCursor |
SMInputCursor.descendantCursor(SMFilter f)
Method that will create a new nested cursor for iterating
over all the descendant (children and grandchildren) nodes of
the start element this cursor currently points to
that are accepted by the specified filter.
|
SMInputCursor |
SMInputCursor.descendantElementCursor()
Convenience method; equivalent to
descendantCursor(SMFilterFactory.getElementOnlyFilter()); |
SMInputCursor |
SMInputCursor.descendantElementCursor(QName elemName)
Convenience method; equivalent to
descendantCursor(SMFilterFactory.getElementOnlyFilter(elemName));
Will only return START_ELEMENT and END_ELEMENT events, whose element
name matches given qname. |
SMInputCursor |
SMInputCursor.descendantElementCursor(String elemLocalName)
Convenience method; equivalent to
descendantCursor(SMFilterFactory.getElementOnlyFilter(elemLocalName)); . |
SMInputCursor |
SMInputCursor.descendantMixedCursor()
Convenience method; equivalent to
descendantCursor(SMFilterFactory.getMixedFilter()); |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
SMFilter.accept(SMEvent evt,
SMInputCursor caller)
Methods iterators call to check whether specified event should
be return, or filtered out.
|
boolean |
SimpleFilter.accept(SMEvent evt,
SMInputCursor caller) |
boolean |
ElementFilter.accept(SMEvent evt,
SMInputCursor caller) |
SMElementInfo |
ElementInfoFactory.constructElementInfo(SMInputCursor it,
SMElementInfo parent,
SMElementInfo prevSibling) |
Constructor and Description |
---|
SMFlatteningCursor(SMInputContext ctxt,
SMInputCursor parent,
SMFilter f) |
SMHierarchicCursor(SMInputContext ctxt,
SMInputCursor parent,
SMFilter f) |
SMInputCursor(SMInputContext ctxt,
SMInputCursor parent,
SMFilter filter) |
Copyright © 2013 FasterXML. All Rights Reserved.