|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Represents a relationship to another IContext.
TODO (Doc): add javadoc to methods.
| Method Summary | |
|---|---|
void |
addRelatedContext(URI contextID)
Adds the specified context ID as a related context Note: This operation is only applied to any backing data store after IContext.applyUpdates() is called. |
Iterator |
getRelatedObjects()
|
URI |
getType()
Returns this relationship's type. |
void |
remove()
Removes this entire IContextRelationship from its containing IContext Note: This operation is only applied to any backing data store after IContext.applyUpdates() is called. |
void |
removeRelatedContext(URI contextID)
Removes the specified context ID as a related context Note: This operation is only applied to any backing data store after IContext.applyUpdates() is called. |
| Methods inherited from interface org.eclipse.higgins.idas.api.IHasMetadata |
|---|
addMetadata, addMetadata, equals, getMetadata, getMetadataSet |
| Method Detail |
public void addRelatedContext(URI contextID)
throws IdASException
IContext.applyUpdates() is called.
contextID - the context ID of the specified related context to be added
IdASException
public void removeRelatedContext(URI contextID)
throws IdASException
IContext.applyUpdates() is called.
contextID - the context ID of the specified related context to be removed
IdASExceptionpublic void remove()
IContext.applyUpdates() is called.
{@link - IdASException}
public URI getType()
throws IdASException
TODO (Doc): Add (or point at) doc which explains relationship types. TODO (Doc): Add example types. Possibly some that denote hierarchy (parent, child, sibling).
URI representing this relationship's type.
IdASException
public Iterator getRelatedObjects()
throws IdASException
URI. Each representing a related context ID
IdASException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||