Forge - Parent 1.0.5-SNAPSHOT

org.jboss.forge.project.dependencies
Class DependencyImpl

java.lang.Object
  extended by org.jboss.forge.project.dependencies.DependencyImpl
All Implemented Interfaces:
Dependency

public class DependencyImpl
extends Object
implements Dependency

This class is internal; instead use DependencyBuilder for Dependency creation & instantiation.

Author:
Lincoln Baxter, III

Method Summary
 boolean equals(Object o)
           
 String getArtifactId()
          Get the minor-identifier for this Dependency.
 String getClassifier()
          Get the classifier for this Dependency
 List<Dependency> getExcludedDependencies()
          Get a list of Dependency objects to be excluded from this Dependency's list of inclusions when it is included in a project.
 String getGroupId()
          Get the major identifier for this Dependency.
 String getPackagingType()
          Get the specified packaging type of this Dependency
 PackagingType getPackagingTypeEnum()
          Get the PackagingType of this Dependency, if the type is not one of the default supported types, PackagingType.OTHER will be returned;
 String getScopeType()
          Get the scope type of this Dependency
 ScopeType getScopeTypeEnum()
          Get the ScopeType of this Dependency, if the type is not one of the default supported types, ScopeType.OTHER will be returned;
 String getVersion()
          Get the version of this Dependency.
 int hashCode()
           
 void setArtifactId(String artifactId)
           
 void setClassifier(String classifier)
           
 void setExcludedDependencies(List<Dependency> excludedDependencies)
           
 void setGroupId(String groupId)
           
 void setPackagingType(PackagingType packagingType)
           
 void setPackagingType(String type)
           
 void setScopeType(ScopeType scope)
           
 void setScopeType(String type)
           
 void setVersion(String version)
           
 String toCoordinates()
          Return a string represenging this dependency in the form of a standard identifier.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getArtifactId

public String getArtifactId()
Description copied from interface: Dependency
Get the minor-identifier for this Dependency.

Specified by:
getArtifactId in interface Dependency

getGroupId

public String getGroupId()
Description copied from interface: Dependency
Get the major identifier for this Dependency.

Specified by:
getGroupId in interface Dependency

getVersion

public String getVersion()
Description copied from interface: Dependency
Get the version of this Dependency.

Specified by:
getVersion in interface Dependency

getScopeType

public String getScopeType()
Description copied from interface: Dependency
Get the scope type of this Dependency

Specified by:
getScopeType in interface Dependency

getPackagingTypeEnum

public PackagingType getPackagingTypeEnum()
Description copied from interface: Dependency
Get the PackagingType of this Dependency, if the type is not one of the default supported types, PackagingType.OTHER will be returned;

Specified by:
getPackagingTypeEnum in interface Dependency

getScopeTypeEnum

public ScopeType getScopeTypeEnum()
Description copied from interface: Dependency
Get the ScopeType of this Dependency, if the type is not one of the default supported types, ScopeType.OTHER will be returned;

Specified by:
getScopeTypeEnum in interface Dependency

setScopeType

public void setScopeType(ScopeType scope)

setScopeType

public void setScopeType(String type)

setVersion

public void setVersion(String version)

setGroupId

public void setGroupId(String groupId)

setArtifactId

public void setArtifactId(String artifactId)

getClassifier

public String getClassifier()
Description copied from interface: Dependency
Get the classifier for this Dependency

Specified by:
getClassifier in interface Dependency

setClassifier

public void setClassifier(String classifier)

getExcludedDependencies

public List<Dependency> getExcludedDependencies()
Description copied from interface: Dependency
Get a list of Dependency objects to be excluded from this Dependency's list of inclusions when it is included in a project.

Specified by:
getExcludedDependencies in interface Dependency

setExcludedDependencies

public void setExcludedDependencies(List<Dependency> excludedDependencies)

getPackagingType

public String getPackagingType()
Description copied from interface: Dependency
Get the specified packaging type of this Dependency

Specified by:
getPackagingType in interface Dependency

setPackagingType

public void setPackagingType(PackagingType packagingType)

setPackagingType

public void setPackagingType(String type)

toCoordinates

public String toCoordinates()
Description copied from interface: Dependency
Return a string represenging this dependency in the form of a standard identifier. E.g: "groupId : artifactId : version"

Specified by:
toCoordinates in interface Dependency

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

Forge - Parent 1.0.5-SNAPSHOT

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.