net.ontopia.topicmaps.utils.ctm
Class Template

java.lang.Object
  extended by net.ontopia.topicmaps.utils.ctm.Template

public class Template
extends java.lang.Object

INTERNAL: Represents a CTM template. Contains a recorded list of parse events which is replayed when the template is invoked.


Constructor Summary
Template(java.lang.String name, java.util.List<java.lang.String> parameters)
           
 
Method Summary
 void addEvent(ParseEventIF event)
           
 ValueGeneratorIF getGenerator(java.lang.String name)
           
 java.lang.String getName()
           
 int getParameterCount()
           
 java.util.Set<java.lang.String> getUsedParameters()
           
 java.util.Map<java.lang.String,NamedWildcardTopicGenerator> getWildcardMap()
           
 void invoke(java.util.List arguments, ParseEventHandlerIF handler)
          Invokes the template.
 void setParameters(java.util.List<java.lang.String> parameters)
          This method is only used by the tolog INSERT statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Template

public Template(java.lang.String name,
                java.util.List<java.lang.String> parameters)
Method Detail

getName

public java.lang.String getName()

getParameterCount

public int getParameterCount()

getUsedParameters

public java.util.Set<java.lang.String> getUsedParameters()

addEvent

public void addEvent(ParseEventIF event)

getGenerator

public ValueGeneratorIF getGenerator(java.lang.String name)

getWildcardMap

public java.util.Map<java.lang.String,NamedWildcardTopicGenerator> getWildcardMap()

invoke

public void invoke(java.util.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(java.util.List<java.lang.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.



Copyright © 2000-2012 Ontopia.