public abstract class IDResolver extends IDResolver
IDResolver can be subclassed to allow customization of the ID/IDREF processing of JAXBUnmarshaller. A custom IDResolver can be specified on the Unmarshaller as follows:
IDResolver customResolver = new MyIDResolver();
jaxbUnmarshaller.setProperty(JAXBContext.ID_RESOLVER, customResolver);
JAXBUnmarshaller| Constructor and Description |
|---|
IDResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
startDocument(ErrorHandler errorHandler)
INTERNAL
|
void |
startDocument(jakarta.xml.bind.ValidationEventHandler eventHandler)
Called when unmarshalling begins.
|
public void startDocument(jakarta.xml.bind.ValidationEventHandler eventHandler)
throws SAXException
Called when unmarshalling begins.
eventHandler - Any errors encountered during the unmarshal process should be reported to this handler.SAXExceptionpublic final void startDocument(ErrorHandler errorHandler) throws SAXException
startDocument in class org.eclipse.persistence.internal.oxm.IDResolvererrorHandler - Any errors encountered during the unmarshal process should be reported to this handler.SAXExceptionCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.