|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jour.rt.view.config.impl.runtime.ValidationContext
Maintains information that needs to be stored across validations of multiple objects. Specifically, this object is responsible for:
ValidationErrorHandler
.
MSVValidators should use this error handler to report any error.
Field Summary | |
(package private) DefaultJAXBContextImpl |
jaxbContext
|
Constructor Summary | |
(package private) |
ValidationContext(DefaultJAXBContextImpl _context,
javax.xml.bind.ValidationEventHandler _eventHandler,
boolean validateID)
|
Method Summary | |
NamespaceContextImpl |
getNamespaceContext()
|
java.lang.String |
onID(XMLSerializable owner,
java.lang.String value)
|
java.lang.String |
onIDREF(XMLSerializable referer,
java.lang.String value)
|
protected void |
reconcileIDs()
Tests if all IDREFs have corresponding IDs. |
void |
reportEvent(ValidatableObject source,
java.lang.Exception nestedException)
Reports an error to the client. |
void |
reportEvent(ValidatableObject source,
java.lang.String formattedMessage)
Reports an error to the application. |
void |
reportEvent(ValidatableObject source,
javax.xml.bind.ValidationEvent event)
|
void |
validate(ValidatableObject vo)
Validates the sub-tree rooted at vo and reports
any errors/warnings to the error handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
final DefaultJAXBContextImpl jaxbContext
Constructor Detail |
ValidationContext(DefaultJAXBContextImpl _context, javax.xml.bind.ValidationEventHandler _eventHandler, boolean validateID)
validateID
- if true, ID/IDREF validation will be performed.Method Detail |
public void validate(ValidatableObject vo) throws org.xml.sax.SAXException
vo
and reports
any errors/warnings to the error handler.
org.xml.sax.SAXException
public NamespaceContextImpl getNamespaceContext()
public java.lang.String onID(XMLSerializable owner, java.lang.String value) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.lang.String onIDREF(XMLSerializable referer, java.lang.String value) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void reconcileIDs() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void reportEvent(ValidatableObject source, java.lang.String formattedMessage) throws com.sun.xml.bind.serializer.AbortSerializationException
com.sun.xml.bind.serializer.AbortSerializationException
public void reportEvent(ValidatableObject source, java.lang.Exception nestedException) throws com.sun.xml.bind.serializer.AbortSerializationException
com.sun.xml.bind.serializer.AbortSerializationException
public void reportEvent(ValidatableObject source, javax.xml.bind.ValidationEvent event) throws com.sun.xml.bind.serializer.AbortSerializationException
com.sun.xml.bind.serializer.AbortSerializationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |