# Class: FieldType

## tibco.objectapi.common.datamodel.FieldType

#### new FieldType()

Defines a single data field (its name, type and an optional value). Constructs a new FieldType.

The following features are supported:

- `Simple Spec`
- `Complex Spec`
- `Array`
- `Name`
- `Optional`
- `Type`

### Members

#### array :boolean

Indicates whether this parameter contains an array of values (default is false). This property holds the value of the 'Array' attribute.

##### Type:

- boolean

#### complexSpec :tibco.objectapi.common.datamodel.ComplexSpecType

Value of the data field as a complex type. This property holds the value of the 'Complex Spec' containment reference.

##### Type:

- tibco.objectapi.common.datamodel.ComplexSpecType

#### name :string

Name of the data field. This property holds the value of the 'Name' attribute.

##### Type:

- string

#### optional :boolean

Boolean value that defines whether the parameter is optional (default is false). This property holds the value of the 'Optional' attribute.

##### Type:

- boolean

#### simpleSpec :tibco.objectapi.common.datamodel.SimpleSpecType

Value of the data field as a simple type. This property holds the value of the 'Simple Spec' containment reference.

##### Type:

- tibco.objectapi.common.datamodel.SimpleSpecType

#### type :tibco.objectapi.common.datamodel.TypeType

Type of the data field (e.g. string, integer etc.). This property holds the value of the 'Type' attribute.

##### Type:

- tibco.objectapi.common.datamodel.TypeType