Forge - Parent 1.2.3-SNAPSHOT

org.jboss.forge.project.dependencies
Class ExcludedDependencyBuilder

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

public class ExcludedDependencyBuilder
extends Object
implements Dependency

Author:
Lincoln Baxter, III

Constructor Summary
protected ExcludedDependencyBuilder(DependencyBuilder parent)
           
 
Method Summary
 ExcludedDependencyBuilder addExclusion()
           
static ExcludedDependencyBuilder create(DependencyBuilder parent)
           
 boolean equals(Object obj)
           
 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()
          Not implemented for Exclusions.
 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 getSystemPath()
          Get the systemPath of this Dependency
 String getVersion()
          Not implemented for Exclusions.
 int hashCode()
           
 boolean isSnapshot()
          Returns true if this dependency version is a SNAPSHOT
 ExcludedDependencyBuilder setArtifactId(String artifactId)
           
 ExcludedDependencyBuilder setGroupId(String groupId)
           
 DependencyBuilder setScope(ScopeType scope)
           
 DependencyBuilder 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
 

Constructor Detail

ExcludedDependencyBuilder

protected ExcludedDependencyBuilder(DependencyBuilder parent)
Method Detail

create

public static ExcludedDependencyBuilder create(DependencyBuilder parent)

setGroupId

public ExcludedDependencyBuilder setGroupId(String groupId)

setArtifactId

public ExcludedDependencyBuilder setArtifactId(String artifactId)

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()
Not implemented for Exclusions. Always returns "".

Specified by:
getVersion in interface Dependency

getScopeType

public String getScopeType()
Not implemented for Exclusions. Always returns null.

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

getSystemPath

public String getSystemPath()
Description copied from interface: Dependency
Get the systemPath of this Dependency

Specified by:
getSystemPath in interface Dependency

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

addExclusion

public ExcludedDependencyBuilder addExclusion()

setVersion

public DependencyBuilder setVersion(String version)

setScope

public DependencyBuilder setScope(ScopeType scope)

getPackagingType

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

Specified by:
getPackagingType in interface Dependency

getClassifier

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

Specified by:
getClassifier in interface Dependency

isSnapshot

public boolean isSnapshot()
Description copied from interface: Dependency
Returns true if this dependency version is a SNAPSHOT

Specified by:
isSnapshot in interface Dependency

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 obj)
Overrides:
equals in class Object

Forge - Parent 1.2.3-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.