net.sf.vex.dom
Class AbstractValidator

java.lang.Object
  |
  +--net.sf.vex.dom.AbstractValidator
All Implemented Interfaces:
Validator
Direct Known Subclasses:
DTDValidator

public abstract class AbstractValidator
extends java.lang.Object
implements Validator

Partial implementation of the Validator interface.


Field Summary
 
Fields inherited from interface net.sf.vex.dom.Validator
PCDATA
 
Constructor Summary
AbstractValidator()
           
 
Method Summary
 boolean isValidSequence(java.lang.String element, java.lang.String[] seq1, java.lang.String[] seq2, java.lang.String[] seq3, boolean partial)
          Returns true if the given sequence is valid for the given element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.vex.dom.Validator
getAttributeDefinitions, getValidItems, isValidSequence
 

Constructor Detail

AbstractValidator

public AbstractValidator()
Method Detail

isValidSequence

public boolean isValidSequence(java.lang.String element,
                               java.lang.String[] seq1,
                               java.lang.String[] seq2,
                               java.lang.String[] seq3,
                               boolean partial)
Description copied from interface: Validator
Returns true if the given sequence is valid for the given element. Accepts three sequences, which will be concatenated before doing the check.

Specified by:
isValidSequence in interface Validator
Parameters:
element - Name of the element being tested.
seq1 - Array of element names and Validator.PCDATA.
seq2 - Array of element names and Validator.PCDATA. May be null or empty.
seq3 - Array of element names and Validator.PCDATA. May be null or empty.
partial - If true, an valid but incomplete sequence is acceptable.
See Also:
Validator.isValidSequence(java.lang.String, java.lang.String[], boolean)