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, startPrefixMapping
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
public static ValidatingUnmarshaller create(com.sun.msv.grammar.Grammar grammar, SAXUnmarshallerHandler _core, Locator locator)
public Object getResult() throws JAXBException, IllegalStateException
getResult
in interface UnmarshallerHandler
JAXBException
IllegalStateException
public boolean handleEvent(ValidationEvent event)
handleEvent
in interface ValidationEventHandler
public void startElement(String nsUri, String local, String qname, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.iso_relax.verifier.impl.ForkContentHandler
SAXException
Copyright © 2022 Oracle Corporation. All rights reserved.