public abstract class TMObject extends Object implements TMObjectIF, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
oid |
protected TMObject |
parent |
protected Set<LocatorIF> |
sources |
protected TopicMap |
topicmap |
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT
Modifier and Type | Method and Description |
---|---|
void |
addItemIdentifier(LocatorIF source_locator)
PUBLIC: Adds the given item identifier to the set of item
item identifiers for this object.
|
protected void |
fireEvent(String event,
Object new_value,
Object old_value)
INTERNAL: Fires an event, so that listeners can be informed about
the event.
|
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.
|
protected boolean |
isConnected() |
boolean |
isReadOnly()
PUBLIC: Returns true if this object is read-only, otherwise false.
|
void |
removeItemIdentifier(LocatorIF source_locator)
PUBLIC: Removes the given item identifier from the set of item
identifiers.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
protected TopicMap topicmap
protected String oid
protected TMObject parent
public String getObjectId()
TMObjectIF
getObjectId
in interface TMObjectIF
public boolean isReadOnly()
TMObjectIF
isReadOnly
in interface TMObjectIF
public TopicMapIF getTopicMap()
TMObjectIF
getTopicMap
in interface TMObjectIF
public Collection<LocatorIF> getItemIdentifiers()
TMObjectIF
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.
getItemIdentifiers
in interface TMObjectIF
public void addItemIdentifier(LocatorIF source_locator) throws ConstraintViolationException
TMObjectIF
addItemIdentifier
in interface TMObjectIF
source_locator
- 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.public void removeItemIdentifier(LocatorIF source_locator)
TMObjectIF
removeItemIdentifier
in interface TMObjectIF
source_locator
- The item identifier to be removed; an object implementing LocatorIF.protected void fireEvent(String event, Object new_value, Object old_value)
protected boolean isConnected()