|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.schema.utils.TextValidationHandler
public class TextValidationHandler
PUBLIC: Validation handler that writes error reports on each violation out to the given PrintStream. The default PrintStream is System.err.
| Constructor Summary | |
|---|---|
TextValidationHandler()
PUBLIC: Creates a validation handler that writes to System.err. |
|
TextValidationHandler(java.io.PrintStream err)
PUBLIC: Creates a validation handler that writes to the given PrintStream instance. |
|
| Method Summary | |
|---|---|
void |
endValidation()
PUBLIC: Called after the validation of an entire topic map. |
StringifierIF |
getStringifier()
PUBLIC: Gets the stringifier implementation used to write out topics related to errors. |
void |
setStringifier(StringifierIF stringifier)
PUBLIC: Sets the stringifier implementation used to write out topics related to errors. |
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 TextValidationHandler()
public TextValidationHandler(java.io.PrintStream err)
| Method Detail |
|---|
public StringifierIF getStringifier()
public void setStringifier(StringifierIF stringifier)
public void violation(java.lang.String message,
TMObjectIF container,
java.lang.Object offender,
ConstraintIF constraint)
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.public void startValidation()
ValidationHandlerIF
startValidation in interface ValidationHandlerIFpublic void endValidation()
ValidationHandlerIF
endValidation in interface ValidationHandlerIF
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||