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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuilderEventHandler
public BuilderEventHandler(TopicMapBuilderIF builder,
ParseContextIF context)
startTopicItemIdentifier
public void startTopicItemIdentifier(ValueGeneratorIF locator)
- Specified by:
startTopicItemIdentifier in interface ParseEventHandlerIF
startTopicSubjectIdentifier
public void startTopicSubjectIdentifier(ValueGeneratorIF locator)
- Specified by:
startTopicSubjectIdentifier in interface ParseEventHandlerIF
startTopicSubjectLocator
public void startTopicSubjectLocator(ValueGeneratorIF locator)
- 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 thesubtype)
- 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
Copyright © 2000-2012 Ontopia.