|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.resources.kxml.service.version.VersionSpecificationParser
public class VersionSpecificationParser
Construct a version range from a specification.
| Nested Class Summary | |
|---|---|
static class |
VersionSpecificationParser.InvalidVersionException
Invalid version or version range specified exception |
static class |
VersionSpecificationParser.Range
|
| Constructor Summary | |
|---|---|
VersionSpecificationParser()
|
|
| Method Summary | |
|---|---|
static VersionSpecificationParser.Range |
parse(String spec)
Create a version range from a string representation Some spec examples are 1.0 Version 1.0
[1.0,2.0) Versions 1.0 (included) to 2.0 (not
included)
[1.0,2.0] Versions 1.0 to 2.0 (both included)
[1.5,) Versions 1.5 and higher
(,1.0],[1.2,) Versions up to 1.0 (included) and 1.2
or higher
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersionSpecificationParser()
| Method Detail |
|---|
public static VersionSpecificationParser.Range parse(String spec)
throws VersionSpecificationParser.InvalidVersionException
1.0 Version 1.0[1.0,2.0) Versions 1.0 (included) to 2.0 (not
included)[1.0,2.0] Versions 1.0 to 2.0 (both included)[1.5,) Versions 1.5 and higher(,1.0],[1.2,) Versions up to 1.0 (included) and 1.2
or higher
spec - string representation of a version or version range
VersionSpecificationParser.Range object that represents the specification
VersionSpecificationParser.InvalidVersionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||