|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Construct

Base interface for all Topic Maps constructs.
| Method Summary | |
|---|---|
void |
addItemIdentifier(Locator itemIdentifier)
Adds an item identifier. |
boolean |
equals(java.lang.Object other)
Returns true if the other object is equal to this one. |
java.lang.String |
getId()
Returns the identifier of this construct. |
java.util.Set<Locator> |
getItemIdentifiers()
Returns the item identifiers of this Topic Maps construct. |
Construct |
getParent()
Returns the parent of this construct. |
TopicMap |
getTopicMap()
Returns the TopicMap instance to which this Topic Maps construct
belongs. |
int |
hashCode()
Returns the hash code value. |
void |
remove()
Deletes this construct from its parent container. |
void |
removeItemIdentifier(Locator itemIdentifier)
Removes an item identifier. |
| Method Detail |
|---|
Construct getParent()
TopicMap
instance.
TopicMap.TopicMap getTopicMap()
TopicMap instance to which this Topic Maps construct
belongs.
A TopicMap instance returns itself.
java.lang.String getId()
The ID can be anything, so long as no other Construct in the
same topic map has the same ID.
java.util.Set<Locator> getItemIdentifiers()
Locators representing the
item identifiers.
void addItemIdentifier(Locator itemIdentifier)
throws ModelConstraintException
Constructs in the same
TopicMap with the same item identifier.
If the two objects are Topics, then they must be merged.
If at least one of the two objects is not a Topic, an
IdentityConstraintException must be reported.
itemIdentifier - The item identifier to be added; must not be null.
IdentityConstraintException - If another construct has an item
identifier which is equal to itemIdentifier.
ModelConstraintException - If the item identifier is null.void removeItemIdentifier(Locator itemIdentifier)
itemIdentifier - The item identifier to be removed from this construct,
if present (null is ignored).void remove()
boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The object to compare this object against.
int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||