Package net.ontopia.topicmaps.utils.ctm
Class BuilderEventHandler
- java.lang.Object
-
- net.ontopia.topicmaps.utils.ctm.BuilderEventHandler
-
- All Implemented Interfaces:
ParseEventHandlerIF
public class BuilderEventHandler extends Object implements ParseEventHandlerIF
INTERNAL: The event handler which actually builds the topic map. This handler assumes that all generators actually resolve to the correct values.
-
-
Constructor Summary
Constructors Constructor Description BuilderEventHandler(TopicMapBuilderIF builder, ParseContextIF context)
-
Method Summary
-
-
-
Constructor Detail
-
BuilderEventHandler
public BuilderEventHandler(TopicMapBuilderIF builder, ParseContextIF context)
-
-
Method Detail
-
startTopicItemIdentifier
public void startTopicItemIdentifier(ValueGeneratorIF locator)
- Specified by:
startTopicItemIdentifier
in interfaceParseEventHandlerIF
-
startTopicSubjectIdentifier
public void startTopicSubjectIdentifier(ValueGeneratorIF locator)
- Specified by:
startTopicSubjectIdentifier
in interfaceParseEventHandlerIF
-
startTopicSubjectLocator
public void startTopicSubjectLocator(ValueGeneratorIF locator)
- Specified by:
startTopicSubjectLocator
in interfaceParseEventHandlerIF
-
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 interfaceParseEventHandlerIF
-
addItemIdentifier
public void addItemIdentifier(ValueGeneratorIF locator)
- Specified by:
addItemIdentifier
in interfaceParseEventHandlerIF
-
addSubjectIdentifier
public void addSubjectIdentifier(ValueGeneratorIF locator)
- Specified by:
addSubjectIdentifier
in interfaceParseEventHandlerIF
-
addSubjectLocator
public void addSubjectLocator(ValueGeneratorIF locator)
- Specified by:
addSubjectLocator
in interfaceParseEventHandlerIF
-
addTopicType
public void addTopicType(ValueGeneratorIF type)
- Specified by:
addTopicType
in interfaceParseEventHandlerIF
-
addSubtype
public void addSubtype(ValueGeneratorIF thesubtype)
- Specified by:
addSubtype
in interfaceParseEventHandlerIF
-
startName
public void startName(ValueGeneratorIF type, ValueGeneratorIF value)
- Specified by:
startName
in interfaceParseEventHandlerIF
-
addScopingTopic
public void addScopingTopic(ValueGeneratorIF topic)
- Specified by:
addScopingTopic
in interfaceParseEventHandlerIF
-
addReifier
public void addReifier(ValueGeneratorIF topic)
- Specified by:
addReifier
in interfaceParseEventHandlerIF
-
startVariant
public void startVariant(ValueGeneratorIF value)
- Specified by:
startVariant
in interfaceParseEventHandlerIF
-
endName
public void endName()
- Specified by:
endName
in interfaceParseEventHandlerIF
-
startOccurrence
public void startOccurrence(ValueGeneratorIF type, ValueGeneratorIF value)
- Specified by:
startOccurrence
in interfaceParseEventHandlerIF
-
endOccurrence
public void endOccurrence()
- Specified by:
endOccurrence
in interfaceParseEventHandlerIF
-
endTopic
public void endTopic()
- Specified by:
endTopic
in interfaceParseEventHandlerIF
-
startAssociation
public void startAssociation(ValueGeneratorIF type)
- Specified by:
startAssociation
in interfaceParseEventHandlerIF
-
addRole
public void addRole(ValueGeneratorIF type, ValueGeneratorIF player)
- Specified by:
addRole
in interfaceParseEventHandlerIF
-
endRoles
public void endRoles()
- Specified by:
endRoles
in interfaceParseEventHandlerIF
-
endAssociation
public void endAssociation()
- Specified by:
endAssociation
in interfaceParseEventHandlerIF
-
startEmbeddedTopic
public void startEmbeddedTopic()
- Specified by:
startEmbeddedTopic
in interfaceParseEventHandlerIF
-
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 interfaceParseEventHandlerIF
-
templateInvocation
public void templateInvocation(String name, List arguments)
- Specified by:
templateInvocation
in interfaceParseEventHandlerIF
-
-