XmlVisitor decorator that validates the events by using JAXP validation API.
| Modifier and Type | Field and Description |
|---|---|
| private char[] | |
| private final XmlVisitor | |
| private NamespaceContext | |
| private final XmlVisitor. | predictor
|
| private final ValidatorHandler |
| Access | Constructor and Description |
|---|---|
| public | ValidatingUnmarshaller(Schema schema, XmlVisitor next)
Creates a new instance of ValidatingUnmarshaller. |
| buf | back to summary |
|---|---|
| private char[] buf | |
| next | back to summary |
|---|---|
| private final XmlVisitor next | |
| nsContext | back to summary |
|---|---|
| private NamespaceContext nsContext | |
| predictor | back to summary |
|---|---|
| private final XmlVisitor.
| |
| validator | back to summary |
|---|---|
| private final ValidatorHandler validator | |
| ValidatingUnmarshaller | back to summary |
|---|---|
| public ValidatingUnmarshaller(Schema schema, XmlVisitor next) Creates a new instance of ValidatingUnmarshaller. | |
| endDocument | back to summary |
|---|---|
| public void endDocument() throws SAXException Implements org.
| |
| endElement | back to summary |
|---|---|
| public void endElement(TagName tagName) throws SAXException Implements org.
| |
| endPrefixMapping | back to summary |
|---|---|
| public void endPrefixMapping(String prefix) throws SAXException Implements org. Doc from org. Called after
| |
| expectText | back to summary |
|---|---|
| public boolean expectText() Implements org. Doc from org. Deprecated
Returns true if the visitor is expecting a text event as the next event. This is primarily intended to be used for optimization to avoid buffering characters unnecessarily. If this method returns false and the connector sees whitespace it can safely skip it.
If this method returns true, all the whitespaces are considered significant
and thus need to be reported as a
| |
| getContext | back to summary |
|---|---|
| public UnmarshallingContext getContext() Implements org. Doc from org. Returns the
| |
| getPredictor | back to summary |
|---|---|
| public XmlVisitor. Implements org. Doc from org. Gets the predictor that can be used for the caller to avoid
calling
| |
| startDocument | back to summary |
|---|---|
| public void startDocument(LocatorEx locator, NamespaceContext nsContext) throws SAXException Implements org. Doc from org. Notifies a start of the document.
| |
| startElement | back to summary |
|---|---|
| public void startElement(TagName tagName) throws SAXException Implements org. Doc from org. Notifies a start tag of a new element. namespace URIs and local names must be interned.
| |
| startPrefixMapping | back to summary |
|---|---|
| public void startPrefixMapping(String prefix, String nsUri) throws SAXException Implements org. Doc from org. Called before
| |
| text | back to summary |
|---|---|
| public void text(CharSequence pcdata) throws SAXException Implements org. Doc from org. Text events.
The caller should consult
| |