public class IdeDependency extends Object implements Comparable
Constructor and Description |
---|
IdeDependency()
Creates an uninitialized instance
|
IdeDependency(String groupId,
String artifactId,
String version,
String classifier,
boolean referencedProject,
boolean testDependency,
boolean systemScoped,
boolean provided,
boolean addedToClasspath,
File file,
String type,
boolean osgiBundle,
String osgiSymbolicName,
int dependencyDepth,
String eclipseProjectName) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object obj) |
String |
getArtifactId()
Getter for
artifactId . |
String |
getClassifier()
Getter for
classifier . |
String |
getEclipseProjectName()
Getter for
eclipseProjectName . |
File |
getFile()
Getter for
file . |
String |
getGroupId()
Getter for
groupId . |
String |
getId()
Getter for
artifactId . |
File |
getJavadocAttachment()
Getter for
javadocAttachment . |
File |
getSourceAttachment()
Getter for
sourceAttachment . |
String |
getType()
Getter for
type . |
String |
getVersion()
Getter for
version . |
int |
hashCode() |
boolean |
isAddedToClasspath()
Getter for
addedToClasspath . |
boolean |
isAjdtDependency()
Returns the ajdtDependency.
|
boolean |
isAjdtWeaveDependency()
Returns the ajdtWeaveDependency.
|
boolean |
isJavaApi() |
boolean |
isOsgiBundle()
Getter for
osgiBundle . |
boolean |
isProvided()
Getter for
provided . |
boolean |
isReferencedProject()
Getter for
referencedProject . |
boolean |
isSystemScoped()
Getter for
systemScoped . |
boolean |
isSystemScopedOutsideProject(MavenProject project)
Is this dependency System scoped outside the eclipse project.
|
boolean |
isTestDependency()
Getter for
testDependency . |
void |
setAddedToClasspath(boolean addedToClasspath)
Setter for
addedToClasspath . |
void |
setAjdtDependency(boolean ajdtDependency)
Sets the ajdtDependency.
|
void |
setAjdtWeaveDependency(boolean ajdtWeaveDependency)
Sets the ajdtWeaveDependency.
|
void |
setArtifactId(String artifactId)
Setter for
artifactId . |
void |
setClassifier(String classifier)
Setter for
groupId . |
void |
setEclipseProjectName(String eclipseProjectName)
Setter for
eclipseProjectName . |
void |
setFile(File file)
Setter for
file . |
void |
setGroupId(String groupId)
Setter for
groupId . |
void |
setJavadocAttachment(File javadocAttachment)
Setter for
javadocAttachment . |
void |
setProvided(boolean provided)
Setter for
provided . |
void |
setReferencedProject(boolean referencedProject)
Setter for
referencedProject . |
void |
setSourceAttachment(File sourceAttachment)
Setter for
sourceAttachment . |
void |
setSystemScoped(boolean systemScoped)
Setter for
systemScoped . |
void |
setTestDependency(boolean testDependency)
Setter for
testDependency . |
void |
setType(String type)
Setter for
type . |
void |
setVersion(String version)
Setter for
version . |
String |
toString() |
public IdeDependency()
public IdeDependency(String groupId, String artifactId, String version, String classifier, boolean referencedProject, boolean testDependency, boolean systemScoped, boolean provided, boolean addedToClasspath, File file, String type, boolean osgiBundle, String osgiSymbolicName, int dependencyDepth, String eclipseProjectName)
groupId
- Group idartifactId
- Artifact idversion
- Artifact versionclassifier
- Artifact classifierreferencedProject
- Is this dependency available in the reactor?testDependency
- Is this a test dependency?systemScoped
- Is this a system scope dependency?provided
- Is this a provided dependency?addedToClasspath
- Is this dependency added to classpath?file
- Resolved artifact filetype
- Artifact typeosgiBundle
- Does this artifact contains a OSGI Manifest?osgiSymbolicName
- Bundle-SymbolicName from the Manifest (if available)dependencyDepth
- Depth of this dependency in the transitive dependency trail.eclipseProjectName
- The name of the project in eclipsepublic File getJavadocAttachment()
javadocAttachment
.public void setJavadocAttachment(File javadocAttachment)
javadocAttachment
.javadocAttachment
- The javadocAttachment to set.public String getArtifactId()
artifactId
.public void setArtifactId(String artifactId)
artifactId
.artifactId
- The artifactId to set.public String getGroupId()
groupId
.public void setGroupId(String groupId)
groupId
.groupId
- The groupId to set.public String getVersion()
version
.public void setVersion(String version)
version
.version
- The version to set.public String getClassifier()
classifier
.public void setClassifier(String classifier)
groupId
.groupId
- The groupId to set.public boolean isReferencedProject()
referencedProject
.public boolean isOsgiBundle()
osgiBundle
.public void setReferencedProject(boolean referencedProject)
referencedProject
.referencedProject
- The referencedProject to set.public File getSourceAttachment()
sourceAttachment
.public void setSourceAttachment(File sourceAttachment)
sourceAttachment
.sourceAttachment
- The sourceAttachment to set.public boolean isSystemScoped()
systemScoped
.public void setSystemScoped(boolean systemScoped)
systemScoped
.systemScoped
- The systemScoped to set.public boolean isTestDependency()
testDependency
.public void setTestDependency(boolean testDependency)
testDependency
.testDependency
- The testDependency to set.public File getFile()
file
.public void setFile(File file)
file
.file
- The file to set.public String getId()
artifactId
.public String getType()
type
.public void setType(String type)
type
.type
- The type to set.public boolean isAddedToClasspath()
addedToClasspath
.public void setAddedToClasspath(boolean addedToClasspath)
addedToClasspath
.addedToClasspath
- The addedToClasspath to set.public boolean isProvided()
provided
.public void setProvided(boolean provided)
provided
.provided
- The provided to set.public String getEclipseProjectName()
eclipseProjectName
.public void setEclipseProjectName(String eclipseProjectName)
eclipseProjectName
.eclipseProjectName
- The eclipseProjectName to set.public boolean isAjdtWeaveDependency()
public void setAjdtWeaveDependency(boolean ajdtWeaveDependency)
ajdtWeaveDependency
- the ajdtWeaveDependency.public boolean isAjdtDependency()
public void setAjdtDependency(boolean ajdtDependency)
ajdtDependency
- the ajdtDependency.public String toString()
toString
in class Object
Object.toString()
public int compareTo(Object o)
compareTo
in interface Comparable
Compare using groupId+artifactId+type+classifier Strings
public boolean isSystemScopedOutsideProject(MavenProject project)
public boolean isJavaApi()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.