|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.tom.ows.Version
public class Version
Version of an OWS operation or specification. Comparability of Version
objects simplifies tasks like
version negotiation.
Description from owsCommon.xsd
, version 1.1.0:
The string value shall contain one x.y.z "version" value (e.g., "2.1.3"). A version number shall contain three
non-negative integers separated by decimal points, in the form "x.y.z". The integers y and z shall not exceed 99.
Each version shall be for the Implementation Specification (document) and the associated XML Schemas to which requested operations will conform. An Implementation Specification version normally specifies XML Schemas against which an XML encoded operation response must conform and should be validated.
Comparable
Constructor Summary | |
---|---|
Version(int x,
int y,
int z)
Constructs a Version for an OWS operation. |
Method Summary | |
---|---|
int |
compareTo(Version version)
|
boolean |
equals(Object obj)
|
static String |
getVersionsString(Version... versions)
Returns a formatted string for presenting a series of versions to a human. |
int |
hashCode()
|
static Version |
parseVersion(String s)
Parses the string argument as a Version . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Version(int x, int y, int z) throws InvalidParameterValueException
Version
for an OWS operation.
x
- major version. Must be a positive integer.y
- minor version. Must be between 0 and 99.z
- minor sub version. Must be between 0 and 99.
InvalidParameterValueException
- if a parameters exceed the allowed rangeMethod Detail |
---|
public static Version parseVersion(String s) throws InvalidParameterValueException
Version
.
The string value shall contain one x.y.z "version" value (e.g., "2.1.3"). A version number shall contain three non-negative integers separated by decimal points, in the form "x.y.z". The integers y and z shall not exceed 99.
s
- a String
containing the Version
representation to be parsed
Version
object
InvalidParameterValueException
- if the string does not contain a parsable Version
public int compareTo(Version version)
compareTo
in interface Comparable<Version>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public static String getVersionsString(Version... versions)
versions
- versions to be listed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |