JTR 5.0 API Documentation

jtr.config.script
Class Input

java.lang.Object
  extended by jtr.config.script.Input
All Implemented Interfaces:
java.io.Serializable

public class Input
extends java.lang.Object
implements java.io.Serializable

Class that maps the input element of the jtr.xml configuration file. See the jtr.xsd grammar for more information. Every input element is the rapresentation of a p-script formal-parameter.
A p-script's formal parameter description contains:

  • the parameter's unique name (unique in the Inputs containing instance)
  • the parameter's type
  • The type is given by the String-representation of one of the valid enumeration constants given by Input.Type enum.

    Since:
    5.0
    Version:
    5.0
    Author:
    frusso
    See Also:
    Serialized Form

    Nested Class Summary
    static class Input.Type
              Enumeration of constants defining the recognized parameter types.
     
    Constructor Summary
    Input()
               
     
    Method Summary
     java.lang.String getName()
              Get the unique name.
     java.lang.String getType()
              Get the type.
     Input.Type getTypeEnum()
              Get the type as a Input.Type enum instance.
     void setName(java.lang.String name)
              Set the unique name.
     void setType(java.lang.String type)
              Set the type.
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    Input

    public Input()
    Method Detail

    setName

    public void setName(java.lang.String name)
    Set the unique name.

    Parameters:
    name -

    setType

    public void setType(java.lang.String type)
    Set the type.

    Parameters:
    type -

    getName

    public java.lang.String getName()
    Get the unique name.

    Returns:

    getType

    public java.lang.String getType()
    Get the type.

    Returns:

    getTypeEnum

    public Input.Type getTypeEnum()
    Get the type as a Input.Type enum instance.

    Returns:

    The JTR Project is licensed under GPL version 2