public class ValidatingUnmarshaller extends org.iso_relax.verifier.impl.ForkContentHandler implements SAXUnmarshallerHandler
This component internally uses a VerifierFilter to validate SAX events that goes through this component. Discovered error information is just passed down to the next component.
This will enable the implementation to validate all sources of SAX events in the RI - XMLReader, DOMScanner SAX events will go the VerifierFilter and then to the SAXUnmarshaller...
| Modifier and Type | Method and Description |
|---|---|
static ValidatingUnmarshaller |
create(com.sun.msv.grammar.Grammar grammar,
SAXUnmarshallerHandler _core,
Locator locator)
Deprecated.
Creates a new instance of ValidatingUnmarshaller.
|
Object |
getResult()
Deprecated.
|
boolean |
handleEvent(ValidationEvent event)
Deprecated.
|
void |
startElement(String nsUri,
String local,
String qname,
Attributes atts)
Deprecated.
|
characters, create, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingpublic static ValidatingUnmarshaller create(com.sun.msv.grammar.Grammar grammar, SAXUnmarshallerHandler _core, Locator locator)
public Object getResult() throws JAXBException, IllegalStateException
getResult in interface UnmarshallerHandlerJAXBExceptionIllegalStateExceptionpublic boolean handleEvent(ValidationEvent event)
handleEvent in interface ValidationEventHandlerpublic void startElement(String nsUri, String local, String qname, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.iso_relax.verifier.impl.ForkContentHandlerSAXExceptionCopyright © 2015 Oracle Corporation. All Rights Reserved.