com.sun.xml.bind.unmarshaller
public class DOMScanner extends Object implements LocatorEx, InfosetScanner
This class is just intended to be used by AbstractUnmarshallerImpl. The javax.xml.bind.helpers package is generally a wrong place to put classes like this.
Since: JAXB1.0
| Constructor Summary | |
|---|---|
| DOMScanner() | |
| Method Summary | |
|---|---|
| int | getColumnNumber() |
| ContentHandler | getContentHandler() |
| Object | getCurrentElement() |
| Node | getCurrentLocation()
The same as getCurrentElement but
better typed. |
| int | getLineNumber() |
| ValidationEventLocator | getLocation() |
| LocatorEx | getLocator() |
| String | getPublicId() |
| String | getSystemId() |
| void | parse(Element e, ContentHandler handler)
Parses a subtree starting from the element e and
reports SAX2 events to the specified handler.
|
| void | parseWithContext(Element e, ContentHandler handler)
Similar to the parse method but it visits the ancestor nodes
and properly emulate the all in-scope namespace declarations.
|
| void | scan(Object node) |
| void | scan(Document doc) |
| void | scan(Element e) |
| void | setContentHandler(ContentHandler handler) |
| void | setLocator(Locator loc)
Configures the locator object that the SAX ContentHandler will see. |
| void | visit(Element e)
Visits an element and its subtree. |
Deprecated: in JAXB 2.0 Use scan
Parses a subtree starting from the element e and reports SAX2 events to the specified handler.Deprecated: in JAXB 2.0 Use scan
Similar to the parse method but it visits the ancestor nodes and properly emulate the all in-scope namespace declarations.