|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.issues.bugzilla.BugzillaVersionRange
public class BugzillaVersionRange
Implements a version range.
Constructor Summary | |
---|---|
BugzillaVersionRange(String versionSpecification) Convenience constructor supporting milestone versions. |
|
BugzillaVersionRange(String versionId, String versionSpecification) Default constructor using start index for field query properties of zero. |
|
BugzillaVersionRange(String versionId, String versionSpecification, int fieldStartIndex) Constructor to specify the start index. |
Method Summary | |
---|---|
StringBuilder |
appendToUrl(StringBuilder buffer) Appends the information of this version range to the buffer. |
boolean |
containsVersion(org.apache.maven.artifact.versioning.ArtifactVersion version) Checks if the given version is part of the range or not. |
int |
getFieldStartIndex() Returns the start index to use to construct the field properties of the query to Bugzilla. |
String |
getVersionId() Returns the identifier of the version to create a query part. |
String |
getVersionSpecification() Returns the specification defining the range of valid versions. |
String |
toString() Returns the version specification passed to the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BugzillaVersionRange(String versionSpecification) throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
versionSpecification
- the specification defining the range of valid versions.
org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
- if the given
versionSpecification
cannot be parsed.
public BugzillaVersionRange(String versionId, String versionSpecification) throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
versionId
- the identifier of the version to create a query part.
versionSpecification
- the specification defining the range of valid versions.
org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
- if the given
versionSpecification
cannot be parsed.
public BugzillaVersionRange(String versionId, String versionSpecification, int fieldStartIndex) throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
versionId
- the identifier of the version to create a query part.
versionSpecification
- the specification defining the range of valid versions.
fieldStartIndex
- the start index to use to construct the field properties of the query to Bugzilla.
org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
- if the given
versionSpecification
cannot be parsed.
Method Detail |
---|
public String getVersionId()
public String getVersionSpecification()
getVersionSpecification
in interface
ArtifactVersionRange
ArtifactVersionRange.getVersionSpecification()
public int getFieldStartIndex()
public boolean containsVersion(org.apache.maven.artifact.versioning.ArtifactVersion version) throws NullPointerException
containsVersion
in interface
ArtifactVersionRange
true
if the version is within the range,
false
otherwise.
ArtifactVersionRange.containsVersion(org.apache.maven.artifact.versioning.ArtifactVersion)
NullPointerException
- if
version
is
null
.
public StringBuilder appendToUrl(StringBuilder buffer)
appendToUrl
in interface
ArtifactVersionRange
buffer
- the buffer that contains the URL to be created. If the buffer is not empty and does not end with
?
or
&
, an
&
is appended.
ArtifactVersionRange.appendToUrl(java.lang.StringBuilder)
public String toString()
Returns the version specification passed to the constructor.
toString
in interface
ArtifactVersionRange
toString
in class
Object
ArtifactVersionRange.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |