org.apache.maven.artifact.versioning
Class Restriction

java.lang.Object
  extended by org.apache.maven.artifact.versioning.Restriction

public class Restriction
extends java.lang.Object

Describes a restriction in versioning.

Version:
$Id: Restriction.java 219815 2005-07-19 23:45:44Z brett $
Author:
Brett Porter

Constructor Summary
Restriction(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive)
           
 
Method Summary
 boolean containsVersion(ArtifactVersion version)
           
 ArtifactVersion getLowerBound()
           
 ArtifactVersion getUpperBound()
           
 boolean isLowerBoundInclusive()
           
 boolean isUpperBoundInclusive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Restriction

public Restriction(ArtifactVersion lowerBound,
                   boolean lowerBoundInclusive,
                   ArtifactVersion upperBound,
                   boolean upperBoundInclusive)
Method Detail

getLowerBound

public ArtifactVersion getLowerBound()

isLowerBoundInclusive

public boolean isLowerBoundInclusive()

getUpperBound

public ArtifactVersion getUpperBound()

isUpperBoundInclusive

public boolean isUpperBoundInclusive()

containsVersion

public boolean containsVersion(ArtifactVersion version)


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.