org.apache.maven.artifact.versioning
Class Restriction

java.lang.Object
  extended byorg.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

Field Summary
(package private) static Restriction EVERYTHING
           
 
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
 

Field Detail

EVERYTHING

static final Restriction EVERYTHING
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 2006 Apache Software Foundation. All Rights Reserved.