org.tm4j.vtl
Class TM4JVelocityApp
java.lang.Object
org.tm4j.vtl.TM4JVelocityApp
- All Implemented Interfaces:
- org.tm4j.topicmap.utils.WalkerHandler
- public class TM4JVelocityApp
- extends java.lang.Object
- implements org.tm4j.topicmap.utils.WalkerHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_fnameExtractor
protected FileNameExtractor m_fnameExtractor
TM4JVelocityApp
public TM4JVelocityApp()
parseArguments
protected boolean parseArguments(java.lang.String[] args)
validateConfigFile
protected boolean validateConfigFile()
getFileLocator
protected org.tm4j.net.Locator getFileLocator(java.lang.String fileName)
throws java.net.MalformedURLException,
org.tm4j.net.LocatorFactoryException
- Throws:
java.net.MalformedURLException
org.tm4j.net.LocatorFactoryException
usage
protected void usage()
main
public static void main(java.lang.String[] args)
init
public void init()
throws java.lang.Exception
- Throws:
java.lang.Exception
processMap
public void processMap()
throws org.tm4j.topicmap.TopicMapProcessingException
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
createInitialContext
protected void createInitialContext()
getObjectFile
protected java.io.File getObjectFile(org.tm4j.topicmap.TopicMapObject tmo)
throws org.tm4j.topicmap.TopicMapProcessingException
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
doMerge
protected void doMerge(java.lang.String templateName,
org.tm4j.topicmap.TopicMapObject tmo)
getTopicTemplate
public java.lang.String getTopicTemplate(org.tm4j.topicmap.Topic t)
startTopicMap
public boolean startTopicMap(org.tm4j.topicmap.TopicMap tm)
- Specified by:
startTopicMap in interface org.tm4j.topicmap.utils.WalkerHandler
endTopicMap
public void endTopicMap(org.tm4j.topicmap.TopicMap tm)
- Specified by:
endTopicMap in interface org.tm4j.topicmap.utils.WalkerHandler
pushContext
protected org.apache.velocity.context.Context pushContext()
popContext
protected org.apache.velocity.context.Context popContext()
startTopic
public boolean startTopic(org.tm4j.topicmap.Topic topic)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startTopic in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
endTopic
public void endTopic(org.tm4j.topicmap.Topic topic)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
endTopic in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
onType
public void onType(org.tm4j.topicmap.Topic type)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
onType in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
onSubject
public void onSubject(org.tm4j.net.Locator subject)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
onSubject in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
onSubjectIndicator
public void onSubjectIndicator(org.tm4j.net.Locator subjectIndicator)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
onSubjectIndicator in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
startScope
public boolean startScope()
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startScope in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
endScope
public void endScope()
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
endScope in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
onTheme
public void onTheme(org.tm4j.topicmap.Topic theme)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
onTheme in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
startBaseName
public boolean startBaseName(org.tm4j.topicmap.BaseName name)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startBaseName in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
endBaseName
public void endBaseName(org.tm4j.topicmap.BaseName name)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
endBaseName in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
startVariant
public boolean startVariant(org.tm4j.topicmap.Variant var)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startVariant in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
endVariant
public void endVariant(org.tm4j.topicmap.Variant var)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
endVariant in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
onParameter
public void onParameter(org.tm4j.topicmap.Topic param)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
onParameter in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
onVariantName
public void onVariantName(org.tm4j.topicmap.VariantName varName)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
onVariantName in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
startOccurrence
public boolean startOccurrence(org.tm4j.topicmap.Occurrence occ)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startOccurrence in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
endOccurrence
public void endOccurrence(org.tm4j.topicmap.Occurrence occ)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
endOccurrence in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
startAssociation
public boolean startAssociation(org.tm4j.topicmap.Association assoc)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startAssociation in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
endAssociation
public void endAssociation(org.tm4j.topicmap.Association assoc)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
endAssociation in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
startMember
public boolean startMember(org.tm4j.topicmap.Member member)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
startMember in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
endMember
public void endMember(org.tm4j.topicmap.Member member)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
endMember in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
onRoleSpec
public void onRoleSpec(org.tm4j.topicmap.Topic roleSpec)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
onRoleSpec in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException
onPlayer
public void onPlayer(org.tm4j.topicmap.Topic player)
throws org.tm4j.topicmap.TopicMapProcessingException
- Specified by:
onPlayer in interface org.tm4j.topicmap.utils.WalkerHandler
- Throws:
org.tm4j.topicmap.TopicMapProcessingException