|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.roo.project.Repository
public class Repository
Simplified immutable representation of a repository.
Structured after the model used by Maven and Ivy.
Constructor Summary | |
---|---|
Repository(Element element)
Convenience constructor for creating a repository instance from a XML Element |
|
Repository(String id,
String name,
String url)
Convenience constructor creating a repository instance |
|
Repository(String id,
String name,
String url,
boolean enableSnapshots)
Convenience constructor for creating a repository instance |
Method Summary | |
---|---|
int |
compareTo(Repository o)
|
boolean |
equals(Object obj)
|
String |
getId()
The id of a repository |
String |
getName()
The name of a repository |
String |
getUrl()
The url of a repository |
int |
hashCode()
|
boolean |
isEnableSnapshots()
Indicates if snapshots are enabled |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Repository(String id, String name, String url)
id
- the repository id (required)name
- the repository name (optional)url
- the repository url (required)public Repository(String id, String name, String url, boolean enableSnapshots)
id
- the repository id (required)name
- the repository name (required)url
- the repository url (required)snapshots
- allowed? (required)public Repository(Element element)
element
- containing the repository definition (required)Method Detail |
---|
public String getId()
public String getName()
public String getUrl()
public boolean isEnableSnapshots()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public int compareTo(Repository o)
compareTo
in interface Comparable<Repository>
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |