This project has retired. For details please refer to its Attic page.
DependencyScope

org.apache.maven.archiva.model
Class DependencyScope

Package class diagram package DependencyScope
java.lang.Object
  extended by org.apache.maven.archiva.model.DependencyScope

public class DependencyScope
extends java.lang.Object

DependencyScope - utility methods and constants for working with scopes.


Field Summary
static java.lang.String COMPILE
           
static java.lang.String PROVIDED
           
static java.lang.String RUNTIME
           
static java.lang.String SYSTEM
           
static java.lang.String TEST
           
 
Constructor Summary
DependencyScope()
           
 
Method Summary
static boolean isSystemScoped(org.apache.maven.archiva.model.Dependency dep)
           
static boolean isWithinScope(java.lang.String actualScope, java.lang.String desiredScope)
          Test the provided scope against the desired scope to see if it is within that scope's pervue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM

public static final java.lang.String SYSTEM
See Also:
Constant Field Values

COMPILE

public static final java.lang.String COMPILE
See Also:
Constant Field Values

PROVIDED

public static final java.lang.String PROVIDED
See Also:
Constant Field Values

RUNTIME

public static final java.lang.String RUNTIME
See Also:
Constant Field Values

TEST

public static final java.lang.String TEST
See Also:
Constant Field Values
Constructor Detail

DependencyScope

public DependencyScope()
Method Detail

isSystemScoped

public static boolean isSystemScoped(org.apache.maven.archiva.model.Dependency dep)

isWithinScope

public static boolean isWithinScope(java.lang.String actualScope,
                                    java.lang.String desiredScope)
Test the provided scope against the desired scope to see if it is within that scope's pervue. Examples: actual:compile, desired:test = true actual:compile, desired:compile = true actual:test, desired:compile = false actual:provided, desired:compile = false

Parameters:
actualScope -
desiredScope -
Returns: