public class SegmentRange extends Segment
SegmentRange
is a Segment
that matches a value of a fixed
length
like SegmentConstant
but the value
can be in a specific range from getBytesMinimum()
to
getBytesMaximum()
.Modifier and Type | Field and Description |
---|---|
private byte[] |
bytesMaximum |
private byte[] |
bytesMinimum |
private String |
hexMax |
private String |
hexMin |
private static String |
XML_ATTRIBUTE_HEX_MAX
The XML attribute for
hexMax . |
private static String |
XML_ATTRIBUTE_HEX_MIN
The XML attribute for
hexMin . |
static String |
XML_TAG
The XML tag name for this object.
|
Constructor and Description |
---|
SegmentRange()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytesMaximum() |
byte[] |
getBytesMinimum() |
long |
getMinimumLength()
This method gets the minimum length of this
Segment . |
protected String |
getTagName()
This method gets the XML tag-name of this
Segment . |
protected void |
validateNonRecursive(StringBuilder source)
This method validates this segment to ensure the correctness of the configured format.
|
detect, doValidate, getMaximumLength, getParent, getSourceIdentifier, setParent, validate
public static final String XML_TAG
private static final String XML_ATTRIBUTE_HEX_MIN
hexMin
.private static final String XML_ATTRIBUTE_HEX_MAX
hexMax
.private String hexMin
getBytesMinimum()
private String hexMax
getBytesMaximum()
private byte[] bytesMinimum
getBytesMinimum()
private byte[] bytesMaximum
getBytesMaximum()
protected String getTagName()
Segment
.getTagName
in class Segment
public byte[] getBytesMinimum()
public byte[] getBytesMaximum()
public long getMinimumLength()
Segment
.getMinimumLength
in class Segment
protected void validateNonRecursive(StringBuilder source)
sub-segments
.validateNonRecursive
in class Segment
source
- describes the source of the validation.Copyright © 2001–2014 mmm-Team. All rights reserved.