net.ontopia.topicmaps.utils.ctm
Class TemplateEventHandler

java.lang.Object
  extended by net.ontopia.topicmaps.utils.ctm.TemplateEventHandler
All Implemented Interfaces:
ParseEventHandlerIF

public class TemplateEventHandler
extends java.lang.Object
implements ParseEventHandlerIF

INTERNAL: An event handler which produces a template object, containing recorded events ready to be replayed when the template is invoked.


Constructor Summary
TemplateEventHandler(java.lang.String name, java.util.List parameters, ParseEventHandlerIF real_handler)
           
 
Method Summary
 void addItemIdentifier(LiteralGeneratorIF locator)
           
 void addReifier(TopicGeneratorIF topic)
           
 void addRole(TopicGeneratorIF type, TopicGeneratorIF player)
           
 void addScopingTopic(TopicGeneratorIF topic)
           
 void addSubjectIdentifier(LiteralGeneratorIF locator)
           
 void addSubjectLocator(LiteralGeneratorIF locator)
           
 void addSubtype(TopicGeneratorIF subtype)
           
 void addTopicType(TopicGeneratorIF type)
           
 void endAssociation()
           
 TopicGeneratorIF endEmbeddedTopic()
          Returns a generator which returns the embedded topic produced by the event.
 void endName()
           
 void endOccurrence()
           
 void endRoles()
           
 void endTopic()
           
 Template getTemplate()
           
 void startAssociation(TopicGeneratorIF type)
           
 void startEmbeddedTopic()
           
 void startName(TopicGeneratorIF type, LiteralGeneratorIF value)
           
 void startOccurrence(TopicGeneratorIF type, LiteralGeneratorIF value)
           
 void startTopic(TopicGeneratorIF topicgen)
          The generator makes (or just returns) the topic when asked to.
 void startTopicItemIdentifier(LiteralGeneratorIF loc)
           
 void startTopicSubjectIdentifier(LiteralGeneratorIF loc)
           
 void startTopicSubjectLocator(LiteralGeneratorIF loc)
           
 void startVariant(LiteralGeneratorIF value)
           
 void templateInvocation(java.lang.String name, java.util.List arguments)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateEventHandler

public TemplateEventHandler(java.lang.String name,
                            java.util.List parameters,
                            ParseEventHandlerIF real_handler)
Method Detail

startTopicItemIdentifier

public void startTopicItemIdentifier(LiteralGeneratorIF loc)
Specified by:
startTopicItemIdentifier in interface ParseEventHandlerIF

startTopicSubjectIdentifier

public void startTopicSubjectIdentifier(LiteralGeneratorIF loc)
Specified by:
startTopicSubjectIdentifier in interface ParseEventHandlerIF

startTopicSubjectLocator

public void startTopicSubjectLocator(LiteralGeneratorIF loc)
Specified by:
startTopicSubjectLocator in interface ParseEventHandlerIF

startTopic

public void startTopic(TopicGeneratorIF 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(LiteralGeneratorIF locator)
Specified by:
addItemIdentifier in interface ParseEventHandlerIF

addSubjectIdentifier

public void addSubjectIdentifier(LiteralGeneratorIF locator)
Specified by:
addSubjectIdentifier in interface ParseEventHandlerIF

addSubjectLocator

public void addSubjectLocator(LiteralGeneratorIF locator)
Specified by:
addSubjectLocator in interface ParseEventHandlerIF

addTopicType

public void addTopicType(TopicGeneratorIF type)
Specified by:
addTopicType in interface ParseEventHandlerIF

addSubtype

public void addSubtype(TopicGeneratorIF subtype)
Specified by:
addSubtype in interface ParseEventHandlerIF

startName

public void startName(TopicGeneratorIF type,
                      LiteralGeneratorIF value)
Specified by:
startName in interface ParseEventHandlerIF

addScopingTopic

public void addScopingTopic(TopicGeneratorIF topic)
Specified by:
addScopingTopic in interface ParseEventHandlerIF

addReifier

public void addReifier(TopicGeneratorIF topic)
Specified by:
addReifier in interface ParseEventHandlerIF

startVariant

public void startVariant(LiteralGeneratorIF value)
Specified by:
startVariant in interface ParseEventHandlerIF

endName

public void endName()
Specified by:
endName in interface ParseEventHandlerIF

startOccurrence

public void startOccurrence(TopicGeneratorIF type,
                            LiteralGeneratorIF 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(TopicGeneratorIF type)
Specified by:
startAssociation in interface ParseEventHandlerIF

addRole

public void addRole(TopicGeneratorIF type,
                    TopicGeneratorIF 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 TopicGeneratorIF 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(java.lang.String name,
                               java.util.List arguments)
Specified by:
templateInvocation in interface ParseEventHandlerIF

getTemplate

public Template getTemplate()


Copyright © 2000-2009 Ontopia.