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,
com.sun.xml.bind.validator.Locator locator)
Creates a new instance of ValidatingUnmarshaller.
|
Object |
getResult() |
void |
handleEvent(ValidationEvent event,
boolean canRecover)
Reports an error to the user, and asks if s/he wants
to recover.
|
void |
startElement(String nsUri,
String local,
String qname,
Attributes atts) |
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, com.sun.xml.bind.validator.Locator locator)
public Object getResult() throws JAXBException, IllegalStateException
getResult
in interface UnmarshallerHandler
JAXBException
IllegalStateException
public void handleEvent(ValidationEvent event, boolean canRecover) throws SAXException
SAXUnmarshallerHandler
handleEvent
in interface SAXUnmarshallerHandler
SAXException
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 © 2010–2025 Open Identity Platform Community. All rights reserved.