public class FlowEncodingVersion
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENCODING_VERSION_ATTRIBUTE |
Constructor and Description |
---|
FlowEncodingVersion(int majorVersion,
int minorVersion) |
Modifier and Type | Method and Description |
---|---|
int |
getMajorVersion() |
int |
getMinorVersion() |
static FlowEncodingVersion |
parse(org.w3c.dom.Element xmlElement)
Parses the 'encoding-version' attribute of the given XML Element as FlowEncodingVersion.
|
static FlowEncodingVersion |
parse(java.lang.String version)
Parses the given String as FlowEncodingVersion.
|
public static final java.lang.String ENCODING_VERSION_ATTRIBUTE
public FlowEncodingVersion(int majorVersion, int minorVersion)
public static FlowEncodingVersion parse(org.w3c.dom.Element xmlElement)
xmlElement
- the XML Element that contains an 'encoding-version' attributenull
if the input is null or the input
does not have an 'encoding-version' attributejava.lang.IllegalArgumentException
- if the value is not in the format <major version>.<minor version>, if either major version or minor
version is not an integer, or if either the major or minor version is less than 0.public static FlowEncodingVersion parse(java.lang.String version)
version
- the String representation of the encoding versionnull
if the input is nulljava.lang.IllegalArgumentException
- if the value is not in the format <major version>.<minor version>, if either major version or minor
version is not an integer, or if either the major or minor version is less than 0.public int getMajorVersion()
public int getMinorVersion()