- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.IDResolver
-
- org.eclipse.persistence.oxm.IDResolver
-
- org.eclipse.persistence.jaxb.IDResolver
-
- Direct Known Subclasses:
IDResolverWrapper
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);- Since:
- 2.3.3
- See Also:
JAXBUnmarshaller
-
-
Constructor Summary
Constructors Constructor Description IDResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstartDocument(jakarta.xml.bind.ValidationEventHandler eventHandler)Called when unmarshalling begins.voidstartDocument(ErrorHandler errorHandler)INTERNAL-
Methods inherited from class org.eclipse.persistence.internal.oxm.IDResolver
bind, bind, endDocument, resolve, resolve
-
-
-
-
Method Detail
-
startDocument
public void startDocument(jakarta.xml.bind.ValidationEventHandler eventHandler) throws SAXExceptionCalled when unmarshalling begins.
- Parameters:
eventHandler- Any errors encountered during the unmarshal process should be reported to this handler.- Throws:
SAXException
-
startDocument
public final void startDocument(ErrorHandler errorHandler) throws SAXException
INTERNAL- Overrides:
startDocumentin classIDResolver- Throws:
SAXException
-
-