public class TopicMapImpl extends ReifiableImpl implements org.tmapi.core.TopicMap
Modifier and Type | Field and Description |
---|---|
protected TopicMapImpl |
topicMap |
Constructor and Description |
---|
TopicMapImpl(TopicMapSystemIF tmsystem,
TopicMapStoreIF store) |
Modifier and Type | Method and Description |
---|---|
void |
addItemIdentifier(org.tmapi.core.Locator iid) |
void |
close() |
org.tmapi.core.Association |
createAssociation(org.tmapi.core.Topic type,
Collection<org.tmapi.core.Topic> scope) |
org.tmapi.core.Association |
createAssociation(org.tmapi.core.Topic type,
org.tmapi.core.Topic... scope) |
org.tmapi.core.Locator |
createLocator(String reference) |
TopicImpl |
createTopic() |
TopicImpl |
createTopicByItemIdentifier(org.tmapi.core.Locator iid) |
TopicImpl |
createTopicBySubjectIdentifier(org.tmapi.core.Locator sid) |
TopicImpl |
createTopicBySubjectLocator(org.tmapi.core.Locator slo) |
boolean |
equals(Object obj) |
Set<org.tmapi.core.Association> |
getAssociations() |
net.ontopia.topicmaps.impl.tmapi2.ConstructImpl |
getConstructById(String id) |
net.ontopia.topicmaps.impl.tmapi2.ConstructImpl |
getConstructByItemIdentifier(org.tmapi.core.Locator iid) |
protected TopicImpl |
getDefaultNameType() |
String |
getId() |
<I extends org.tmapi.index.Index> |
getIndex(Class<I> idx) |
Set<org.tmapi.core.Locator> |
getItemIdentifiers() |
org.tmapi.core.Locator |
getLocator() |
net.ontopia.topicmaps.impl.tmapi2.ConstructImpl |
getParent() |
TopicImpl |
getTopicBySubjectIdentifier(org.tmapi.core.Locator sid) |
TopicImpl |
getTopicBySubjectLocator(org.tmapi.core.Locator slo) |
TopicMapImpl |
getTopicMap() |
Set<org.tmapi.core.Topic> |
getTopics() |
TopicMapIF |
getWrapped() |
int |
hashCode() |
void |
mergeIn(org.tmapi.core.TopicMap tm) |
void |
remove() |
void |
removeItemIdentifier(org.tmapi.core.Locator iid) |
LocatorIF |
unwrapLocator(org.tmapi.core.Locator loc) |
TopicNameIF |
unwrapName(org.tmapi.core.Name name) |
TopicIF |
unwrapTopic(org.tmapi.core.Topic topic) |
VariantNameIF |
unwrapVariant(org.tmapi.core.Variant variant) |
AssociationImpl |
wrapAssociation(AssociationIF association) |
org.tmapi.core.Locator |
wrapLocator(LocatorIF loc) |
NameImpl |
wrapName(TopicNameIF name) |
org.tmapi.core.Occurrence |
wrapOccurrence(OccurrenceIF occ) |
RoleImpl |
wrapRole(AssociationRoleIF role) |
<T> Set<T> |
wrapSet(Collection<?> coll) |
net.ontopia.topicmaps.impl.tmapi2.ConstructImpl |
wrapTMObject(TMObjectIF tmobject) |
TopicImpl |
wrapTopic(TopicIF topic) |
VariantImpl |
wrapVariant(VariantNameIF variant) |
getReifier, setReifier
protected TopicMapImpl topicMap
public TopicMapImpl(TopicMapSystemIF tmsystem, TopicMapStoreIF store)
protected TopicImpl getDefaultNameType()
public org.tmapi.core.Locator getLocator()
getLocator
in interface org.tmapi.core.TopicMap
public TopicMapIF getWrapped()
public TopicNameIF unwrapName(org.tmapi.core.Name name)
public VariantNameIF unwrapVariant(org.tmapi.core.Variant variant)
public LocatorIF unwrapLocator(org.tmapi.core.Locator loc)
public void close()
close
in interface org.tmapi.core.TopicMap
public org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type, org.tmapi.core.Topic... scope)
createAssociation
in interface org.tmapi.core.TopicMap
public org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type, Collection<org.tmapi.core.Topic> scope)
createAssociation
in interface org.tmapi.core.TopicMap
public org.tmapi.core.Locator createLocator(String reference)
createLocator
in interface org.tmapi.core.TopicMap
public TopicImpl createTopic()
createTopic
in interface org.tmapi.core.TopicMap
public TopicImpl createTopicByItemIdentifier(org.tmapi.core.Locator iid)
createTopicByItemIdentifier
in interface org.tmapi.core.TopicMap
public TopicImpl createTopicBySubjectIdentifier(org.tmapi.core.Locator sid)
createTopicBySubjectIdentifier
in interface org.tmapi.core.TopicMap
public TopicImpl createTopicBySubjectLocator(org.tmapi.core.Locator slo)
createTopicBySubjectLocator
in interface org.tmapi.core.TopicMap
public Set<org.tmapi.core.Association> getAssociations()
getAssociations
in interface org.tmapi.core.TopicMap
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructById(String id)
getConstructById
in interface org.tmapi.core.TopicMap
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructByItemIdentifier(org.tmapi.core.Locator iid)
getConstructByItemIdentifier
in interface org.tmapi.core.TopicMap
public <I extends org.tmapi.index.Index> I getIndex(Class<I> idx)
getIndex
in interface org.tmapi.core.TopicMap
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getParent()
getParent
in interface org.tmapi.core.Construct
getParent
in interface org.tmapi.core.TopicMap
public TopicImpl getTopicBySubjectIdentifier(org.tmapi.core.Locator sid)
getTopicBySubjectIdentifier
in interface org.tmapi.core.TopicMap
public TopicImpl getTopicBySubjectLocator(org.tmapi.core.Locator slo)
getTopicBySubjectLocator
in interface org.tmapi.core.TopicMap
public Set<org.tmapi.core.Topic> getTopics()
getTopics
in interface org.tmapi.core.TopicMap
public void mergeIn(org.tmapi.core.TopicMap tm)
mergeIn
in interface org.tmapi.core.TopicMap
public void remove()
remove
in interface org.tmapi.core.Construct
public TopicIF unwrapTopic(org.tmapi.core.Topic topic)
public AssociationImpl wrapAssociation(AssociationIF association)
public RoleImpl wrapRole(AssociationRoleIF role)
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl wrapTMObject(TMObjectIF tmobject)
public <T> Set<T> wrapSet(Collection<?> coll)
public org.tmapi.core.Occurrence wrapOccurrence(OccurrenceIF occ)
public NameImpl wrapName(TopicNameIF name)
public org.tmapi.core.Locator wrapLocator(LocatorIF loc)
public VariantImpl wrapVariant(VariantNameIF variant)
public String getId()
getId
in interface org.tmapi.core.Construct
public Set<org.tmapi.core.Locator> getItemIdentifiers()
getItemIdentifiers
in interface org.tmapi.core.Construct
public void addItemIdentifier(org.tmapi.core.Locator iid)
addItemIdentifier
in interface org.tmapi.core.Construct
public void removeItemIdentifier(org.tmapi.core.Locator iid)
removeItemIdentifier
in interface org.tmapi.core.Construct
public TopicMapImpl getTopicMap()
getTopicMap
in interface org.tmapi.core.Construct
public boolean equals(Object obj)