|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.schema.utils.HTMLValidationHandler
public class HTMLValidationHandler
INTERNAL: Validation handler that writes error reports (using some HTML markup) on each violation out to the given Writer.
| Constructor Summary | |
|---|---|
HTMLValidationHandler(java.io.Writer out)
|
|
| Method Summary | |
|---|---|
void |
endValidation()
PUBLIC: Called after the validation of an entire topic map. |
int |
getErrors()
|
void |
startValidation()
PUBLIC: Called before the validation of an entire topic map begins. |
void |
violation(java.lang.String message,
TMObjectIF container,
java.lang.Object offender,
ConstraintIF constraint)
PUBLIC: Called when violations of the schema are discovered. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLValidationHandler(java.io.Writer out)
| Method Detail |
|---|
public void startValidation()
ValidationHandlerIF
startValidation in interface ValidationHandlerIF
public void violation(java.lang.String message,
TMObjectIF container,
java.lang.Object offender,
ConstraintIF constraint)
throws SchemaViolationException
ValidationHandlerIF
violation in interface ValidationHandlerIFmessage - A message describing the nature of the violation.container - The container of the offending object.offender - The object that violated the schema.constraint - The constraint that was violated.
SchemaViolationException - Implementations may throw this
exception if they wish to halt validation.public void endValidation()
ValidationHandlerIF
endValidation in interface ValidationHandlerIFpublic int getErrors()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||