|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.buffalo.nsf.xmlcqa.data.dtd.ValidationAutomaton
Automaton checking the conformance of a
token stream
with a given DTD
. The whole functionality of this class is
is implemented with static methods. The main method is
validate(TokenStream, DTD)
which returns the number of detected
errors (times the sequences of labels of children of a given node do not
conform to the regular expression).
Constructor Summary | |
---|---|
ValidationAutomaton()
|
Method Summary | |
---|---|
static int |
validate(TokenStream ts,
DTD d)
Calculates the number of errors in ts w.r.t. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidationAutomaton()
Method Detail |
public static int validate(TokenStream ts, DTD d)
ts
w.r.t. d
.
Result equal to 0
indicates stream conforming to the DTD.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |