Package org.esa.snap.core.util
Class ForwardingSimpleFeature
- java.lang.Object
-
- org.esa.snap.core.util.ForwardingSimpleFeature
-
- All Implemented Interfaces:
org.opengis.feature.Attribute
,org.opengis.feature.ComplexAttribute
,org.opengis.feature.Feature
,org.opengis.feature.Property
,org.opengis.feature.simple.SimpleFeature
public class ForwardingSimpleFeature extends Object implements org.opengis.feature.simple.SimpleFeature
Reusable forwarding class delegating to aSimpleFeature
instance.
-
-
Constructor Summary
Constructors Constructor Description ForwardingSimpleFeature(org.opengis.feature.simple.SimpleFeature simpleFeature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(int i)
Object
getAttribute(String s)
Object
getAttribute(org.opengis.feature.type.Name name)
int
getAttributeCount()
List<Object>
getAttributes()
org.opengis.geometry.BoundingBox
getBounds()
Object
getDefaultGeometry()
org.opengis.feature.GeometryAttribute
getDefaultGeometryProperty()
org.opengis.feature.type.AttributeDescriptor
getDescriptor()
org.opengis.feature.simple.SimpleFeatureType
getFeatureType()
String
getID()
org.opengis.filter.identity.FeatureId
getIdentifier()
org.opengis.feature.type.Name
getName()
Collection<org.opengis.feature.Property>
getProperties()
Collection<org.opengis.feature.Property>
getProperties(String s)
Collection<org.opengis.feature.Property>
getProperties(org.opengis.feature.type.Name name)
org.opengis.feature.Property
getProperty(String s)
org.opengis.feature.Property
getProperty(org.opengis.feature.type.Name name)
org.opengis.feature.simple.SimpleFeature
getSimpleFeature()
org.opengis.feature.simple.SimpleFeatureType
getType()
Map<Object,Object>
getUserData()
Collection<? extends org.opengis.feature.Property>
getValue()
boolean
isNillable()
void
setAttribute(int i, Object o)
void
setAttribute(String s, Object o)
void
setAttribute(org.opengis.feature.type.Name name, Object o)
void
setAttributes(Object[] objects)
void
setAttributes(List<Object> objects)
void
setDefaultGeometry(Object o)
void
setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute geometryAttribute)
void
setValue(Object o)
void
setValue(Collection<org.opengis.feature.Property> properties)
void
validate()
-
-
-
Method Detail
-
getSimpleFeature
public org.opengis.feature.simple.SimpleFeature getSimpleFeature()
-
getID
public String getID()
- Specified by:
getID
in interfaceorg.opengis.feature.simple.SimpleFeature
-
getDescriptor
public org.opengis.feature.type.AttributeDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceorg.opengis.feature.Attribute
- Specified by:
getDescriptor
in interfaceorg.opengis.feature.Property
-
getName
public org.opengis.feature.type.Name getName()
- Specified by:
getName
in interfaceorg.opengis.feature.Property
-
isNillable
public boolean isNillable()
- Specified by:
isNillable
in interfaceorg.opengis.feature.Property
-
getUserData
public Map<Object,Object> getUserData()
- Specified by:
getUserData
in interfaceorg.opengis.feature.Property
-
getType
public org.opengis.feature.simple.SimpleFeatureType getType()
- Specified by:
getType
in interfaceorg.opengis.feature.Attribute
- Specified by:
getType
in interfaceorg.opengis.feature.ComplexAttribute
- Specified by:
getType
in interfaceorg.opengis.feature.Feature
- Specified by:
getType
in interfaceorg.opengis.feature.Property
- Specified by:
getType
in interfaceorg.opengis.feature.simple.SimpleFeature
-
setValue
public void setValue(Collection<org.opengis.feature.Property> properties)
- Specified by:
setValue
in interfaceorg.opengis.feature.ComplexAttribute
-
getValue
public Collection<? extends org.opengis.feature.Property> getValue()
- Specified by:
getValue
in interfaceorg.opengis.feature.ComplexAttribute
- Specified by:
getValue
in interfaceorg.opengis.feature.Property
-
setValue
public void setValue(Object o)
- Specified by:
setValue
in interfaceorg.opengis.feature.Property
-
getProperties
public Collection<org.opengis.feature.Property> getProperties(org.opengis.feature.type.Name name)
- Specified by:
getProperties
in interfaceorg.opengis.feature.ComplexAttribute
-
getProperty
public org.opengis.feature.Property getProperty(org.opengis.feature.type.Name name)
- Specified by:
getProperty
in interfaceorg.opengis.feature.ComplexAttribute
-
getProperties
public Collection<org.opengis.feature.Property> getProperties(String s)
- Specified by:
getProperties
in interfaceorg.opengis.feature.ComplexAttribute
-
getProperties
public Collection<org.opengis.feature.Property> getProperties()
- Specified by:
getProperties
in interfaceorg.opengis.feature.ComplexAttribute
-
getProperty
public org.opengis.feature.Property getProperty(String s)
- Specified by:
getProperty
in interfaceorg.opengis.feature.ComplexAttribute
-
validate
public void validate() throws org.opengis.feature.IllegalAttributeException
- Specified by:
validate
in interfaceorg.opengis.feature.Attribute
- Specified by:
validate
in interfaceorg.opengis.feature.ComplexAttribute
- Throws:
org.opengis.feature.IllegalAttributeException
-
getIdentifier
public org.opengis.filter.identity.FeatureId getIdentifier()
- Specified by:
getIdentifier
in interfaceorg.opengis.feature.Attribute
- Specified by:
getIdentifier
in interfaceorg.opengis.feature.Feature
-
getBounds
public org.opengis.geometry.BoundingBox getBounds()
- Specified by:
getBounds
in interfaceorg.opengis.feature.Feature
-
getDefaultGeometryProperty
public org.opengis.feature.GeometryAttribute getDefaultGeometryProperty()
- Specified by:
getDefaultGeometryProperty
in interfaceorg.opengis.feature.Feature
-
setDefaultGeometryProperty
public void setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute geometryAttribute)
- Specified by:
setDefaultGeometryProperty
in interfaceorg.opengis.feature.Feature
-
getFeatureType
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
- Specified by:
getFeatureType
in interfaceorg.opengis.feature.simple.SimpleFeature
-
getAttributes
public List<Object> getAttributes()
- Specified by:
getAttributes
in interfaceorg.opengis.feature.simple.SimpleFeature
-
setAttributes
public void setAttributes(List<Object> objects)
- Specified by:
setAttributes
in interfaceorg.opengis.feature.simple.SimpleFeature
-
setAttributes
public void setAttributes(Object[] objects)
- Specified by:
setAttributes
in interfaceorg.opengis.feature.simple.SimpleFeature
-
getAttribute
public Object getAttribute(String s)
- Specified by:
getAttribute
in interfaceorg.opengis.feature.simple.SimpleFeature
-
setAttribute
public void setAttribute(String s, Object o)
- Specified by:
setAttribute
in interfaceorg.opengis.feature.simple.SimpleFeature
-
getAttribute
public Object getAttribute(org.opengis.feature.type.Name name)
- Specified by:
getAttribute
in interfaceorg.opengis.feature.simple.SimpleFeature
-
setAttribute
public void setAttribute(org.opengis.feature.type.Name name, Object o)
- Specified by:
setAttribute
in interfaceorg.opengis.feature.simple.SimpleFeature
-
getAttribute
public Object getAttribute(int i) throws IndexOutOfBoundsException
- Specified by:
getAttribute
in interfaceorg.opengis.feature.simple.SimpleFeature
- Throws:
IndexOutOfBoundsException
-
setAttribute
public void setAttribute(int i, Object o) throws IndexOutOfBoundsException
- Specified by:
setAttribute
in interfaceorg.opengis.feature.simple.SimpleFeature
- Throws:
IndexOutOfBoundsException
-
getAttributeCount
public int getAttributeCount()
- Specified by:
getAttributeCount
in interfaceorg.opengis.feature.simple.SimpleFeature
-
getDefaultGeometry
public Object getDefaultGeometry()
- Specified by:
getDefaultGeometry
in interfaceorg.opengis.feature.simple.SimpleFeature
-
setDefaultGeometry
public void setDefaultGeometry(Object o)
- Specified by:
setDefaultGeometry
in interfaceorg.opengis.feature.simple.SimpleFeature
-
-