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:
startTopicItemIdentifierin interfaceParseEventHandlerIF
-
startTopicSubjectIdentifier
public void startTopicSubjectIdentifier(ValueGeneratorIF locator)
- Specified by:
startTopicSubjectIdentifierin interfaceParseEventHandlerIF
-
startTopicSubjectLocator
public void startTopicSubjectLocator(ValueGeneratorIF locator)
- Specified by:
startTopicSubjectLocatorin interfaceParseEventHandlerIF
-
startTopic
public void startTopic(ValueGeneratorIF topicgen)
Description copied from interface:ParseEventHandlerIFThe generator makes (or just returns) the topic when asked to.- Specified by:
startTopicin interfaceParseEventHandlerIF
-
addItemIdentifier
public void addItemIdentifier(ValueGeneratorIF locator)
- Specified by:
addItemIdentifierin interfaceParseEventHandlerIF
-
addSubjectIdentifier
public void addSubjectIdentifier(ValueGeneratorIF locator)
- Specified by:
addSubjectIdentifierin interfaceParseEventHandlerIF
-
addSubjectLocator
public void addSubjectLocator(ValueGeneratorIF locator)
- Specified by:
addSubjectLocatorin interfaceParseEventHandlerIF
-
addTopicType
public void addTopicType(ValueGeneratorIF type)
- Specified by:
addTopicTypein interfaceParseEventHandlerIF
-
addSubtype
public void addSubtype(ValueGeneratorIF thesubtype)
- Specified by:
addSubtypein interfaceParseEventHandlerIF
-
startName
public void startName(ValueGeneratorIF type, ValueGeneratorIF value)
- Specified by:
startNamein interfaceParseEventHandlerIF
-
addScopingTopic
public void addScopingTopic(ValueGeneratorIF topic)
- Specified by:
addScopingTopicin interfaceParseEventHandlerIF
-
addReifier
public void addReifier(ValueGeneratorIF topic)
- Specified by:
addReifierin interfaceParseEventHandlerIF
-
startVariant
public void startVariant(ValueGeneratorIF value)
- Specified by:
startVariantin interfaceParseEventHandlerIF
-
endName
public void endName()
- Specified by:
endNamein interfaceParseEventHandlerIF
-
startOccurrence
public void startOccurrence(ValueGeneratorIF type, ValueGeneratorIF value)
- Specified by:
startOccurrencein interfaceParseEventHandlerIF
-
endOccurrence
public void endOccurrence()
- Specified by:
endOccurrencein interfaceParseEventHandlerIF
-
endTopic
public void endTopic()
- Specified by:
endTopicin interfaceParseEventHandlerIF
-
startAssociation
public void startAssociation(ValueGeneratorIF type)
- Specified by:
startAssociationin interfaceParseEventHandlerIF
-
addRole
public void addRole(ValueGeneratorIF type, ValueGeneratorIF player)
- Specified by:
addRolein interfaceParseEventHandlerIF
-
endRoles
public void endRoles()
- Specified by:
endRolesin interfaceParseEventHandlerIF
-
endAssociation
public void endAssociation()
- Specified by:
endAssociationin interfaceParseEventHandlerIF
-
startEmbeddedTopic
public void startEmbeddedTopic()
- Specified by:
startEmbeddedTopicin interfaceParseEventHandlerIF
-
endEmbeddedTopic
public ValueGeneratorIF endEmbeddedTopic()
Description copied from interface:ParseEventHandlerIFReturns a generator which returns the embedded topic produced by the event.- Specified by:
endEmbeddedTopicin interfaceParseEventHandlerIF
-
templateInvocation
public void templateInvocation(String name, List arguments)
- Specified by:
templateInvocationin interfaceParseEventHandlerIF
-
-