public class IDResolverWrapper extends IDResolver
This class provides an implementation of IDResolver that wraps an IDResolver from the Sun JAXB Implementation.
| Constructor and Description |
|---|
IDResolverWrapper(Object sunResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Map<String,Object> id,
Object obj)
Bind the object obj to the composite key information specified in the id Map.
|
void |
bind(Object id,
Object obj)
Bind the object obj to the identifier id.
|
void |
endDocument()
Called when unmarshalling ends.
|
Object |
getResolver() |
Callable<?> |
resolve(Map<String,Object> id,
Class type)
Resolve the object of Class type, uniquely identified by the composite key information specified in the id Map.
|
Callable<?> |
resolve(Object id,
Class targetType)
Resolve the object of Class type, uniquely identified by id.
|
void |
startDocument(ValidationEventHandler eventHandler)
Called when unmarshalling begins.
|
startDocumentpublic IDResolverWrapper(Object sunResolver)
public void bind(Object id, Object obj) throws SAXException
IDResolverBind the object obj to the identifier id.
bind in class IDResolverid - The id Object that uniquely identifies the object to be bound.obj - The object that will be bound to this id.SAXExceptionpublic void endDocument()
throws SAXException
IDResolverCalled when unmarshalling ends.
endDocument in class IDResolverSAXExceptionpublic void startDocument(ValidationEventHandler eventHandler) throws SAXException
IDResolverCalled when unmarshalling begins.
startDocument in class IDResolvereventHandler - Any errors encountered during the unmarshal process should be reported to this handler.SAXExceptionpublic Callable<?> resolve(Object id, Class targetType) throws SAXException
IDResolverResolve the object of Class type, uniquely identified by id.
resolve in class IDResolverid - The Object that uniquely identifies the object to be found.targetType - The Class of the object to be found.SAXExceptionpublic Callable<?> resolve(Map<String,Object> id, Class type) throws SAXException
IDResolverResolve the object of Class type, uniquely identified by the composite key information specified in the id Map.
resolve in class IDResolverid - A Map of id values, keyed on the attribute name.type - The Class of the object to be found.SAXExceptionpublic void bind(Map<String,Object> id, Object obj) throws SAXException
IDResolverBind the object obj to the composite key information specified in the id Map.
bind in class IDResolverid - A Map of id values, keyed on attribute name.obj - The object that will be bound to this id.SAXExceptionpublic Object getResolver()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference