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 TopicMapImpl
topicMap
-
Constructor Summary
Constructors Constructor Description TopicMapImpl(TopicMapSystemIF tmsystem, TopicMapStoreIF store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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>
IgetIndex(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)
-
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:
getLocator
in 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:
close
in interfaceorg.tmapi.core.TopicMap
-
createAssociation
public org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type, org.tmapi.core.Topic... scope)
- Specified by:
createAssociation
in interfaceorg.tmapi.core.TopicMap
-
createAssociation
public org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type, Collection<org.tmapi.core.Topic> scope)
- Specified by:
createAssociation
in interfaceorg.tmapi.core.TopicMap
-
createLocator
public org.tmapi.core.Locator createLocator(String reference)
- Specified by:
createLocator
in interfaceorg.tmapi.core.TopicMap
-
createTopic
public TopicImpl createTopic()
- Specified by:
createTopic
in interfaceorg.tmapi.core.TopicMap
-
createTopicByItemIdentifier
public TopicImpl createTopicByItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
createTopicByItemIdentifier
in interfaceorg.tmapi.core.TopicMap
-
createTopicBySubjectIdentifier
public TopicImpl createTopicBySubjectIdentifier(org.tmapi.core.Locator sid)
- Specified by:
createTopicBySubjectIdentifier
in interfaceorg.tmapi.core.TopicMap
-
createTopicBySubjectLocator
public TopicImpl createTopicBySubjectLocator(org.tmapi.core.Locator slo)
- Specified by:
createTopicBySubjectLocator
in interfaceorg.tmapi.core.TopicMap
-
getAssociations
public Set<org.tmapi.core.Association> getAssociations()
- Specified by:
getAssociations
in interfaceorg.tmapi.core.TopicMap
-
getConstructById
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructById(String id)
- Specified by:
getConstructById
in interfaceorg.tmapi.core.TopicMap
-
getConstructByItemIdentifier
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructByItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
getConstructByItemIdentifier
in interfaceorg.tmapi.core.TopicMap
-
getIndex
public <I extends org.tmapi.index.Index> I getIndex(Class<I> idx)
- Specified by:
getIndex
in interfaceorg.tmapi.core.TopicMap
-
getParent
public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getParent()
- Specified by:
getParent
in interfaceorg.tmapi.core.Construct
- Specified by:
getParent
in interfaceorg.tmapi.core.TopicMap
-
getTopicBySubjectIdentifier
public TopicImpl getTopicBySubjectIdentifier(org.tmapi.core.Locator sid)
- Specified by:
getTopicBySubjectIdentifier
in interfaceorg.tmapi.core.TopicMap
-
getTopicBySubjectLocator
public TopicImpl getTopicBySubjectLocator(org.tmapi.core.Locator slo)
- Specified by:
getTopicBySubjectLocator
in interfaceorg.tmapi.core.TopicMap
-
getTopics
public Set<org.tmapi.core.Topic> getTopics()
- Specified by:
getTopics
in interfaceorg.tmapi.core.TopicMap
-
mergeIn
public void mergeIn(org.tmapi.core.TopicMap tm)
- Specified by:
mergeIn
in interfaceorg.tmapi.core.TopicMap
-
remove
public void remove()
- Specified by:
remove
in 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:
getId
in interfaceorg.tmapi.core.Construct
-
getItemIdentifiers
public Set<org.tmapi.core.Locator> getItemIdentifiers()
- Specified by:
getItemIdentifiers
in interfaceorg.tmapi.core.Construct
-
addItemIdentifier
public void addItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
addItemIdentifier
in interfaceorg.tmapi.core.Construct
-
removeItemIdentifier
public void removeItemIdentifier(org.tmapi.core.Locator iid)
- Specified by:
removeItemIdentifier
in interfaceorg.tmapi.core.Construct
-
getTopicMap
public TopicMapImpl getTopicMap()
- Specified by:
getTopicMap
in interfaceorg.tmapi.core.Construct
-
equals
public boolean equals(Object obj)
-
-