public class SegmentContainerChoice extends SegmentContainer
SegmentContainerChoice
is a SegmentContainer
that matches
if any of the contained
Segment
s match. SegmentContainerSequence
instances that represent alternative patterns in the stream.Modifier and Type | Field and Description |
---|---|
static String |
XML_TAG
The XML tag name for this object.
|
Constructor and Description |
---|
SegmentContainerChoice()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected long |
aggregateMaximumLength(long aggregated,
long next)
|
protected long |
aggregateMinimumLength(long aggregated,
long next)
|
protected String |
getTagName()
This method gets the XML tag-name of this
Segment . |
doValidate, getMaximumLength, getMinimumLength, getSegment, getSegmentCount, validateNonRecursive
public static final String XML_TAG
protected long aggregateMaximumLength(long aggregated, long next)
aggregated
maximum length
with the given next
value. The default implementation is a simple summation. Long.MAX_VALUE
is already handled by
SegmentContainer.getMaximumLength()
. In that case this method is NOT invoked
anymore.aggregateMaximumLength
in class SegmentContainer
aggregated
- is the current aggregated
result, initially
SegmentContainer.getMaximumLength()
of the first child
.next
- is the next length to aggregate.protected long aggregateMinimumLength(long aggregated, long next)
aggregated
minimum length
with the given next
value. The default implementation is a simple summation.aggregateMinimumLength
in class SegmentContainer
aggregated
- is the current aggregated
result, initially
SegmentContainer.getMinimumLength()
of the first child
.next
- is the next length to aggregate.protected String getTagName()
Segment
.getTagName
in class Segment
Copyright © 2001–2014 mmm-Team. All rights reserved.