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(java.lang.Object sunResolver) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
bind(java.lang.Object id,
java.lang.Object obj)
Bind the object obj to the identifier id.
|
void |
endDocument()
Called when unmarshalling ends.
|
java.lang.Object |
getResolver() |
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.
|
java.util.concurrent.Callable<?> |
resolve(java.lang.Object id,
java.lang.Class targetType)
Resolve the object of Class type, uniquely identified by id.
|
void |
startDocument(javax.xml.bind.ValidationEventHandler eventHandler)
Called when unmarshalling begins.
|
startDocument
public void bind(java.lang.Object id, java.lang.Object obj) throws org.xml.sax.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.org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
IDResolver
Called when unmarshalling ends.
endDocument
in class IDResolver
org.xml.sax.SAXException
public void startDocument(javax.xml.bind.ValidationEventHandler eventHandler) throws org.xml.sax.SAXException
IDResolver
Called when unmarshalling begins.
startDocument
in class IDResolver
eventHandler
- Any errors encountered during the unmarshal process should be reported to this handler.org.xml.sax.SAXException
public java.util.concurrent.Callable<?> resolve(java.lang.Object id, java.lang.Class targetType) throws org.xml.sax.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.org.xml.sax.SAXException
public java.util.concurrent.Callable<?> resolve(java.util.Map<java.lang.String,java.lang.Object> id, java.lang.Class type) throws org.xml.sax.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.org.xml.sax.SAXException
public void bind(java.util.Map<java.lang.String,java.lang.Object> id, java.lang.Object obj) throws org.xml.sax.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.org.xml.sax.SAXException
public java.lang.Object getResolver()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference