IDResolver.
| Modifier and Type | Field and Description |
|---|---|
| private HashMap | idmap
Records ID->Object map. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(String id, Object obj)
Implements abstract org. Binds the given object to the specified ID. While a document is being unmarshalled, every time an ID value is found, this method is invoked to remember the association between ID and objects. |
| public Callable | resolve(final String id, Class<T> targetType)
Implements abstract org. Obtains the object to be pointed by the IDREF value. |
| public void | startDocument(ValidationEventHandler eventHandler)
Overrides org. Called when the unmarshalling starts. |
| idmap | back to summary |
|---|---|
| private HashMap<String, Object> idmap Records ID->Object map. | |
| DefaultIDResolver | back to summary |
|---|---|
| pack-priv DefaultIDResolver() | |
| bind | back to summary |
|---|---|
| public void bind(String id, Object obj) Implements abstract org. Doc from org. Binds the given object to the specified ID. While a document is being unmarshalled, every time an ID value is found, this method is invoked to remember the association between ID and objects. This association is supposed to be used later to resolve IDREFs. This method is invoked right away as soon as a new ID value is found.
| |
| resolve | back to summary |
|---|---|
| public Callable Implements abstract org. Doc from org. Obtains the object to be pointed by the IDREF value. While a document is being unmarshalled, every time an IDREF value is found, this method is invoked immediately to obtain the object that the IDREF is pointing to.
This method returns a
When a forward-reference happens, the
A
| |
| startDocument | back to summary |
|---|---|
| public void startDocument(ValidationEventHandler eventHandler) throws SAXException Overrides org. Doc from org. Called when the unmarshalling starts.
Since one
| |