Examples of loadGroup()


Examples of org.antlr.stringtemplate.CommonGroupLoader.loadGroup()

 
  public HTMLSpeechPageWriter()
  {
    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/core/render/html/templates", this);
    m_templateGroup = loader.loadGroup("html"); //load html.stg   
  }
 
  //interface StringTemplateErrorListener
  int m_errCount;
  public void error(String msg, Throwable e)
View Full Code Here

Examples of org.antlr.stringtemplate.CommonGroupLoader.loadGroup()

 
  public VoiceXMLSpeechPageWriter()
  {
    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/core/render/voicexml/templates", this);
    m_templateGroup = loader.loadGroup("speakright"); //load speakright.stg   
  }
 
  //interface StringTemplateErrorListener
  int m_errCount;
  public void error(String msg, Throwable e)
View Full Code Here

Examples of org.antlr.stringtemplate.CommonGroupLoader.loadGroup()

 
  public String generateBaseClass(String sroName, String packageName, String xmlPath)
  {
    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/tools/srogen/templates", this);
    StringTemplateGroup group = loader.loadGroup("srogen"); //load mgen.stg   
   
    StringTemplate t = group.getInstanceOf("genclass");
    t.setAttribute("package", packageName + ".gen");
//    String sroName = "SRONumber";
    t.setAttribute("sroName", sroName);
View Full Code Here

Examples of org.antlr.stringtemplate.CommonGroupLoader.loadGroup()

 
  public String generatePromptsXML(String sroName, String xmlPath)
  {
    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/tools/srogen/templates", this);
    StringTemplateGroup group = loader.loadGroup("srogen"); //load mgen.stg   
   
    StringTemplate t = group.getInstanceOf("genxml");
    t.setAttribute("sroName", sroName);
   
    ArrayList<PromptValue> promptL = readPrompts(xmlPath);
View Full Code Here

Examples of org.antlr.stringtemplate.CommonGroupLoader.loadGroup()

//    hello.setAttribute("name", "World");
//    log(hello.toString());

    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/tools/mgen/templates", this);
    StringTemplateGroup group = loader.loadGroup("mgen"); //load mgen.stg   
   
    StringTemplate t = group.getInstanceOf("modelclass");
    t.setAttribute("package", packageName);
    t.setAttribute("className", "Model");
   
View Full Code Here

Examples of org.jbpm.identity.hibernate.IdentitySession.loadGroup()

            if (idValue instanceof Long) {
                id = ((Long)idValue).longValue();
            } else {
                id = Long.valueOf(idValue.toString()).longValue();
            }
            final Group group = identitySession.loadGroup(id);
            if (group == null) {
                context.setError("Error loading group", "No group was found with an ID of " + id);
                return;
            }
            targetExpression.setValue(elContext, group);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.