org.stanwood.media.extensions
Class ParameterType

java.lang.Object
  extended by org.stanwood.media.extensions.ParameterType

public class ParameterType
extends java.lang.Object

Used to store information about parameter types


Constructor Summary
ParameterType(java.lang.String name, java.lang.Class<?> type, boolean required)
          The constructor
 
Method Summary
 java.lang.String getName()
          Used to get the name of the parameter
 java.lang.Class<?> getType()
          Used to get the type of the parameter
 boolean isRequired()
          Return true if the parameter is required
 void setName(java.lang.String name)
          Used to set the name of the parameter
 void setRequired(boolean required)
          Used to set if a parameter is required
 void setType(java.lang.Class<?> type)
          Used to get the type of the parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterType

public ParameterType(java.lang.String name,
                     java.lang.Class<?> type,
                     boolean required)
The constructor

Parameters:
name - The name of the parameter
type - The type of the parameter
required - Used to indercate if the parameter is required
Method Detail

getName

public java.lang.String getName()
Used to get the name of the parameter

Returns:
the name of the parameter

setName

public void setName(java.lang.String name)
Used to set the name of the parameter

Parameters:
name - the name of the parameter

getType

public java.lang.Class<?> getType()
Used to get the type of the parameter

Returns:
the type type of the parameter

setType

public void setType(java.lang.Class<?> type)
Used to get the type of the parameter

Parameters:
type - the type of the parameter

isRequired

public boolean isRequired()
Return true if the parameter is required

Returns:
true if the parameter is required

setRequired

public void setRequired(boolean required)
Used to set if a parameter is required

Parameters:
required - true if the parameter is required