Package net.ontopia.topicmaps.utils.ctm
Class Template
- java.lang.Object
-
- net.ontopia.topicmaps.utils.ctm.Template
-
public class Template extends Object
INTERNAL: Represents a CTM template. Contains a recorded list of parse events which is replayed when the template is invoked.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvent(ParseEventIF event)ValueGeneratorIFgetGenerator(String name)StringgetName()intgetParameterCount()Set<String>getUsedParameters()Map<String,NamedWildcardTopicGenerator>getWildcardMap()voidinvoke(List arguments, ParseEventHandlerIF handler)Invokes the template.voidsetParameters(List<String> parameters)This method is only used by the tolog INSERT statement.
-
-
-
Method Detail
-
getName
public String getName()
-
getParameterCount
public int getParameterCount()
-
addEvent
public void addEvent(ParseEventIF event)
-
getGenerator
public ValueGeneratorIF getGenerator(String name)
-
getWildcardMap
public Map<String,NamedWildcardTopicGenerator> getWildcardMap()
-
invoke
public void invoke(List arguments, ParseEventHandlerIF handler)
Invokes the template.- Parameters:
arguments- a list of generator objects producing the values for the arguments, in the same order as the parameters list
-
-