|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.AttributeTypeFactory
Abstract class for AttributeType factories. Extending classes need only implement createAttributeType
Constructor Summary | |
AttributeTypeFactory()
|
Method Summary | |
protected abstract AttributeType |
createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
Filter restriction,
java.lang.Object defaultValue,
java.lang.Object metadata)
Create an AttributeType with the given name, Class, nillability, fieldLength, and provided defaultValue. |
protected abstract AttributeType |
createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength)
Create an AttributeType with the given name, Class, nillability, and fieldLength, defering the defaultValue to the type of Attribute. |
protected abstract AttributeType |
createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength,
java.lang.Object defaultValue)
Create an AttributeType with the given name, Class, nillability, fieldLength, and provided defaultValue. |
protected abstract AttributeType |
createAttributeType(java.lang.String name,
java.lang.Class type,
boolean isNillable,
int fieldLength,
java.lang.Object defaultValue,
java.lang.Object metaData)
Create a Feature AttributeType which holds the a Feature instance which is of the given FeatureType or null if any arbitrary Feature can be held. |
protected abstract AttributeType |
createAttributeType(java.lang.String name,
FeatureType type,
boolean isNillable)
Create a Feature AttributeType which holds the a Feature instance which is of the given FeatureType or null if any arbitrary Feature can be held. |
static AttributeTypeFactory |
defaultInstance()
Returns the default attribute factory for the system - constucting a new one if this is first time the method has been called. |
java.util.Map |
getImplementationHints()
Returns the implementation hints. |
static AttributeType |
newAttributeType(java.lang.String name,
java.lang.Class clazz)
Convenience method to just specify name and class. |
static AttributeType |
newAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable)
Creates a new AttributeType with the given name, class and nillable values. |
static AttributeType |
newAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
Filter restriction,
java.lang.Object defaultValue,
java.lang.Object metaData)
|
static AttributeType |
newAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength)
Creates a new AttributeType with the given name, class and nillable values. |
static AttributeType |
newAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength,
java.lang.Object defaultValue)
Creates a new AttributeType with the given name, class and nillable values. |
static AttributeType |
newAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength,
java.lang.Object defaultValue,
java.lang.Object metaData)
Creates a new AttributeType with the addition of MetaData. |
static AttributeType |
newAttributeType(java.lang.String name,
FeatureType type)
Constucts a new AttributeType that accepts Feature (specified by a FeatureType). |
static AttributeType |
newAttributeType(java.lang.String name,
FeatureType type,
boolean isNillable)
Constucts a new AttributeType that accepts Features (specified by a FeatureType) |
static AttributeTypeFactory |
newInstance()
Returns a new instance of the current AttributeTypeFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttributeTypeFactory()
Method Detail |
public static AttributeTypeFactory defaultInstance()
public static AttributeTypeFactory newInstance()
public static AttributeType newAttributeType(java.lang.String name, java.lang.Class clazz, boolean isNillable, int fieldLength, java.lang.Object defaultValue)
name
- The name of the AttributeType to be created.clazz
- The class that objects will validate against.isNillable
- if nulls are allowed in the new type.
public static AttributeType newAttributeType(java.lang.String name, java.lang.Class clazz, boolean isNillable, int fieldLength, java.lang.Object defaultValue, java.lang.Object metaData)
Currently MetaData is used to supply the CoordinateSequence when making a GeometryAttributeType.
name
- clazz
- isNillable
- fieldLength
- defaultValue
- metaData
-
public static AttributeType newAttributeType(java.lang.String name, java.lang.Class clazz, boolean isNillable, Filter restriction, java.lang.Object defaultValue, java.lang.Object metaData)
public static AttributeType newAttributeType(java.lang.String name, java.lang.Class clazz, boolean isNillable, int fieldLength)
name
- The name of the AttributeType to be created.clazz
- The class that objects will validate against.isNillable
- if nulls are allowed in the new type.
public static AttributeType newAttributeType(java.lang.String name, java.lang.Class clazz, boolean isNillable)
name
- The name of the AttributeType to be created.clazz
- The class that objects will validate against.isNillable
- if nulls are allowed in the new type.
public static AttributeType newAttributeType(java.lang.String name, java.lang.Class clazz)
true
).
name
- The name of the AttributeType to be created.clazz
- The class that objects will validate against.
public static AttributeType newAttributeType(java.lang.String name, FeatureType type, boolean isNillable)
name
- The name of the AttributeType to be created.type
- the FeatureType that features will validate agistisNillable
- true iff nulls are allowed.
public static AttributeType newAttributeType(java.lang.String name, FeatureType type)
true
).
name
- The name of the AttributeType to be created.type
- the FeatureType that features will validate agist
protected abstract AttributeType createAttributeType(java.lang.String name, java.lang.Class clazz, boolean isNillable, int fieldLength, java.lang.Object defaultValue)
name
- The name of the AttributeType to be created.clazz
- The class that objects will validate against.isNillable
- if nulls are allowed in the new type.
java.lang.IllegalArgumentException
- If the field is not nillable, yetprotected abstract AttributeType createAttributeType(java.lang.String name, java.lang.Class clazz, boolean isNillable, Filter restriction, java.lang.Object defaultValue, java.lang.Object metadata)
name
- The name of the AttributeType to be created.clazz
- The class that objects will validate against.isNillable
- if nulls are allowed in the new type.restriction
- Used to limit the valid values
java.lang.IllegalArgumentException
- If the field is not nillable, yetprotected abstract AttributeType createAttributeType(java.lang.String name, java.lang.Class clazz, boolean isNillable, int fieldLength)
protected abstract AttributeType createAttributeType(java.lang.String name, FeatureType type, boolean isNillable)
name
- The name of the AttributeType to be created.type
- The FeatureType that Features will validate against.isNillable
- if nulls are allowed in the new type.
protected abstract AttributeType createAttributeType(java.lang.String name, java.lang.Class type, boolean isNillable, int fieldLength, java.lang.Object defaultValue, java.lang.Object metaData)
name
- The name of the AttributeType to be created.type
- The FeatureType that Features will validate against.isNillable
- if nulls are allowed in the new type.defaultValue
- default value, may be null if isNilable is truemetaData
- metadata for attribute type (such as CoordianteReferenceSystem)
public java.util.Map getImplementationHints()
getImplementationHints
in interface Factory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |