|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of object used to indicate the related object.This may be the related-to object itself, or an identifier representing it.
public interface IRelationship<T>
Represents a relationship to another object.
TODO: add javadoc to methods.
Method Summary | |
---|---|
void |
addRelatedObject(T object)
|
Iterable<T> |
getRelatedObjects()
|
URI |
getType()
Returns this relationship's type. |
void |
removeRelatedObject(T object)
|
Methods inherited from interface org.eclipse.higgins.idas.IHasMetadata |
---|
addMetadata, createMetadata, getMetadataSet, removeMetadata |
Method Detail |
---|
URI getType() throws IdASException
TODO: Add (or point at) doc which explains relationship types. TODO: Add example types. Possibly some that denote hierarchy (parent, child, sibling).
URI
representing this relationship's type.
IdASException
Iterable<T> getRelatedObjects() throws IdASException
IdASException
void addRelatedObject(T object) throws IdASException
IdASException
void removeRelatedObject(T object) throws IdASException
IdASException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |