org.ucmtwine.parameter.types
Class StringParameter

java.lang.Object
  extended by org.ucmtwine.parameter.Parameter
      extended by org.ucmtwine.parameter.types.StringParameter
All Implemented Interfaces:
IParameter

public class StringParameter
extends Parameter


Field Summary
 
Fields inherited from class org.ucmtwine.parameter.Parameter
GRAMMAR_ELEMENT_UNSPECIFIED, name, required, type
 
Constructor Summary
StringParameter(String name, Class<?> type)
           
 
Method Summary
 Object getBinderValue(intradoc.server.Service service)
          Get the value from the binder, checking for type compatibility and mandatory requirements.
 int getGrammarElementType()
          Returns the GrammarElement type for use in idoc script function definitions.
 
Methods inherited from class org.ucmtwine.parameter.Parameter
create, create, create, getArgumentValue, getName, getStringValue, getType, isRequired, parseRequiredString, setName, setRequired, toActionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringParameter

public StringParameter(String name,
                       Class<?> type)
Method Detail

getBinderValue

public Object getBinderValue(intradoc.server.Service service)
Description copied from class: Parameter
Get the value from the binder, checking for type compatibility and mandatory requirements.

Specified by:
getBinderValue in interface IParameter
Specified by:
getBinderValue in class Parameter
Parameters:
service - The execution context.
Returns:
A type cast value or null

getGrammarElementType

public int getGrammarElementType()
Returns the GrammarElement type for use in idoc script function definitions.

Returns:


Copyright © 2012. All Rights Reserved.