|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.content.RepoRelationship
public class RepoRelationship
A RepoRelationship represents relationship with a Repo
having a (@link RepoRelationshipType) which can represent parent/child,
clone relationship etc.
Field Summary | |
---|---|
static String |
DELETE_BY_RELATED_REPO_ID
|
Constructor Summary | |
---|---|
RepoRelationship()
|
Method Summary | |
---|---|
RepoRepoRelationship |
addRepo(Repo repo)
Directly assign a repo to this repo relationship. |
boolean |
equals(Object obj)
|
int |
getId()
|
Repo |
getRelatedRepo()
|
Set<Repo> |
getRelatedRepos()
The repos that this repo relationship is associated with. |
RepoRelationshipType |
getRepoRelationshipType()
Describes the type of this repoRelationship. |
Set<RepoRepoRelationship> |
getRepoRepoRelationships()
Returns the explicit mapping entities. |
int |
hashCode()
|
RepoRepoRelationship |
removeRepo(Repo repo)
Removes the repo from this repo relationship, if it exists. |
void |
setId(int id)
|
void |
setRelatedRepo(Repo relatedRepo)
|
void |
setRepoRelationshipType(RepoRelationshipType repoRelationshipType)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DELETE_BY_RELATED_REPO_ID
Constructor Detail |
---|
public RepoRelationship()
Method Detail |
---|
public int getId()
public void setId(int id)
public Repo getRelatedRepo()
public void setRelatedRepo(Repo relatedRepo)
public RepoRelationshipType getRepoRelationshipType()
public void setRepoRelationshipType(RepoRelationshipType repoRelationshipType)
public Set<RepoRepoRelationship> getRepoRepoRelationships()
#getRepoRelationship()
public Set<Repo> getRelatedRepos()
The returned set is not backed by this entity - if you want to alter the set of associated repos, use
getRepoRepoRelationships()
or addRepo(Repo)
, removeRepo(Repo)
.
public RepoRepoRelationship addRepo(Repo repo)
repo
-
public RepoRepoRelationship removeRepo(Repo repo)
null
is
returned.
repo
- the repo to remove from this repo relationship
null
if the repo did not belong to this repo relationshippublic int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |