Class TopicMapImpl
- java.lang.Object
-
- net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
-
- net.ontopia.topicmaps.impl.tmapi2.TopicMapImpl
-
- All Implemented Interfaces:
org.tmapi.core.Construct,org.tmapi.core.Reifiable,org.tmapi.core.TopicMap
public class TopicMapImpl extends ReifiableImpl implements org.tmapi.core.TopicMap
INTERNAL: OKS->TMAPI 2 object wrapper.
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicMapImpltopicMap
-
Constructor Summary
Constructors Constructor Description TopicMapImpl(TopicMapSystemIF tmsystem, TopicMapStoreIF store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItemIdentifier(org.tmapi.core.Locator iid)voidclose()org.tmapi.core.AssociationcreateAssociation(org.tmapi.core.Topic type, Collection<org.tmapi.core.Topic> scope)org.tmapi.core.AssociationcreateAssociation(org.tmapi.core.Topic type, org.tmapi.core.Topic... scope)org.tmapi.core.LocatorcreateLocator(String reference)TopicImplcreateTopic()TopicImplcreateTopicByItemIdentifier(org.tmapi.core.Locator iid)TopicImplcreateTopicBySubjectIdentifier(org.tmapi.core.Locator sid)TopicImplcreateTopicBySubjectLocator(org.tmapi.core.Locator slo)booleanequals(Object obj)Set<org.tmapi.core.Association>getAssociations()net.ontopia.topicmaps.impl.tmapi2.ConstructImplgetConstructById(String id)net.ontopia.topicmaps.impl.tmapi2.ConstructImplgetConstructByItemIdentifier(org.tmapi.core.Locator iid)protected TopicImplgetDefaultNameType()StringgetId()<I extends org.tmapi.index.Index>
IgetIndex(Class<I> idx)Set<org.tmapi.core.Locator>getItemIdentifiers()org.tmapi.core.LocatorgetLocator()net.ontopia.topicmaps.impl.tmapi2.ConstructImplgetParent()TopicImplgetTopicBySubjectIdentifier(org.tmapi.core.Locator sid)TopicImplgetTopicBySubjectLocator(org.tmapi.core.Locator slo)TopicMapImplgetTopicMap()Set<org.tmapi.core.Topic>getTopics()TopicMapIFgetWrapped()inthashCode()voidmergeIn(org.tmapi.core.TopicMap tm)voidremove()voidremoveItemIdentifier(org.tmapi.core.Locator iid)LocatorIFunwrapLocator(org.tmapi.core.Locator loc)TopicNameIFunwrapName(org.tmapi.core.Name name)TopicIFunwrapTopic(org.tmapi.core.Topic topic)VariantNameIFunwrapVariant(org.tmapi.core.Variant variant)AssociationImplwrapAssociation(AssociationIF association)org.tmapi.core.LocatorwrapLocator(LocatorIF loc)NameImplwrapName(TopicNameIF name)org.tmapi.core.OccurrencewrapOccurrence(OccurrenceIF occ)RoleImplwrapRole(AssociationRoleIF role)<T> Set<T>wrapSet(Collection<?> coll)net.ontopia.topicmaps.impl.tmapi2.ConstructImplwrapTMObject(TMObjectIF tmobject)TopicImplwrapTopic(TopicIF topic)VariantImplwrapVariant(VariantNameIF variant)-
Methods inherited from class net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
getReifier, setReifier
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
topicMap
protected TopicMapImpl topicMap
-
-
Constructor Detail
-
TopicMapImpl
public TopicMapImpl(TopicMapSystemIF tmsystem, TopicMapStoreIF store)
-
-
Method Detail
-
getDefaultNameType
protected TopicImpl getDefaultNameType()
-
getLocator
public org.tmapi.core.Locator getLocator()
- Specified by:
getLocatorin interfaceorg.tmapi.core.TopicMap
-
getWrapped
public TopicMapIF getWrapped()
-
unwrapName
public TopicNameIF unwrapName(org.tmapi.core.Name name)
-
unwrapVariant
public VariantNameIF unwrapVariant(org.tmapi.core.Variant variant)
-
unwrapLocator
public LocatorIF unwrapLocator(org.tmapi.core.Locator loc)
-
close
public void close()
- Specified by:
closein interfaceorg.tmapi.core.TopicMap
-
createAssociation
public org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type, org.tmapi.core.Topic... scope)- Specified by:
createAssociationin interfaceorg.tmapi.core.TopicMap
-
createAssociation
public org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type, Collection<org.tmapi.core.Topic> scope)- Specified by:
createAssociationin interfaceorg.tmapi.core.TopicMap
-
createLocator
public org.tmapi.core.Locator createLocator(String reference)
- Specified by:
createLocatorin interfaceorg.tmapi.core.TopicMap
-
createTopic
public TopicImpl createTopic()
- Specified by:
createTopicin interfaceorg.tmapi.core.TopicMap
-
createTopicByItemIdentifier
public TopicImpl createTopicByItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
createTopicByItemIdentifierin interfaceorg.tmapi.core.TopicMap
-
createTopicBySubjectIdentifier
public TopicImpl createTopicBySubjectIdentifier(org.tmapi.core.Locator sid)
- Specified by:
createTopicBySubjectIdentifierin interfaceorg.tmapi.core.TopicMap
-
createTopicBySubjectLocator
public TopicImpl createTopicBySubjectLocator(org.tmapi.core.Locator slo)
- Specified by:
createTopicBySubjectLocatorin interfaceorg.tmapi.core.TopicMap
-
getAssociations
public Set<org.tmapi.core.Association> getAssociations()
- Specified by:
getAssociationsin interfaceorg.tmapi.core.TopicMap
-
getConstructById
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructById(String id)
- Specified by:
getConstructByIdin interfaceorg.tmapi.core.TopicMap
-
getConstructByItemIdentifier
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructByItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
getConstructByItemIdentifierin interfaceorg.tmapi.core.TopicMap
-
getIndex
public <I extends org.tmapi.index.Index> I getIndex(Class<I> idx)
- Specified by:
getIndexin interfaceorg.tmapi.core.TopicMap
-
getParent
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getParent()
- Specified by:
getParentin interfaceorg.tmapi.core.Construct- Specified by:
getParentin interfaceorg.tmapi.core.TopicMap
-
getTopicBySubjectIdentifier
public TopicImpl getTopicBySubjectIdentifier(org.tmapi.core.Locator sid)
- Specified by:
getTopicBySubjectIdentifierin interfaceorg.tmapi.core.TopicMap
-
getTopicBySubjectLocator
public TopicImpl getTopicBySubjectLocator(org.tmapi.core.Locator slo)
- Specified by:
getTopicBySubjectLocatorin interfaceorg.tmapi.core.TopicMap
-
getTopics
public Set<org.tmapi.core.Topic> getTopics()
- Specified by:
getTopicsin interfaceorg.tmapi.core.TopicMap
-
mergeIn
public void mergeIn(org.tmapi.core.TopicMap tm)
- Specified by:
mergeInin interfaceorg.tmapi.core.TopicMap
-
remove
public void remove()
- Specified by:
removein interfaceorg.tmapi.core.Construct
-
unwrapTopic
public TopicIF unwrapTopic(org.tmapi.core.Topic topic)
-
wrapAssociation
public AssociationImpl wrapAssociation(AssociationIF association)
-
wrapRole
public RoleImpl wrapRole(AssociationRoleIF role)
-
wrapTMObject
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl wrapTMObject(TMObjectIF tmobject)
-
wrapSet
public <T> Set<T> wrapSet(Collection<?> coll)
-
wrapOccurrence
public org.tmapi.core.Occurrence wrapOccurrence(OccurrenceIF occ)
-
wrapName
public NameImpl wrapName(TopicNameIF name)
-
wrapLocator
public org.tmapi.core.Locator wrapLocator(LocatorIF loc)
-
wrapVariant
public VariantImpl wrapVariant(VariantNameIF variant)
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.tmapi.core.Construct
-
getItemIdentifiers
public Set<org.tmapi.core.Locator> getItemIdentifiers()
- Specified by:
getItemIdentifiersin interfaceorg.tmapi.core.Construct
-
addItemIdentifier
public void addItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
addItemIdentifierin interfaceorg.tmapi.core.Construct
-
removeItemIdentifier
public void removeItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
removeItemIdentifierin interfaceorg.tmapi.core.Construct
-
getTopicMap
public TopicMapImpl getTopicMap()
- Specified by:
getTopicMapin interfaceorg.tmapi.core.Construct
-
equals
public boolean equals(Object obj)
-
-