|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.feature.simple.SimpleFeatureImpl
org.geotools.feature.LenientFeature
public class LenientFeature
An implementation of SimpleFeature that has a more relaxed attitude about being valid.
Field Summary |
---|
Fields inherited from class org.geotools.feature.simple.SimpleFeatureImpl |
---|
attributeUserData, featureType, id, index, userData, validating, values |
Constructor Summary | |
---|---|
protected |
LenientFeature(java.util.List<org.opengis.feature.Attribute> attributes,
org.opengis.feature.simple.SimpleFeatureType schema,
java.lang.String featureID)
Creates a new instance of flat feature, which must take a flat feature type schema and all attributes as arguments. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates an exact copy of this feature. |
static java.lang.Object |
parse(org.opengis.feature.type.AttributeDescriptor descriptor,
java.lang.Object value)
Old version of Types.parse that returns null when unhappy. |
void |
setAttribute(int position,
java.lang.Object val)
Sets the attribute at position to val. |
void |
setAttributes(java.util.List<java.lang.Object> attributes)
Sets all attributes for this feature, passed in as a list. |
Methods inherited from class org.geotools.feature.simple.SimpleFeatureImpl |
---|
equals, getAttribute, getAttribute, getAttribute, getAttributeCount, getAttributes, getBounds, getDefaultGeometry, getDefaultGeometryProperty, getDescriptor, getFeatureType, getID, getIdentifier, getName, getNumberOfAttributes, getProperties, getProperties, getProperties, getProperty, getProperty, getType, getUserData, getValue, hashCode, isNillable, setAttribute, setAttribute, setAttributes, setDefaultGeometry, setDefaultGeometryProperty, setValue, setValue, toString, validate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected LenientFeature(java.util.List<org.opengis.feature.Attribute> attributes, org.opengis.feature.simple.SimpleFeatureType schema, java.lang.String featureID) throws IllegalAttributeException, java.lang.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.
java.lang.NullPointerException
- if schema is null.Method Detail |
---|
public void setAttribute(int position, java.lang.Object val) throws IllegalAttributeException
setAttribute
in interface org.opengis.feature.simple.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(java.util.List<java.lang.Object> attributes)
setAttributes
in interface org.opengis.feature.simple.SimpleFeature
setAttributes
in class SimpleFeatureImpl
attributes
- All feature attributes.
IllegalAttributeException
- Passed attributes do not match feature
type.public java.lang.Object clone()
clone
in class java.lang.Object
java.lang.RuntimeException
- If some contents are not cloneable.public static java.lang.Object parse(org.opengis.feature.type.AttributeDescriptor descriptor, java.lang.Object value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |