|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.AttributeTypes
Proposal: AttributeType utilities class.
Field Summary | |
static int |
FIELD_LENGTH_UNDEFINED
|
Constructor Summary | |
AttributeTypes()
|
Method Summary | |
static int |
getFieldLength(AttributeType attr)
Returns the field length defined via a restrinction for an attribute type |
static int |
getFieldLength(AttributeType attr,
int defaultLength)
Returns the field length defined via a restrinction for an attribute type This should be considered the maximum allowed length for the given attribute, which means: the max number of chars in a string the maximum precision for a float no meaning for Integer, Boolean, Date? |
static int |
getFieldLengthFromFilter(Filter filter)
Obtains a field length from a filter possibly containing a LengthFunction expression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FIELD_LENGTH_UNDEFINED
Constructor Detail |
public AttributeTypes()
Method Detail |
public static int getFieldLength(AttributeType attr, int defaultLength)
Returns the field length defined via a restrinction for an attribute type
This should be considered the maximum allowed length for the given attribute, which means:
attr
- The attribute typedefaultLength
- The default field length
public static int getFieldLength(AttributeType attr)
Returns the field length defined via a restrinction for an attribute type
attr
-
public static int getFieldLengthFromFilter(Filter filter)
Obtains a field length from a filter possibly containing a LengthFunction expression
filter
- the given filter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |