public class RelationshipContainerImpl extends java.lang.Object implements RelationshipContainer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected static java.lang.String |
RELATIONSHIPS |
| Constructor and Description |
|---|
RelationshipContainerImpl(MutableRepositoryItem pRepositoryItem)
Constructs a RelationshipContainerImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRelationship(Relationship pRelationship)
Add the Relationship to the container.
|
void |
addRelationship(Relationship pRelationship,
int pIndex)
Add the Relationship to the container at the given index.
|
Relationship |
getRelationship(java.lang.String pRelationshipId)
Returns the Relationship whose id is pRelationshipId.
|
int |
getRelationshipCount()
Returns the number of Relationships in the container.
|
java.util.List |
getRelationships()
Returns a List of Relationships.
|
protected java.util.List |
getRepositoryItemList() |
void |
removeAllRelationships()
Removes all the Relationships
|
Relationship |
removeRelationship(java.lang.String pRelationshipId)
Removes a Relationship whose id is passed in.
|
public static java.lang.String CLASS_VERSION
protected static java.lang.String RELATIONSHIPS
public RelationshipContainerImpl(MutableRepositoryItem pRepositoryItem)
protected java.util.List getRepositoryItemList()
public java.util.List getRelationships()
getRelationships in interface RelationshipContainerpublic void addRelationship(Relationship pRelationship) throws DuplicateRelationshipException, InvalidParameterException
addRelationship in interface RelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic void addRelationship(Relationship pRelationship, int pIndex) throws DuplicateRelationshipException, InvalidParameterException
addRelationship in interface RelationshipContainerDuplicateRelationshipExceptionInvalidParameterExceptionpublic Relationship removeRelationship(java.lang.String pRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
removeRelationship in interface RelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic void removeAllRelationships()
removeAllRelationships in interface RelationshipContainerpublic Relationship getRelationship(java.lang.String pRelationshipId) throws RelationshipNotFoundException, InvalidParameterException
getRelationship in interface RelationshipContainerRelationshipNotFoundExceptionInvalidParameterExceptionpublic int getRelationshipCount()
getRelationshipCount in interface RelationshipContainer