nesstar.api
Interface Type

All Known Implementing Classes:
AType, BooleanType, CollectionType, DoubleType, FileType, FloatType, IntegerType, Method, NSMethod, ObjectType, PasswordType, RDFClass, StringType, URLType, VoidType

public interface Type

A Type, for example String or Integer, used to indicate

Created:
26 April 2002

Field Summary
static int GET_FORM
          param
static int NO_FORM
          param
static int POST_DATA_FORM
          param
static int POST_FORM
          param
 
Method Summary
 String getDefaultValue()
           
 String getFormType()
          Return the type for the HTML input form field.
 String getJavaSimpleType()
           
 String getJavaType()
           
 String getStringToTypeOp()
           
 Object getValue(NSParameter parameter, Parameters params)
          Read a value of the given type from the parameters
 int needsFormType()
           
 

Field Detail

NO_FORM

static final int NO_FORM
param

See Also:
Constant Field Values

GET_FORM

static final int GET_FORM
param

See Also:
Constant Field Values

POST_FORM

static final int POST_FORM
param

See Also:
Constant Field Values

POST_DATA_FORM

static final int POST_DATA_FORM
param

See Also:
Constant Field Values
Method Detail

getValue

Object getValue(NSParameter parameter,
                Parameters params)
                throws Exception
Read a value of the given type from the parameters

Parameters:
parameter -
params -
Returns:
an object
Throws:
Exception

getJavaType

String getJavaType()
Returns:
the name of the Java class that correspond to this type

getJavaSimpleType

String getJavaSimpleType()
Returns:
the name of the Java simple type that correspond to this type

getFormType

String getFormType()
Return the type for the HTML input form field.

Returns:
the type name

getStringToTypeOp

String getStringToTypeOp()
Returns:
the name of the operation to be applied to a String to get a value of this type or null if no convertion is needed

getDefaultValue

String getDefaultValue()
Returns:
the default value for this type

needsFormType

int needsFormType()
Returns:
the simple form type required to input this type

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved