schmitzm.geotools.feature
Class FeatureTypeBuilderTableModel.AttributeDefinition

java.lang.Object
  extended by schmitzm.geotools.feature.FeatureTypeBuilderTableModel.AttributeDefinition
Enclosing class:
FeatureTypeBuilderTableModel

protected class FeatureTypeBuilderTableModel.AttributeDefinition
extends Object

Defines an Attribute displayed in the table. The advantage of this helper class is that it does not check the consistency of the inputs immediately on the input! This is importend richtig

Author:
Martin Schmitz (University of Bonn/Germany)

Field Summary
protected  BooleanInputOption autoValue
          Checkbox to indicate that the attribute value is generated automatically.
protected  ManualInputOption.Text defaultValue
          Manual input field for the attribute's default value.
protected  ManualInputOption.Text name
          Manual input field for the attribute name.
protected  BooleanInputOption nillable
          Checkbox for the attribute's nillable property.
protected  SelectionInputOption.Combo<Class> type
          Choice input field for the attribute type.
 
Constructor Summary
FeatureTypeBuilderTableModel.AttributeDefinition()
          Creates an empty attribute definition.
FeatureTypeBuilderTableModel.AttributeDefinition(String name, Class type, boolean nillable, boolean autoValue, Object defaultValue)
          Creates a new attribute definition.
 
Method Summary
 AttributeType createAttributeType()
          Creates an AttributeType from the definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected ManualInputOption.Text name
Manual input field for the attribute name.


type

protected SelectionInputOption.Combo<Class> type
Choice input field for the attribute type.

See Also:
FeatureTypeBuilderTableModel.ATTR_TYPES

defaultValue

protected ManualInputOption.Text defaultValue
Manual input field for the attribute's default value.


nillable

protected BooleanInputOption nillable
Checkbox for the attribute's nillable property.


autoValue

protected BooleanInputOption autoValue
Checkbox to indicate that the attribute value is generated automatically.

Constructor Detail

FeatureTypeBuilderTableModel.AttributeDefinition

public FeatureTypeBuilderTableModel.AttributeDefinition()
Creates an empty attribute definition.


FeatureTypeBuilderTableModel.AttributeDefinition

public FeatureTypeBuilderTableModel.AttributeDefinition(String name,
                                                        Class type,
                                                        boolean nillable,
                                                        boolean autoValue,
                                                        Object defaultValue)
Creates a new attribute definition. The consistency of the inputs (e.g. type and default value) is not checked before createAttributeType() is called.

Parameters:
name - name of the attribute
type - value type of the attribute
nillable - indicates whether the attribute is mandatory
defaultValue - default value for the attribute
Method Detail

createAttributeType

public AttributeType createAttributeType()
Creates an AttributeType from the definition.

Returns:
DefaultAttributeType or GeometricAttributeType