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.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getParameterCount

      public int getParameterCount()
    • getUsedParameters

      public Set<String> getUsedParameters()
    • 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
    • setParameters

      public void setParameters(List<String> parameters)
      This method is only used by the tolog INSERT statement. It is not meant to be called during normal operation. If you do, don't complain if it breaks.