net.ontopia.topicmaps.utils.ctm
Class TemplateEventHandler
java.lang.Object
net.ontopia.topicmaps.utils.ctm.TemplateEventHandler
- All Implemented Interfaces:
- ParseEventHandlerIF
public class TemplateEventHandler
- extends Object
- implements ParseEventHandlerIF
INTERNAL: An event handler which produces a template object,
containing recorded events ready to be replayed when the template
is invoked.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateEventHandler
public TemplateEventHandler(String name,
List<String> parameters,
ParseEventHandlerIF real_handler)
startTopicItemIdentifier
public void startTopicItemIdentifier(ValueGeneratorIF loc)
- Specified by:
startTopicItemIdentifier in interface ParseEventHandlerIF
startTopicSubjectIdentifier
public void startTopicSubjectIdentifier(ValueGeneratorIF loc)
- Specified by:
startTopicSubjectIdentifier in interface ParseEventHandlerIF
startTopicSubjectLocator
public void startTopicSubjectLocator(ValueGeneratorIF loc)
- Specified by:
startTopicSubjectLocator in interface ParseEventHandlerIF
startTopic
public void startTopic(ValueGeneratorIF topicgen)
- Description copied from interface:
ParseEventHandlerIF
- The generator makes (or just returns) the topic when asked to.
- Specified by:
startTopic in interface ParseEventHandlerIF
addItemIdentifier
public void addItemIdentifier(ValueGeneratorIF locator)
- Specified by:
addItemIdentifier in interface ParseEventHandlerIF
addSubjectIdentifier
public void addSubjectIdentifier(ValueGeneratorIF locator)
- Specified by:
addSubjectIdentifier in interface ParseEventHandlerIF
addSubjectLocator
public void addSubjectLocator(ValueGeneratorIF locator)
- Specified by:
addSubjectLocator in interface ParseEventHandlerIF
addTopicType
public void addTopicType(ValueGeneratorIF type)
- Specified by:
addTopicType in interface ParseEventHandlerIF
addSubtype
public void addSubtype(ValueGeneratorIF subtype)
- Specified by:
addSubtype in interface ParseEventHandlerIF
startName
public void startName(ValueGeneratorIF type,
ValueGeneratorIF value)
- Specified by:
startName in interface ParseEventHandlerIF
addScopingTopic
public void addScopingTopic(ValueGeneratorIF topic)
- Specified by:
addScopingTopic in interface ParseEventHandlerIF
addReifier
public void addReifier(ValueGeneratorIF topic)
- Specified by:
addReifier in interface ParseEventHandlerIF
startVariant
public void startVariant(ValueGeneratorIF value)
- Specified by:
startVariant in interface ParseEventHandlerIF
endName
public void endName()
- Specified by:
endName in interface ParseEventHandlerIF
startOccurrence
public void startOccurrence(ValueGeneratorIF type,
ValueGeneratorIF value)
- Specified by:
startOccurrence in interface ParseEventHandlerIF
endOccurrence
public void endOccurrence()
- Specified by:
endOccurrence in interface ParseEventHandlerIF
endTopic
public void endTopic()
- Specified by:
endTopic in interface ParseEventHandlerIF
startAssociation
public void startAssociation(ValueGeneratorIF type)
- Specified by:
startAssociation in interface ParseEventHandlerIF
addRole
public void addRole(ValueGeneratorIF type,
ValueGeneratorIF player)
- Specified by:
addRole in interface ParseEventHandlerIF
endRoles
public void endRoles()
- Specified by:
endRoles in interface ParseEventHandlerIF
endAssociation
public void endAssociation()
- Specified by:
endAssociation in interface ParseEventHandlerIF
startEmbeddedTopic
public void startEmbeddedTopic()
- Specified by:
startEmbeddedTopic in interface ParseEventHandlerIF
endEmbeddedTopic
public ValueGeneratorIF endEmbeddedTopic()
- Description copied from interface:
ParseEventHandlerIF
- Returns a generator which returns the embedded topic produced by
the event.
- Specified by:
endEmbeddedTopic in interface ParseEventHandlerIF
templateInvocation
public void templateInvocation(String name,
List arguments)
- Specified by:
templateInvocation in interface ParseEventHandlerIF
getTemplate
public Template getTemplate()
Copyright © 2000-2012 Ontopia.