All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.exactpro.sf.actions.ActionClassTemplate Maven / Gradle / Ivy

There is a newer version: 3.4.260
Show newest version
// Autogenerated Jamon proxy
// /srv/jenkins/workspace/Sailfish/Sailfish-3.3-pipeline@2/Core/BackEnd/Core/sailfish-core/src/main/templates/com/exactpro/sf/actions/ActionClassTemplate.jamon

package com.exactpro.sf.actions;

// 3, 1
import java.util.Collection;
// 4, 1
import com.exactpro.sf.common.messages.structures.*;

@org.jamon.annotations.Template(
  signature = "094D4D3596C7087D829C8113DE917CE2",
  requiredArguments = {
    @org.jamon.annotations.Argument(name = "packageName", type = "String"),
    @org.jamon.annotations.Argument(name = "namespaceName", type = "String"),
    @org.jamon.annotations.Argument(name = "messagePackageName", type = "String"),
    @org.jamon.annotations.Argument(name = "messages", type = "Collection"),
    @org.jamon.annotations.Argument(name = "uncheckedFields", type = "String")})
public class ActionClassTemplate
  extends org.jamon.AbstractTemplateProxy
{
  
  public ActionClassTemplate(org.jamon.TemplateManager p_manager)
  {
     super(p_manager);
  }
  
  protected ActionClassTemplate(String p_path)
  {
    super(p_path);
  }
  
  public ActionClassTemplate()
  {
     super("/com/exactpro/sf/actions/ActionClassTemplate");
  }
  
  public interface Intf
    extends org.jamon.AbstractTemplateProxy.Intf
  {
    
    void renderNoFlush(final java.io.Writer jamonWriter) throws java.io.IOException;
    
  }
  public static class ImplData
    extends org.jamon.AbstractTemplateProxy.ImplData
  {
    // 8, 3
    public void setPackageName(String packageName)
    {
      // 8, 3
      m_packageName = packageName;
    }
    public String getPackageName()
    {
      return m_packageName;
    }
    private String m_packageName;
    // 9, 3
    public void setNamespaceName(String namespaceName)
    {
      // 9, 3
      m_namespaceName = namespaceName;
    }
    public String getNamespaceName()
    {
      return m_namespaceName;
    }
    private String m_namespaceName;
    // 10, 3
    public void setMessagePackageName(String messagePackageName)
    {
      // 10, 3
      m_messagePackageName = messagePackageName;
    }
    public String getMessagePackageName()
    {
      return m_messagePackageName;
    }
    private String m_messagePackageName;
    // 11, 3
    public void setMessages(Collection messages)
    {
      // 11, 3
      m_messages = messages;
    }
    public Collection getMessages()
    {
      return m_messages;
    }
    private Collection m_messages;
    // 12, 3
    public void setUncheckedFields(String uncheckedFields)
    {
      // 12, 3
      m_uncheckedFields = uncheckedFields;
    }
    public String getUncheckedFields()
    {
      return m_uncheckedFields;
    }
    private String m_uncheckedFields;
  }
  @Override
  protected org.jamon.AbstractTemplateProxy.ImplData makeImplData()
  {
    return new ImplData();
  }
  @Override public ImplData getImplData()
  {
    return (ImplData) super.getImplData();
  }
  
  
  @Override
  public org.jamon.AbstractTemplateImpl constructImpl(Class p_class){
    try
    {
      return p_class
        .getConstructor(new Class [] { org.jamon.TemplateManager.class, ImplData.class })
        .newInstance(new Object [] { getTemplateManager(), getImplData()});
    }
    catch (RuntimeException e)
    {
      throw e;
    }
    catch (Exception e)
    {
      throw new RuntimeException(e);
    }
  }
  
  @Override
  protected org.jamon.AbstractTemplateImpl constructImpl(){
    return new ActionClassTemplateImpl(getTemplateManager(), getImplData());
  }
  public org.jamon.Renderer makeRenderer(final String packageName, final String namespaceName, final String messagePackageName, final Collection messages, final String uncheckedFields)
  {
    return new org.jamon.AbstractRenderer() {
      @Override
      public void renderTo(final java.io.Writer jamonWriter)
        throws java.io.IOException
      {
        render(jamonWriter, packageName, namespaceName, messagePackageName, messages, uncheckedFields);
      }
    };
  }
  
  public void render(final java.io.Writer jamonWriter, final String packageName, final String namespaceName, final String messagePackageName, final Collection messages, final String uncheckedFields)
    throws java.io.IOException
  {
    renderNoFlush(jamonWriter, packageName, namespaceName, messagePackageName, messages, uncheckedFields);
    jamonWriter.flush();
  }
  public void renderNoFlush(final java.io.Writer jamonWriter, final String packageName, final String namespaceName, final String messagePackageName, final Collection messages, final String uncheckedFields)
    throws java.io.IOException
  {
    ImplData implData = getImplData();
    implData.setPackageName(packageName);
    implData.setNamespaceName(namespaceName);
    implData.setMessagePackageName(messagePackageName);
    implData.setMessages(messages);
    implData.setUncheckedFields(uncheckedFields);
    Intf instance = (Intf) getTemplateManager().constructImpl(this);
    instance.renderNoFlush(jamonWriter);
    reset();
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy