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.
|
startDocument
public IDResolverWrapper(Object sunResolver)
public void bind(Object id, Object obj) throws SAXException
IDResolver
Bind the object obj to the identifier id.
bind
in class IDResolver
id
- The id Object that uniquely identifies the object to be bound.obj
- The object that will be bound to this id.SAXException
public void endDocument() throws SAXException
IDResolver
Called when unmarshalling ends.
endDocument
in class IDResolver
SAXException
public void startDocument(ValidationEventHandler eventHandler) throws SAXException
IDResolver
Called when unmarshalling begins.
startDocument
in class IDResolver
eventHandler
- Any errors encountered during the unmarshal process should be reported to this handler.SAXException
public Callable<?> resolve(Object id, Class targetType) throws SAXException
IDResolver
Resolve the object of Class type, uniquely identified by id.
resolve
in class IDResolver
id
- The Object that uniquely identifies the object to be found.targetType
- The Class of the object to be found.SAXException
public Callable<?> resolve(Map<String,Object> id, Class type) throws SAXException
IDResolver
Resolve the object of Class type, uniquely identified by the composite key information specified in the id Map.
resolve
in class IDResolver
id
- A Map of id values, keyed on the attribute name.type
- The Class of the object to be found.SAXException
public void bind(Map<String,Object> id, Object obj) throws SAXException
IDResolver
Bind the object obj to the composite key information specified in the id Map.
bind
in class IDResolver
id
- A Map of id values, keyed on attribute name.obj
- The object that will be bound to this id.SAXException
public Object getResolver()
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference