|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of object used to represent the relationship. This is typically an identifier.
This type is used to type the uses of IRelationship
in this interface.
public interface IHasRelationships<T>
Extended by interfaces which have relationships to other objects.
Method Summary | |
---|---|
void |
addRelationship(IRelationship<T> relationship)
Adds the specified Relationship to this Object. |
IRelationship<T> |
createRelationship(URI type)
Creates a relationship to another Object. |
Iterable<IRelationship<T>> |
getRelationships()
Returns the relationships this Object has to others. |
void |
removeRelationship(IRelationship<T> relationship)
Removes the specified Relationship from this Object. |
Method Detail |
---|
IRelationship<T> createRelationship(URI type) throws IdASException
TODO: Specify whether this also adds the relationship to this Object, or if add must subsequently be called.
TODO: If this method also adds, note that updates to the returned IRelationship
affect the added relationship.
type
- The type of relationship. TODO: give example.
IdASException
void addRelationship(IRelationship<T> relationship) throws IdASException
relationship
- The Relationship to add.
IdASException
void removeRelationship(IRelationship<T> relationship) throws IdASException
TODO: How does the Service Provider match relationships in order to do the remove?
relationship
- The Relationship to remove.
IdASException
Iterable<IRelationship<T>> getRelationships() throws IdASException
IdASException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |