public final class EventSequenceUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 sequencepublic static int getMaxElementContent(EventSequence sequence)
This method assumes that the sequence is well-formed.
sequence - The sequence.Copyright © 2007-2022. All Rights Reserved.