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 495147 2007-01-11 07:47:53Z jvanzyl $
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-2008 Apache Software Foundation. All Rights Reserved.