net.sf.mmm.util.xml.base.jaxb
Class InternalValidatingIdResolver

java.lang.Object
  extended by IDResolver
      extended by net.sf.mmm.util.xml.base.jaxb.InternalValidatingIdResolver

public class InternalValidatingIdResolver
extends IDResolver

This is an implementation of IDResolver validating that no IDs are duplicated or missing (IDRef is pointing to an undefined ID).
ATTENTION:
This class only works for the default implementation of JAXB included in the JDK. You have to ensure that jaxb-impl (com.sun.xml.bind) is NOT on your classpath!

Since:
2.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
XmlBeanMapper.getOrCreateUnmarshaller()

Field Summary
private  IdResolverContext context
          The IdResolverContext.
 
Constructor Summary
InternalValidatingIdResolver()
          The constructor.
 
Method Summary
 void bind(String id, Object value)
          
 void endDocument()
          
 Callable<?> resolve(String id, Class targetType)
          
 void startDocument(javax.xml.bind.ValidationEventHandler eventHandler)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private IdResolverContext context
The IdResolverContext.

Constructor Detail

InternalValidatingIdResolver

public InternalValidatingIdResolver()
The constructor.

Method Detail

startDocument

public void startDocument(javax.xml.bind.ValidationEventHandler eventHandler)
                   throws SAXException

Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException

Throws:
SAXException

bind

public void bind(String id,
                 Object value)
          throws SAXException

Throws:
SAXException

resolve

public Callable<?> resolve(String id,
                           Class targetType)
                    throws SAXException

Throws:
SAXException


Copyright © 2001-2010 mmm-Team. All Rights Reserved.