net.ontopia.topicmaps.impl.tmapi2
Class TopicMapImpl

java.lang.Object
  extended by net.ontopia.topicmaps.impl.tmapi2.ReifiableImpl
      extended by 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
protected  TopicMapImpl topicMap
           
 
Constructor Summary
TopicMapImpl(TopicMapSystemIF tmsystem, TopicMapStoreIF store)
           
 
Method Summary
 void addItemIdentifier(org.tmapi.core.Locator iid)
           
 void close()
           
 org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type, java.util.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(java.lang.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(java.lang.Object obj)
           
 java.util.Set<org.tmapi.core.Association> getAssociations()
           
 net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructById(java.lang.String id)
           
 net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructByItemIdentifier(org.tmapi.core.Locator iid)
           
 java.lang.String getId()
           
<I extends org.tmapi.index.Index>
I
getIndex(java.lang.Class<I> idx)
           
 java.util.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()
           
 java.util.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> java.util.Set<T>
wrapSet(java.util.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
 
Methods inherited from interface org.tmapi.core.Reifiable
getReifier, setReifier
 
Methods inherited from interface org.tmapi.core.Construct
addItemIdentifier, equals, getId, getItemIdentifiers, getTopicMap, hashCode, removeItemIdentifier
 

Field Detail

topicMap

protected TopicMapImpl topicMap
Constructor Detail

TopicMapImpl

public TopicMapImpl(TopicMapSystemIF tmsystem,
                    TopicMapStoreIF store)
Method Detail

getLocator

public org.tmapi.core.Locator getLocator()
Specified by:
getLocator in interface org.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 interface org.tmapi.core.TopicMap

createAssociation

public org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type,
                                                    org.tmapi.core.Topic... scope)
Specified by:
createAssociation in interface org.tmapi.core.TopicMap

createAssociation

public org.tmapi.core.Association createAssociation(org.tmapi.core.Topic type,
                                                    java.util.Collection<org.tmapi.core.Topic> scope)
Specified by:
createAssociation in interface org.tmapi.core.TopicMap

createLocator

public org.tmapi.core.Locator createLocator(java.lang.String reference)
Specified by:
createLocator in interface org.tmapi.core.TopicMap

createTopic

public TopicImpl createTopic()
Specified by:
createTopic in interface org.tmapi.core.TopicMap

createTopicByItemIdentifier

public TopicImpl createTopicByItemIdentifier(org.tmapi.core.Locator iid)
Specified by:
createTopicByItemIdentifier in interface org.tmapi.core.TopicMap

createTopicBySubjectIdentifier

public TopicImpl createTopicBySubjectIdentifier(org.tmapi.core.Locator sid)
Specified by:
createTopicBySubjectIdentifier in interface org.tmapi.core.TopicMap

createTopicBySubjectLocator

public TopicImpl createTopicBySubjectLocator(org.tmapi.core.Locator slo)
Specified by:
createTopicBySubjectLocator in interface org.tmapi.core.TopicMap

getAssociations

public java.util.Set<org.tmapi.core.Association> getAssociations()
Specified by:
getAssociations in interface org.tmapi.core.TopicMap

getConstructById

public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructById(java.lang.String id)
Specified by:
getConstructById in interface org.tmapi.core.TopicMap

getConstructByItemIdentifier

public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getConstructByItemIdentifier(org.tmapi.core.Locator iid)
Specified by:
getConstructByItemIdentifier in interface org.tmapi.core.TopicMap

getIndex

public <I extends org.tmapi.index.Index> I getIndex(java.lang.Class<I> idx)
Specified by:
getIndex in interface org.tmapi.core.TopicMap

getParent

public net.ontopia.topicmaps.impl.tmapi2.ConstructImpl getParent()
Specified by:
getParent in interface org.tmapi.core.Construct
Specified by:
getParent in interface org.tmapi.core.TopicMap

getTopicBySubjectIdentifier

public TopicImpl getTopicBySubjectIdentifier(org.tmapi.core.Locator sid)
Specified by:
getTopicBySubjectIdentifier in interface org.tmapi.core.TopicMap

getTopicBySubjectLocator

public TopicImpl getTopicBySubjectLocator(org.tmapi.core.Locator slo)
Specified by:
getTopicBySubjectLocator in interface org.tmapi.core.TopicMap

getTopics

public java.util.Set<org.tmapi.core.Topic> getTopics()
Specified by:
getTopics in interface org.tmapi.core.TopicMap

mergeIn

public void mergeIn(org.tmapi.core.TopicMap tm)
Specified by:
mergeIn in interface org.tmapi.core.TopicMap

remove

public void remove()
Specified by:
remove in interface org.tmapi.core.Construct

wrapTopic

public TopicImpl wrapTopic(TopicIF topic)

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> java.util.Set<T> wrapSet(java.util.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 java.lang.String getId()
Specified by:
getId in interface org.tmapi.core.Construct

getItemIdentifiers

public java.util.Set<org.tmapi.core.Locator> getItemIdentifiers()
Specified by:
getItemIdentifiers in interface org.tmapi.core.Construct

addItemIdentifier

public void addItemIdentifier(org.tmapi.core.Locator iid)
Specified by:
addItemIdentifier in interface org.tmapi.core.Construct

removeItemIdentifier

public void removeItemIdentifier(org.tmapi.core.Locator iid)
Specified by:
removeItemIdentifier in interface org.tmapi.core.Construct

getTopicMap

public TopicMapImpl getTopicMap()
Specified by:
getTopicMap in interface org.tmapi.core.Construct

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface org.tmapi.core.Construct
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface org.tmapi.core.Construct
Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2012 Ontopia.