This class also looks for outer most <jaxb:bindings>
customizations.
| Modifier and Type | Field and Description |
|---|---|
| private Locator | |
| private final LocatorTable | locatorTable
Location information will be stored into this object. |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | DOMBuilder(Document dom, LocatorTable ltable, Set<Element>
This set will receive newly found outermost
jaxb:bindings customizations. outerMostBindings)Grows a DOM tree under the given document, and stores location information to the given table. |
| Modifier and Type | Method and Description |
|---|---|
| public void | endElement(String namespaceURI, String localName, String qName)
Overrides org. Implements org. Receive notification of the end of an element. |
| public void | setDocumentLocator(Locator locator)
Overrides org. Implements org. Receive an object for locating the origin of SAX document events. |
| public void | startElement(String namespaceURI, String localName, String qName, Attributes atts)
Overrides org. Implements org. Receive notification of the beginning of an element. |
| locator | back to summary |
|---|---|
| private Locator locator | |
| locatorTable | back to summary |
|---|---|
| private final LocatorTable locatorTable Location information will be stored into this object. | |
| outerMostBindings | back to summary |
|---|---|
| private final Set<Element> outerMostBindings | |
| DOMBuilder | back to summary |
|---|---|
| public DOMBuilder(Document dom, LocatorTable ltable, Set<Element> outerMostBindings) Grows a DOM tree under the given document, and stores location information to the given table. | |
| endElement | back to summary |
|---|---|
| public void endElement(String namespaceURI, String localName, String qName) Overrides org. Implements org. Doc from org. Receive notification of the end of an element. The SAX parser will invoke this method at the end of every
element in the XML document; there will be a corresponding
For information on the names, see startElement.
| |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator locator) Overrides org. Implements org. Doc from org. Receive an object for locating the origin of SAX document events. SAX parsers are strongly encouraged (though not absolutely required) to supply a locator: if it does so, it must supply the locator to the application by invoking this method before invoking any of the other methods in the ContentHandler interface. The locator allows the application to determine the end position of any document-related event, even if the parser is not reporting an error. Typically, the application will use this information for reporting its own errors (such as character content that does not match an application's business rules). The information returned by the locator is probably not sufficient for use with a search engine. Note that the locator will return correct information only
during the invocation SAX event callbacks after
| |
| startElement | back to summary |
|---|---|
| public void startElement(String namespaceURI, String localName, String qName, Attributes atts) Overrides org. Implements org. Doc from org. Receive notification of the beginning of an element. The Parser will invoke this method at the beginning of every
element in the XML document; there will be a corresponding
This event allows up to three name components for each element:
Any or all of these may be provided, depending on the values of the http://xml.org/sax/features/namespaces and the http://xml.org/sax/features/namespace-prefixes properties:
Note that the attribute list provided will contain only
attributes with explicit values (specified or defaulted):
#IMPLIED attributes will be omitted. The attribute list
will contain attributes used for Namespace declarations
(xmlns* attributes) only if the
Like
| |