| Modifier and Type | Class and Description |
|---|---|
| private class | DomLoader.
Used to capture the state. |
| Modifier and Type | Field and Description |
|---|---|
| private final DomHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | childElement(UnmarshallingContext.
Overrides org. Called when this loaderis an active loaderand we see a new child start tag. |
| public void | leaveElement(UnmarshallingContext.
Overrides org. Called when this loaderis an active loaderand we see an end tag. |
| public void | startElement(UnmarshallingContext.
Overrides org. Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader. |
| public void | text(UnmarshallingContext.
Overrides org. Called when this loaderis an active loaderand we see a chunk of text. |
| dom | back to summary |
|---|---|
| private final DomHandler<?, ResultT> dom | |
| DomLoader | back to summary |
|---|---|
| public DomLoader(DomHandler<?, ResultT> dom) | |
| childElement | back to summary |
|---|---|
| public void childElement(UnmarshallingContext. Overrides org. Doc from org. Called when this loaderis an active loaderand we see a new child start tag.
The callee is expected to designate another loaderas a loaderthat processes
this element, then it should also register a The default implementation reports an error saying an element is unexpected.
| |
| leaveElement | back to summary |
|---|---|
| public void leaveElement(UnmarshallingContext. Overrides org. Doc from org. Called when this loaderis an active loaderand we see an end tag.
| |
| startElement | back to summary |
|---|---|
| public void startElement(UnmarshallingContext. Overrides org. Doc from org. Called when the loader is activated, which is when a new start tag is seen and when the parent designated this loader as the child loader.
The callee may change
| |
| text | back to summary |
|---|---|
| public void text(UnmarshallingContext. Overrides org. Doc from org. Called when this loaderis an active loaderand we see a chunk of text. The runtime makes sure that adjacent characters (even those separated by comments, PIs, etc) are reported as one event. IOW, you won't see two text event calls in a row.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| private TransformerHandler | handler
This handler will receive SAX events. |
| private final ResultT |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Object | |
| private void |
| depth | back to summary |
|---|---|
| pack-priv int depth | |
| handler | back to summary |
|---|---|
| private TransformerHandler handler This handler will receive SAX events. | |
| result | back to summary |
|---|---|
| private final ResultT result
| |
| State | back to summary |
|---|---|
| public State(UnmarshallingContext context) throws SAXException | |
| declarePrefixes | back to summary |
|---|---|
| private void declarePrefixes(UnmarshallingContext context, String[] prefixes) throws SAXException | |
| getElement | back to summary |
|---|---|
| public Object getElement() | |
| undeclarePrefixes | back to summary |
|---|---|
| private void undeclarePrefixes(String[] prefixes) throws SAXException | |