|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAttributeTypeFactory
DefaultAttributeTypeFactory
public class DefaultAttributeTypeFactory
Factory for creating DefaultAttributeTypes.
modules/library/legacy (gt-legacy.jar)
Constructor Summary | |
---|---|
DefaultAttributeTypeFactory()
|
|
DefaultAttributeTypeFactory(FilterFactory factory)
|
Method Summary | |
---|---|
protected AttributeType |
createAttributeType(String name,
Class clazz,
boolean isNillable,
Filter filter,
Object defaultValue,
Object metadata)
Implementation of AttributeType creation. |
protected AttributeType |
createAttributeType(String name,
Class clazz,
boolean isNillable,
Filter filter,
Object defaultValue,
Object metadata,
int min,
int max)
Create an AttributeType with the given name, Class, nillability, fieldLength, and provided defaultValue. |
protected AttributeType |
createAttributeType(String name,
Class clazz,
boolean isNillable,
int fieldLength)
Create an AttributeType with the given name, Class, nillability, and fieldLength meta-data. |
protected AttributeType |
createAttributeType(String name,
Class clazz,
boolean isNillable,
int fieldLength,
Object defaultValue)
Implementation of AttributeType creation. |
protected AttributeType |
createAttributeType(String name,
Class clazz,
boolean isNillable,
int fieldLength,
Object defaultValue,
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(String name,
FeatureType type,
boolean isNillable)
Creates the DefaultAttributeType.Feature |
protected Filter |
length(int fieldLength,
String attributeXPath)
|
void |
setFilterFactory(FilterFactory factory)
|
Methods inherited from class 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(String name, 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 AttributeTypeFactory
name
- 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(String name, FeatureType type, boolean isNillable)
createAttributeType
in class AttributeTypeFactory
name
- The name of the AttributeType to create.type
- To use for validation.isNillable
- whether the AttributeType should allow nulls.
protected Filter length(int fieldLength, String attributeXPath)
protected AttributeType createAttributeType(String name, Class clazz, boolean isNillable, int fieldLength, Object defaultValue)
createAttributeType
in class AttributeTypeFactory
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.
protected AttributeType createAttributeType(String name, Class clazz, boolean isNillable, Filter filter, Object defaultValue, Object metadata)
createAttributeType
in class AttributeTypeFactory
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.filter
- Used to limit the valid values
protected AttributeType createAttributeType(String name, Class clazz, boolean isNillable, Filter filter, Object defaultValue, Object metadata, int min, int max)
AttributeTypeFactory
createAttributeType
in class AttributeTypeFactory
name
- The name of the AttributeType to be created.isNillable
- if nulls are allowed in the new type.filter
- Used to limit the valid valuesmin
- the minimum number of occurences of the attributemax
- the maximum number of occurences of the attribute
protected AttributeType createAttributeType(String name, Class clazz, boolean isNillable, int fieldLength, Object defaultValue, Object metaData)
AttributeTypeFactory
createAttributeType
in class AttributeTypeFactory
name
- 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 |