public class ExternalValidatingIdResolver
extends com.sun.xml.bind.IDResolver
IDResolver
validating that no IDs are duplicated or missing (IDRef is pointing
to an undefined ID). jaxb-impl
(com.sun.xml.bind) is on your classpath!InternalValidatingIdResolver
,
XmlBeanMapper.getOrCreateUnmarshaller()
Modifier and Type | Field and Description |
---|---|
private IdResolverContext |
context
The
IdResolverContext . |
Constructor and Description |
---|
ExternalValidatingIdResolver()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(String id,
Object value) |
void |
endDocument() |
Callable<?> |
resolve(String id,
Class targetType) |
void |
startDocument(ValidationEventHandler eventHandler) |
private IdResolverContext context
IdResolverContext
.public ExternalValidatingIdResolver()
public void startDocument(ValidationEventHandler eventHandler) throws SAXException
startDocument
in class com.sun.xml.bind.IDResolver
SAXException
public void endDocument() throws SAXException
endDocument
in class com.sun.xml.bind.IDResolver
SAXException
public void bind(String id, Object value) throws SAXException
bind
in class com.sun.xml.bind.IDResolver
SAXException
public Callable<?> resolve(String id, Class targetType) throws SAXException
resolve
in class com.sun.xml.bind.IDResolver
SAXException
Copyright © 2001–2016 mmm-Team. All rights reserved.