|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.feature.AttributeTypeFactory
org.geotools.feature.DefaultAttributeTypeFactory
Factory for creating DefaultAttributeTypes.
| Constructor Summary | |
DefaultAttributeTypeFactory()
|
|
DefaultAttributeTypeFactory(FilterFactory factory)
|
|
| Method Summary | |
protected AttributeType |
createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
Filter filter,
java.lang.Object defaultValue,
java.lang.Object metadata)
Implementation of AttributeType creation. |
protected 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 meta-data. |
protected AttributeType |
createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength,
java.lang.Object defaultValue)
Implementation of AttributeType creation. |
protected AttributeType |
createAttributeType(java.lang.String name,
java.lang.Class clazz,
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 AttributeType |
createAttributeType(java.lang.String name,
FeatureType type,
boolean isNillable)
Creates the DefaultAttributeType.Feature |
protected Filter |
length(int fieldLength)
|
void |
setFilterFactory(FilterFactory factory)
|
| Methods inherited from class org.geotools.feature.AttributeTypeFactory |
defaultInstance, getImplementationHints, newAttributeType, newAttributeType, newAttributeType, newAttributeType, newAttributeType, newAttributeType, newAttributeType, newAttributeType, newInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultAttributeTypeFactory()
public DefaultAttributeTypeFactory(FilterFactory factory)
| Method Detail |
public void setFilterFactory(FilterFactory factory)
protected AttributeType createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength)
createAttributeType(String,Class,boolean,int,Object) with null
as the default value. To use your own default value, use the above
method, providing your default value.
createAttributeType in class AttributeTypeFactoryname - The name of the AttributeType to create.clazz - the class of the AttributeType to create.isNillable - whether the AttributeType should allow nulls.
protected AttributeType createAttributeType(java.lang.String name,
FeatureType type,
boolean isNillable)
createAttributeType in class AttributeTypeFactoryname - The name of the AttributeType to create.type - To use for validation.isNillable - whether the AttributeType should allow nulls.
protected Filter length(int fieldLength)
protected AttributeType createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength,
java.lang.Object defaultValue)
createAttributeType in class AttributeTypeFactoryname - 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.
protected AttributeType createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
Filter filter,
java.lang.Object defaultValue,
java.lang.Object metadata)
createAttributeType in class AttributeTypeFactoryname - 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.filter - Used to limit the valid values
protected AttributeType createAttributeType(java.lang.String name,
java.lang.Class clazz,
boolean isNillable,
int fieldLength,
java.lang.Object defaultValue,
java.lang.Object metaData)
AttributeTypeFactory
createAttributeType in class AttributeTypeFactoryname - The name of the AttributeType to be created.clazz - 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)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||