|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.oxm.IDResolver
public abstract class IDResolver
IDResolver can be subclassed to allow customization of the ID/IDREF processing of XMLUnmarshaller. A custom IDResolver can be specified on the Unmarshaller as follows:
IDResolver customResolver = new MyIDResolver();
xmlUnmarshaller.setIDResolver(customResolver);
XMLUnmarshaller
Constructor Summary | |
---|---|
IDResolver()
|
Method Summary | |
---|---|
abstract void |
bind(java.util.Map<java.lang.String,java.lang.Object> id,
java.lang.Object obj)
Bind the object obj to the composite key information specified in the id Map. |
abstract void |
bind(java.lang.Object id,
java.lang.Object obj)
Bind the object obj to the identifier id. |
void |
endDocument()
Called when unmarshalling ends. |
abstract java.util.concurrent.Callable<?> |
resolve(java.util.Map<java.lang.String,java.lang.Object> id,
java.lang.Class type)
Resolve the object of Class type, uniquely identified by the composite key information specified in the id Map. |
abstract java.util.concurrent.Callable<?> |
resolve(java.lang.Object id,
java.lang.Class type)
Resolve the object of Class type, uniquely identified by id. |
void |
startDocument(org.xml.sax.ErrorHandler errorHandler)
Called when unmarshalling begins. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IDResolver()
Method Detail |
---|
public abstract java.util.concurrent.Callable<?> resolve(java.lang.Object id, java.lang.Class type) throws org.xml.sax.SAXException
Resolve the object of Class type, uniquely identified by id.
id
- The Object that uniquely identifies the object to be found.type
- The Class of the object to be found.
org.xml.sax.SAXException
public abstract java.util.concurrent.Callable<?> resolve(java.util.Map<java.lang.String,java.lang.Object> id, java.lang.Class type) throws org.xml.sax.SAXException
Resolve the object of Class type, uniquely identified by the composite key information specified in the id Map.
id
- A Map of id values, keyed on the attribute name.type
- The Class of the object to be found.
org.xml.sax.SAXException
public abstract void bind(java.lang.Object id, java.lang.Object obj) throws org.xml.sax.SAXException
Bind the object obj to the identifier id.
id
- The id Object that uniquely identifies the object to be bound.obj
- The object that will be bound to this id.
org.xml.sax.SAXException
public abstract void bind(java.util.Map<java.lang.String,java.lang.Object> id, java.lang.Object obj) throws org.xml.sax.SAXException
Bind the object obj to the composite key information specified in the id Map.
id
- A Map of id values, keyed on attribute name.obj
- The object that will be bound to this id.
org.xml.sax.SAXException
public void startDocument(org.xml.sax.ErrorHandler errorHandler) throws org.xml.sax.SAXException
Called when unmarshalling begins.
errorHandler
- Any errors encountered during the unmarshal process should be reported to this handler.
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
Called when unmarshalling ends.
org.xml.sax.SAXException
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |