|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleFeatureImpl
LenientFeature
public class LenientFeature
An implementation of SimpleFeature that has a more relaxed attitude about being valid.
modules/unsupported/wfs (gt-wfs.jar)
Field Summary |
---|
Fields inherited from class SimpleFeatureImpl |
---|
attributeUserData, featureType, id, index, userData, validating, values |
Constructor Summary | |
---|---|
protected |
LenientFeature(List<Attribute> attributes,
SimpleFeatureType schema,
String featureID)
Creates a new instance of flat feature, which must take a flat feature type schema and all attributes as arguments. |
Method Summary | |
---|---|
Object |
clone()
Creates an exact copy of this feature. |
static Object |
parse(AttributeDescriptor descriptor,
Object value)
Old version of Types.parse that returns null when unhappy. |
void |
setAttribute(int position,
Object val)
Sets the attribute at position to val. |
void |
setAttributes(List<Object> attributes)
Sets all attributes for this feature, passed in as a list. |
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected LenientFeature(List<Attribute> attributes, SimpleFeatureType schema, String featureID) throws IllegalAttributeException, NullPointerException
schema
- Feature type schema for this flat feature.attributes
- Initial attributes for this feature.featureID
- The unique ID for this feature.
IllegalAttributeException
- Attribtues do not conform to feature
type schema.
NullPointerException
- if schema is null.Method Detail |
---|
public void setAttribute(int position, Object val) throws IllegalAttributeException
setAttribute
in interface SimpleFeature
setAttribute
in class SimpleFeatureImpl
position
- the index of the attribute to set.val
- the new value to give the attribute at position.
IllegalAttributeException
- if the passed in val does not validate
against the AttributeType at that position.public void setAttributes(List<Object> attributes)
setAttributes
in interface SimpleFeature
setAttributes
in class SimpleFeatureImpl
attributes
- All feature attributes.
IllegalAttributeException
- Passed attributes do not match feature
type.public Object clone()
clone
in class Object
RuntimeException
- If some contents are not cloneable.public static Object parse(AttributeDescriptor descriptor, Object value) throws IllegalArgumentException
IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |