Class IDResolverWrapper


public class IDResolverWrapper extends IDResolver
INTERNAL:

This class provides an implementation of IDResolver that wraps an IDResolver from the Sun JAXB Implementation.

  • Constructor Details

    • IDResolverWrapper

      public IDResolverWrapper(Object sunResolver)
  • Method Details

    • bind

      public void bind(Object id, Object obj) throws SAXException
      Description copied from class: IDResolver

      Bind the object obj to the identifier id.

      Specified by:
      bind in class IDResolver
      Parameters:
      id - The id Object that uniquely identifies the object to be bound.
      obj - The object that will be bound to this id.
      Throws:
      SAXException
    • endDocument

      public void endDocument() throws SAXException
      Description copied from class: IDResolver

      Called when unmarshalling ends.

      Overrides:
      endDocument in class IDResolver
      Throws:
      SAXException
    • startDocument

      public void startDocument(ValidationEventHandler eventHandler) throws SAXException
      Description copied from class: IDResolver

      Called when unmarshalling begins.

      Overrides:
      startDocument in class IDResolver
      Parameters:
      eventHandler - Any errors encountered during the unmarshal process should be reported to this handler.
      Throws:
      SAXException
    • resolve

      public Callable<?> resolve(Object id, Class<?> targetType) throws SAXException
      Description copied from class: IDResolver

      Resolve the object of Class type, uniquely identified by id.

      Specified by:
      resolve in class IDResolver
      Parameters:
      id - The Object that uniquely identifies the object to be found.
      targetType - The Class of the object to be found.
      Returns:
      a Callable that will return the resolved object.
      Throws:
      SAXException
    • resolve

      public Callable<?> resolve(Map<String,Object> id, Class<?> type) throws SAXException
      Description copied from class: IDResolver

      Resolve the object of Class type, uniquely identified by the composite key information specified in the id Map.

      Specified by:
      resolve in class IDResolver
      Parameters:
      id - A Map of id values, keyed on the attribute name.
      type - The Class of the object to be found.
      Returns:
      a Callable that will return the resolved object.
      Throws:
      SAXException
    • bind

      public void bind(Map<String,Object> id, Object obj) throws SAXException
      Description copied from class: IDResolver

      Bind the object obj to the composite key information specified in the id Map.

      Specified by:
      bind in class IDResolver
      Parameters:
      id - A Map of id values, keyed on attribute name.
      obj - The object that will be bound to this id.
      Throws:
      SAXException
    • getResolver

      public Object getResolver()