Top Description Constructors Methods
com.ctc.wstx.dtd

public abstract Class StructValidator

extends Object
Class Inheritance
Known Direct Subclasses
com.ctc.wstx.dtd.TokenContentSpec.Validator, com.ctc.wstx.dtd.ChoiceContentSpec.Validator, com.ctc.wstx.dtd.DFAValidator, com.ctc.wstx.dtd.EmptyValidator, com.ctc.wstx.dtd.SeqContentSpec.Validator
Imports
com.ctc.wstx.util.PrefixedName

Base class for validator Objects used to validate tree structure of an XML-document against DTD.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract String

Returns:

Null if the content model for the element is valid; error message if not.
fullyValid
()

Method called when the end element of the scope this validator validates is encountered.

public abstract StructValidator
newInstance()

Method that should be called to get the actual usable validator instance, from the 'template' validator.

public abstract String

Returns:

Null if element is valid in its current position; error message if not.
tryToValidate
(PrefixedName elemName)

Method called when a new (start) element is encountered within the scope of parent element this validator monitors.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StructValidatorback to summary
public StructValidator()

Method Detail

fullyValidback to summary
public abstract String fullyValid()

Method called when the end element of the scope this validator validates is encountered. It should make sure that the content model is valid, and if not, to construct an error message.

Returns:String

Null if the content model for the element is valid; error message if not.

newInstanceback to summary
public abstract StructValidator newInstance()

Method that should be called to get the actual usable validator instance, from the 'template' validator.

tryToValidateback to summary
public abstract String tryToValidate(PrefixedName elemName)

Method called when a new (start) element is encountered within the scope of parent element this validator monitors.

Returns:String

Null if element is valid in its current position; error message if not.