de.topicmapslab.majortom.importer
Class MapHandler

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

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

Author:
Hannes Niederhausen

Nested Class Summary
private static class MapHandler.State
           
 
Field Summary
private  java.lang.String baseIRI
           
private  Association currentAssociation
           
private  Characteristic currentCharacteristic
           
private  Role currentRole
           
private  Variant currentVariant
           
private  long currTopicId
           
private  IHandler handler
           
private static org.slf4j.Logger logger
           
private  java.util.Stack<MapHandler.State> state
           
private  long topicMapId
           
 
Constructor Summary
MapHandler(IHandler handler, java.lang.String baseIRI)
          Constructor
 
Method Summary
 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()
           
 void itemIdentifier(java.lang.String arg0)
           
 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

topicMapId

private long topicMapId

currTopicId

private long currTopicId

baseIRI

private final java.lang.String baseIRI

currentCharacteristic

private Characteristic currentCharacteristic

currentVariant

private Variant currentVariant

currentAssociation

private Association currentAssociation

currentRole

private Role currentRole

state

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

handler

private IHandler handler
Constructor Detail

MapHandler

public MapHandler(IHandler handler,
                  java.lang.String baseIRI)
           throws com.semagia.mio.MIOException
Constructor

Throws:
java.sql.SQLException
com.semagia.mio.MIOException
Method Detail

endAssociation

public void endAssociation()
                    throws com.semagia.mio.MIOException
Specified by:
endAssociation 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

endName

public void endName()
             throws com.semagia.mio.MIOException
Specified by:
endName 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

endPlayer

public void endPlayer()
               throws com.semagia.mio.MIOException
Specified by:
endPlayer 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

endRole

public void endRole()
             throws com.semagia.mio.MIOException
Specified by:
endRole 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

endTheme

public void endTheme()
              throws com.semagia.mio.MIOException
Specified by:
endTheme 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

endTopicMap

public void endTopicMap()
                 throws com.semagia.mio.MIOException
Specified by:
endTopicMap 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

endVariant

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

startAssociation

public void startAssociation()
                      throws com.semagia.mio.MIOException
Specified by:
startAssociation 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

startName

public void startName()
               throws com.semagia.mio.MIOException
Specified by:
startName 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

startPlayer

public void startPlayer()
                 throws com.semagia.mio.MIOException
Specified by:
startPlayer 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

startRole

public void startRole()
               throws com.semagia.mio.MIOException
Specified by:
startRole 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

startTheme

public void startTheme()
                throws com.semagia.mio.MIOException
Specified by:
startTheme 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

startTopicMap

public void startTopicMap()
                   throws com.semagia.mio.MIOException
Specified by:
startTopicMap 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

startVariant

public void startVariant()
                  throws com.semagia.mio.MIOException
Specified by:
startVariant 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