|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(java.lang.Object obj)
|
static java.lang.String |
getVersionsString(Version... versions)
Returns a formatted string for presenting a series of versions to a human. |
int |
hashCode()
|
static Version |
parseVersion(java.lang.String s)
Parses the string argument as a Version. |
java.lang.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 range| Method Detail |
|---|
public static Version parseVersion(java.lang.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 Versionpublic int compareTo(Version version)
compareTo in interface java.lang.Comparable<Version>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.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 | |||||||||