Show TOC

AbstractDataTypeLocate this document in the navigation structure

public class AbstractDataType

Base class for different supported data types

Method

Description

Argument

Return value

dataTypes

Returns an iterator of all known DataTypes that can be handled.

()

java.util.Iterator

getInstance

Returns an instance a the specified data type.

(DataType type)

AbstractDataType

getType

Returns the instance of the data type enum class that identifies the data type.

()

DataType

isLocaleSpecific

Determines if a data type is locale specific, therefore valued need formatting before output.

()

boolean

isValid

Checks if the user input is valid for this type and returns false if it is not valid.

If the user input was invalid, method datatype.getValueAsString() can be used to return the value as string without checks.

()

Boolean

setValue

Sets the value of the data type.

(java.lang.Object v)

void

setValue

Sets the value of the data type.

(java.lang.Object v, java.util.Locale l)

void

toString

Returns the data type value represented as string.

(IPageContext pc)

java.lang.String

toString

Returns the data type value represented as string.

(java.util.Locale l)

java.lang.String