|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.topologi.diffx.sequence.EventSequenceUtils
public final class EventSequenceUtils
A utility class for event sequences.
Method Summary | |
---|---|
static int |
getMaxDepth(EventSequence sequence)
Returns the maximum depth of the sequence. |
static int |
getMaxElementContent(EventSequence sequence)
Returns the maximum number of token inside an element tag. |
static boolean |
isWellFormed(EventSequence sequence)
Indicates whether the sequence corresponds to well-formed XML. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isWellFormed(EventSequence sequence)
sequence
- The sequence.
true
if the sequence is "well-formed";
false
otherwise.public static int getMaxDepth(EventSequence sequence)
This method assumes that the sequence is well-formed, and counts the maximum number of open element events.
sequence
- The sequence
public static int getMaxElementContent(EventSequence sequence)
This method assumes that the sequence is well-formed.
sequence
- The sequence.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |