public interface IVersionFormat
The IVersionFormat represents the Omni Version Format in compiled form. It is also a parser for versions of that format.
An instance of IVersionFormat is immutable and thus thread safe. The parser does not maintain any state.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MAX_STRING_TRANSLATION
The string that by default will be interpreted as the logical max string when parsing
optional elements of type string and a default that is the empty string (i.e.
|
static String |
DEFAULT_MIN_STRING_TRANSLATION
The string that by default will be interpreted as the logical min string when parsing
optional elements of type string and a default that is the max string (i.e.
|
Modifier and Type | Method and Description |
---|---|
Version |
parse(String version)
Parse the given version string.
|
void |
toString(StringBuffer sb)
Appends the string representation of this compiled format to
the given StringBuffer.
|
static final String DEFAULT_MAX_STRING_TRANSLATION
static final String DEFAULT_MIN_STRING_TRANSLATION
void toString(StringBuffer sb)
sb
- The buffer that will receive the string representationVersion parse(String version)
version
- The version string to parse.IllegalArgumentException
- If the version string could not be parsed.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.