public class BC_AttributeTypes extends Object
Proposal: AttributeType utilities class.
| Modifier and Type | Field and Description |
|---|---|
static int |
FIELD_LENGTH_UNDEFINED |
| Constructor and Description |
|---|
BC_AttributeTypes() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getFieldLength(org.geotools.feature.AttributeType attr)
Returns the field length defined via a restrinction for an attribute type
|
static int |
getFieldLength(org.geotools.feature.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(org.geotools.filter.Filter filter)
Obtains a field length from a filter possibly containing a LengthFunction
expression
|
public static final int FIELD_LENGTH_UNDEFINED
public static int getFieldLength(org.geotools.feature.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 lengthpublic static int getFieldLength(org.geotools.feature.AttributeType attr)
Returns the field length defined via a restrinction for an attribute type
attr - das Attribut, dessen Feldlänge ermittelt werden sollpublic static int getFieldLengthFromFilter(org.geotools.filter.Filter filter)
Obtains a field length from a filter possibly containing a LengthFunction expression
filter - the given filterCopyright © 2017 BitCtrl Systems GmbH. All rights reserved.