Package com.topologi.diffx.sequence
Class EventSequenceUtils
java.lang.Object
com.topologi.diffx.sequence.EventSequenceUtils
A utility class for event sequences.
- Since:
- 0.6
- Version:
- 3 April 2005
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetMaxDepth(EventSequence sequence) Returns the maximum depth of the sequence.static intgetMaxElementContent(EventSequence sequence) Returns the maximum number of token inside an element tag.static booleanisWellFormed(EventSequence sequence) Indicates whether the sequence corresponds to well-formed XML.
-
Constructor Details
-
EventSequenceUtils
private EventSequenceUtils()Prevent creation of instances.
-
-
Method Details
-
isWellFormed
Indicates whether the sequence corresponds to well-formed XML.- Parameters:
sequence- The sequence.- Returns:
trueif the sequence is "well-formed";falseotherwise.
-
getMaxDepth
Returns the maximum depth of the sequence.This method assumes that the sequence is well-formed, and counts the maximum number of open element events.
- Parameters:
sequence- The sequence- Returns:
- The maximum depth.
-
getMaxElementContent
Returns the maximum number of token inside an element tag.This method assumes that the sequence is well-formed.
- Parameters:
sequence- The sequence.- Returns:
- The maximum number of tokens.
-