org.codehaus.mojo.pomtools.wrapper.custom
Class DependencyWrapper

java.lang.Object
  extended by org.codehaus.mojo.pomtools.wrapper.custom.DependencyWrapper

public class DependencyWrapper
extends Object

Version:
$Id: DependencyWrapper.java 2166 2006-07-18 21:32:16Z carlos $
Author:
David Hawkins

Field Summary
static String ARTIFACT_ID
           
static String GROUP_ID
           
static String SCOPE
           
static String TYPE
           
static String VERSION
           
 
Constructor Summary
DependencyWrapper(ObjectWrapper objWrapper)
           
 
Method Summary
 List getAllVersions()
           
 String getArtifactId()
           
 String getGroupId()
           
 VersionInfo getLatestVersion(boolean includeSnapshots)
           
 List getParsedVersions()
           
 String getResolvedVersion()
          Its possible that this dependency has a null version because it is inheriting it from the parent.
 ModelVersionRange getResolvedVersionRange()
           
 String getScope()
           
 String getType()
           
 List getUnparsedVersions()
           
 String getVersion()
           
 ModelVersionRange getVersionRange()
           
 ModelVersionRange getVersionRange(String version)
           
 boolean isValidArtifact()
           
 boolean isValidGroupIdArtifactId()
           
 boolean isValidVersion()
           
 boolean isValidVersion(String version)
           
protected  boolean setBoundedVersion(String boundVersionSpec, boolean isLower)
           
 void setToLatestVersion(boolean includeSnapshots)
           
 void setVersion(String version)
           
 boolean setVersionLowerBound(String boundVersionSpec)
           
 boolean setVersionUpperBound(String boundVersionSpec)
           
 String toString()
          If groupId and artifactId are equal, only one of them is returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final String VERSION
See Also:
Constant Field Values

ARTIFACT_ID

public static final String ARTIFACT_ID
See Also:
Constant Field Values

GROUP_ID

public static final String GROUP_ID
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

SCOPE

public static final String SCOPE
See Also:
Constant Field Values
Constructor Detail

DependencyWrapper

public DependencyWrapper(ObjectWrapper objWrapper)
Method Detail

toString

public String toString()
If groupId and artifactId are equal, only one of them is returned. commons-lang:commons-lang => commons-lang

Overrides:
toString in class Object

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getGroupId

public String getGroupId()

getArtifactId

public String getArtifactId()

getType

public String getType()

getScope

public String getScope()

setToLatestVersion

public void setToLatestVersion(boolean includeSnapshots)

getVersionRange

public ModelVersionRange getVersionRange(String version)

getVersionRange

public ModelVersionRange getVersionRange()

getResolvedVersionRange

public ModelVersionRange getResolvedVersionRange()

isValidArtifact

public boolean isValidArtifact()

isValidGroupIdArtifactId

public boolean isValidGroupIdArtifactId()

isValidVersion

public boolean isValidVersion()

isValidVersion

public boolean isValidVersion(String version)

setVersionLowerBound

public boolean setVersionLowerBound(String boundVersionSpec)
                             throws PomToolsVersionException
Throws:
PomToolsVersionException

setVersionUpperBound

public boolean setVersionUpperBound(String boundVersionSpec)
                             throws PomToolsVersionException
Throws:
PomToolsVersionException

setBoundedVersion

protected boolean setBoundedVersion(String boundVersionSpec,
                                    boolean isLower)
                             throws PomToolsVersionException
Throws:
PomToolsVersionException

getAllVersions

public List getAllVersions()

getParsedVersions

public List getParsedVersions()

getUnparsedVersions

public List getUnparsedVersions()

getResolvedVersion

public String getResolvedVersion()
Its possible that this dependency has a null version because it is inheriting it from the parent. Return the parent's version of the dependency if this one is null

Returns:

getLatestVersion

public VersionInfo getLatestVersion(boolean includeSnapshots)


Copyright © 2011 The Codehaus. All Rights Reserved.