|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.roo.project.Dependency
public class Dependency
Simplified immutable representation of a dependency.
Structured after the model used by Maven and Ivy. This may be replaced in a future release with a more OSGi-centric model.
Constructor Summary | |
---|---|
Dependency(Element dependency)
Convenience constructor when an XML element is available that represents a Maven |
|
Dependency(org.springframework.roo.model.JavaPackage groupId,
org.springframework.roo.model.JavaSymbolName artifactId,
String versionId,
DependencyType type,
DependencyScope scope)
Creates an immutable Dependency . |
|
Dependency(String groupId,
String artifactId,
String version)
Convenience constructor for producing a JAR dependency. |
|
Dependency(String groupId,
String artifactId,
String version,
List<Dependency> exclusions)
Convenience constructor for producing a JAR dependency. |
Method Summary | |
---|---|
int |
compareTo(Dependency o)
|
boolean |
equals(Object obj)
|
org.springframework.roo.model.JavaSymbolName |
getArtifactId()
|
List<Dependency> |
getExclusions()
|
org.springframework.roo.model.JavaPackage |
getGroupId()
|
DependencyScope |
getScope()
|
String |
getSimpleDescription()
|
String |
getSystemPath()
|
DependencyType |
getType()
|
String |
getVersionId()
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Dependency(String groupId, String artifactId, String version)
groupId
- the group ID (required)artifactId
- the artifact ID (required)version
- the version (required)public Dependency(String groupId, String artifactId, String version, List<Dependency> exclusions)
groupId
- the group ID (required)artifactId
- the artifact ID (required)version
- the version ID (required)exclusions
- the exclusions for this dependencypublic Dependency(Element dependency)
dependency
- to parse (required)public Dependency(org.springframework.roo.model.JavaPackage groupId, org.springframework.roo.model.JavaSymbolName artifactId, String versionId, DependencyType type, DependencyScope scope)
Dependency
.
groupId
- the group ID (required)artifactId
- the artifact ID (required)versionId
- the version ID (required)type
- the dependency type (required)scope
- the dependency scope (required)Method Detail |
---|
public org.springframework.roo.model.JavaPackage getGroupId()
public org.springframework.roo.model.JavaSymbolName getArtifactId()
public String getVersionId()
public DependencyType getType()
public DependencyScope getScope()
public String getSystemPath()
public List<Dependency> getExclusions()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public int compareTo(Dependency o)
compareTo
in interface Comparable<Dependency>
public String getSimpleDescription()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |