de.topicmapslab.majortom.memory.importer
Class MapHandler

java.lang.Object
  extended by de.topicmapslab.majortom.memory.importer.MapHandler
All Implemented Interfaces:
com.semagia.mio.IMapHandler

public class MapHandler
extends java.lang.Object
implements com.semagia.mio.IMapHandler


Nested Class Summary
private static class MapHandler.State
           
 
Field Summary
private  de.topicmapslab.majortom.model.core.IConstructFactory constructFactory
           
private  de.topicmapslab.majortom.model.core.IAssociation currentAssociation
           
private  de.topicmapslab.majortom.model.core.IName currentName
           
private  de.topicmapslab.majortom.model.core.IOccurrence currentOccurrence
           
private  de.topicmapslab.majortom.model.core.ITopic currentPlayer
           
private  de.topicmapslab.majortom.model.core.IAssociationRole currentRole
           
private  java.util.Set<de.topicmapslab.majortom.model.core.ITopic> currentScope
           
private  de.topicmapslab.majortom.model.core.ITopic currentTopic
           
private  de.topicmapslab.majortom.model.core.ITopicMap currentTopicMap
           
private  de.topicmapslab.majortom.model.core.IVariant currentVariant
           
private  boolean hadEndTopicEvent
           
private static org.slf4j.Logger logger
           
private  java.util.Stack<MapHandler.State> state
           
private  InMemoryTopicMapStore store
           
 
Constructor Summary
MapHandler(InMemoryTopicMapStore store)
           
 
Method Summary
private  void clearCurrentTopic()
           
private  de.topicmapslab.majortom.model.core.ITopic createTopicByRef(com.semagia.mio.IRef ref)
           
 void endAssociation()
           
 void endIsa()
           
 void endName()
           
 void endOccurrence()
           
 void endPlayer()
           
 void endReifier()
           
 void endRole()
           
 void endScope()
           
 void endTheme()
           
 void endTopic()
           
 void endTopicMap()
           
 void endType()
           
 void endVariant()
           
private  de.topicmapslab.majortom.model.core.ITopic getCurrentTopic()
           
 void itemIdentifier(java.lang.String arg0)
           
private  void setCurrentTopic(de.topicmapslab.majortom.model.core.ITopic topic)
           
 void startAssociation()
           
 void startIsa()
           
 void startName()
           
 void startOccurrence()
           
 void startPlayer()
           
 void startReifier()
           
 void startRole()
           
 void startScope()
           
 void startTheme()
           
 void startTopic(com.semagia.mio.IRef arg0)
           
 void startTopicMap()
           
 void startType()
           
 void startVariant()
           
 void subjectIdentifier(java.lang.String arg0)
           
 void subjectLocator(java.lang.String arg0)
           
 void topicRef(com.semagia.mio.IRef arg0)
           
 void value(java.lang.String arg0)
           
 void value(java.lang.String arg0, java.lang.String arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.slf4j.Logger logger

store

private final InMemoryTopicMapStore store

currentTopicMap

private de.topicmapslab.majortom.model.core.ITopicMap currentTopicMap

currentTopic

private de.topicmapslab.majortom.model.core.ITopic currentTopic

currentAssociation

private de.topicmapslab.majortom.model.core.IAssociation currentAssociation

currentRole

private de.topicmapslab.majortom.model.core.IAssociationRole currentRole

currentPlayer

private de.topicmapslab.majortom.model.core.ITopic currentPlayer

currentName

private de.topicmapslab.majortom.model.core.IName currentName

currentOccurrence

private de.topicmapslab.majortom.model.core.IOccurrence currentOccurrence

currentVariant

private de.topicmapslab.majortom.model.core.IVariant currentVariant

currentScope

private java.util.Set<de.topicmapslab.majortom.model.core.ITopic> currentScope

constructFactory

private de.topicmapslab.majortom.model.core.IConstructFactory constructFactory

hadEndTopicEvent

private boolean hadEndTopicEvent

state

private java.util.Stack<MapHandler.State> state
Constructor Detail

MapHandler

public MapHandler(InMemoryTopicMapStore store)
Method Detail

startAssociation

public void startAssociation()
                      throws com.semagia.mio.MIOException
Specified by:
startAssociation in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endAssociation

public void endAssociation()
                    throws com.semagia.mio.MIOException
Specified by:
endAssociation in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startIsa

public void startIsa()
              throws com.semagia.mio.MIOException
Specified by:
startIsa in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endIsa

public void endIsa()
            throws com.semagia.mio.MIOException
Specified by:
endIsa in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startName

public void startName()
               throws com.semagia.mio.MIOException
Specified by:
startName in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endName

public void endName()
             throws com.semagia.mio.MIOException
Specified by:
endName in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startOccurrence

public void startOccurrence()
                     throws com.semagia.mio.MIOException
Specified by:
startOccurrence in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endOccurrence

public void endOccurrence()
                   throws com.semagia.mio.MIOException
Specified by:
endOccurrence in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startPlayer

public void startPlayer()
                 throws com.semagia.mio.MIOException
Specified by:
startPlayer in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endPlayer

public void endPlayer()
               throws com.semagia.mio.MIOException
Specified by:
endPlayer in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startReifier

public void startReifier()
                  throws com.semagia.mio.MIOException
Specified by:
startReifier in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endReifier

public void endReifier()
                throws com.semagia.mio.MIOException
Specified by:
endReifier in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startRole

public void startRole()
               throws com.semagia.mio.MIOException
Specified by:
startRole in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endRole

public void endRole()
             throws com.semagia.mio.MIOException
Specified by:
endRole in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startScope

public void startScope()
                throws com.semagia.mio.MIOException
Specified by:
startScope in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endScope

public void endScope()
              throws com.semagia.mio.MIOException
Specified by:
endScope in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startTheme

public void startTheme()
                throws com.semagia.mio.MIOException
Specified by:
startTheme in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endTheme

public void endTheme()
              throws com.semagia.mio.MIOException
Specified by:
endTheme in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startTopic

public void startTopic(com.semagia.mio.IRef arg0)
                throws com.semagia.mio.MIOException
Specified by:
startTopic in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endTopic

public void endTopic()
              throws com.semagia.mio.MIOException
Specified by:
endTopic in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startTopicMap

public void startTopicMap()
                   throws com.semagia.mio.MIOException
Specified by:
startTopicMap in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endTopicMap

public void endTopicMap()
                 throws com.semagia.mio.MIOException
Specified by:
endTopicMap in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startType

public void startType()
               throws com.semagia.mio.MIOException
Specified by:
startType in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endType

public void endType()
             throws com.semagia.mio.MIOException
Specified by:
endType in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

startVariant

public void startVariant()
                  throws com.semagia.mio.MIOException
Specified by:
startVariant in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

endVariant

public void endVariant()
                throws com.semagia.mio.MIOException
Specified by:
endVariant in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

itemIdentifier

public void itemIdentifier(java.lang.String arg0)
                    throws com.semagia.mio.MIOException
Specified by:
itemIdentifier in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

subjectIdentifier

public void subjectIdentifier(java.lang.String arg0)
                       throws com.semagia.mio.MIOException
Specified by:
subjectIdentifier in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

subjectLocator

public void subjectLocator(java.lang.String arg0)
                    throws com.semagia.mio.MIOException
Specified by:
subjectLocator in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

topicRef

public void topicRef(com.semagia.mio.IRef arg0)
              throws com.semagia.mio.MIOException
Specified by:
topicRef in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

value

public void value(java.lang.String arg0)
           throws com.semagia.mio.MIOException
Specified by:
value in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

value

public void value(java.lang.String arg0,
                  java.lang.String arg1)
           throws com.semagia.mio.MIOException
Specified by:
value in interface com.semagia.mio.IMapHandler
Throws:
com.semagia.mio.MIOException

createTopicByRef

private de.topicmapslab.majortom.model.core.ITopic createTopicByRef(com.semagia.mio.IRef ref)

getCurrentTopic

private de.topicmapslab.majortom.model.core.ITopic getCurrentTopic()

setCurrentTopic

private void setCurrentTopic(de.topicmapslab.majortom.model.core.ITopic topic)

clearCurrentTopic

private void clearCurrentTopic()