public interface TMObjectIF
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_ADD_ITEMIDENTIFIER |
static String |
EVENT_REMOVE_ITEMIDENTIFIER |
static String |
MSG_NULL_ARGUMENT |
Modifier and Type | Method and Description |
---|---|
void |
addItemIdentifier(LocatorIF item_identifier)
PUBLIC: Adds the given item identifier to the set of item
item identifiers for this object.
|
Collection<LocatorIF> |
getItemIdentifiers()
PUBLIC: Gets the item identifiers of this object.
|
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.
|
static final String MSG_NULL_ARGUMENT
static final String EVENT_ADD_ITEMIDENTIFIER
static final String EVENT_REMOVE_ITEMIDENTIFIER
String getObjectId()
boolean isReadOnly()
TopicMapIF getTopicMap()
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()