| org.relaxng.datatype.DatatypeStreamingValidator
All known Subclasses: org.relaxng.datatype.helpers.StreamingValidatorImpl,
DatatypeStreamingValidator | public interface DatatypeStreamingValidator (Code) | | Datatype streaming validator.
The streaming validator is an optional feature that is useful for
certain Datatypes. It allows the caller to incrementally provide
the literal.
author: James Clark author: Kohsuke KAWAGUCHI |
Method Summary | |
void | addCharacters(char[] buf, int start, int len) Passes an additional fragment of the literal. | void | checkValid() Similar to the isValid method, but this method throws
Exception (with possibly diagnostic information), instead of
returning false. | boolean | isValid() Tells if the accumulated literal is valid with respect to
the underlying Datatype.
True if it is valid. |
addCharacters | void addCharacters(char[] buf, int start, int len)(Code) | | Passes an additional fragment of the literal.
The application can call this method several times, then call
the isValid method (or the checkValid method) to check the validity
of the accumulated characters.
|
checkValid | void checkValid() throws DatatypeException(Code) | | Similar to the isValid method, but this method throws
Exception (with possibly diagnostic information), instead of
returning false.
exception: DatatypeException - If the callee supports the diagnosis and the accumulatedliteral is invalid, then this exception that possiblycontains diagnosis information is thrown. |
isValid | boolean isValid()(Code) | | Tells if the accumulated literal is valid with respect to
the underlying Datatype.
True if it is valid. False if otherwise. |
|
|