|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TMObjectIF
PUBLIC: The base topic map object interface that all topic map objects implement. This interface serves as a common supertype for all topic map objects, making very generic utilities possible.
If an object implementing this interface is marked as unmodifiable, then an UnsupportedOperationException is thrown from any method that causes a change in the state of that object.
Method Summary | |
---|---|
void |
addItemIdentifier(LocatorIF item_identifier)
PUBLIC: Adds the given item identifier to the set of item item identifiers for this object. |
java.util.Collection<LocatorIF> |
getItemIdentifiers()
PUBLIC: Gets the item identifiers of this object. |
java.lang.String |
getObjectId()
PUBLIC: Gets the id of this object. |
TopicMapIF |
getTopicMap()
PUBLIC: Gets the topic map that this object belongs to. |
boolean |
isReadOnly()
PUBLIC: Returns true if this object is read-only, otherwise false. |
void |
remove()
PUBLIC: Removes the object from its parent. |
void |
removeItemIdentifier(LocatorIF item_identifier)
PUBLIC: Removes the given item identifier from the set of item identifiers. |
Method Detail |
---|
java.lang.String getObjectId()
boolean isReadOnly()
TopicMapIF getTopicMap()
java.util.Collection<LocatorIF> getItemIdentifiers()
The purpose is to enable the engine to detect when references to external objects refer to objects that are already present within the system, such as topic maps which are already loaded.
void addItemIdentifier(LocatorIF item_identifier) throws ConstraintViolationException
item_identifier
- The item identifier to be added; an object implementing LocatorIF.
ConstraintViolationException
- Thrown if another object
in the same topic map already has the given item
identifier.void removeItemIdentifier(LocatorIF item_identifier)
item_identifier
- The item identifier to be removed; an object implementing LocatorIF.void remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |