|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.impl.utils.SnapshotTMObject
public abstract class SnapshotTMObject
INTERNAL:
| Field Summary | |
|---|---|
protected String |
objectId
|
static int |
SNAPSHOT_COMPLETE
|
static int |
SNAPSHOT_REFERENCE
|
protected int |
snapshotType
|
protected Collection<LocatorIF> |
srclocs
|
| Constructor Summary | |
|---|---|
SnapshotTMObject()
|
|
| Method Summary | |
|---|---|
void |
addItemIdentifier(LocatorIF locator)
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 locator)
PUBLIC: Removes the given item identifier from the set of item identifiers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SNAPSHOT_REFERENCE
public static final int SNAPSHOT_COMPLETE
protected int snapshotType
protected String objectId
protected Collection<LocatorIF> srclocs
| Constructor Detail |
|---|
public SnapshotTMObject()
| Method Detail |
|---|
public String getObjectId()
TMObjectIF
getObjectId in interface TMObjectIFpublic boolean isReadOnly()
TMObjectIF
isReadOnly in interface TMObjectIFpublic TopicMapIF getTopicMap()
TMObjectIF
getTopicMap in interface TMObjectIFpublic Collection<LocatorIF> getItemIdentifiers()
TMObjectIFThe 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 locator)
throws ConstraintViolationException
TMObjectIF
addItemIdentifier in interface TMObjectIFlocator - 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 locator)
TMObjectIF
removeItemIdentifier in interface TMObjectIFlocator - The item identifier to be removed; an object implementing LocatorIF.public void remove()
TMObjectIF
remove in interface TMObjectIF
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||