de.smartics.maven.issues
Interface ArtifactVersionRange

Package class diagram package ArtifactVersionRange
All Known Implementing Classes:
BugzillaVersionRange

public interface ArtifactVersionRange

Defines implementations of the artifact version to create query URLs for different issue management systems.

Author:
Robert Reiner

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.
 String getVersionSpecification()
          Returns the specification defining the range of valid versions.
 String toString()
           Returns the version specification passed to the constructor.
 

Method Detail

getVersionSpecification

String getVersionSpecification()
Returns the specification defining the range of valid versions.

Returns:
the specification defining the range of valid versions.

containsVersion

boolean containsVersion(org.apache.maven.artifact.versioning.ArtifactVersion version)
                        throws NullPointerException
Checks if the given version is part of the range or not.

Returns:
true if the version is within the range, false otherwise.
Throws:
NullPointerException - if version is null.

appendToUrl

StringBuilder appendToUrl(StringBuilder buffer)
Appends the information of this version range to the buffer.

Parameters:
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.
Returns:
the information of the version range as query parameters for a given issue management server.

toString

String toString()

Returns the version specification passed to the constructor.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.