public class DefaultFeatureProvider extends Object implements FeatureProvider
FeatureProvider| Modifier and Type | Field and Description |
|---|---|
protected Geometry |
defaultGeometry |
protected Envelope |
envelope |
protected FeatureType |
featureType |
protected boolean[] |
nulls |
protected Object[] |
values |
| Constructor and Description |
|---|
DefaultFeatureProvider(FeatureType type) |
DefaultFeatureProvider(FeatureType type,
Object oid) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int i) |
Object |
get(String name) |
FeatureProvider |
getCopy() |
protected FeatureProvider |
getCopy(DefaultFeatureProvider data)
Copy values from current instance to
data |
Envelope |
getDefaultEnvelope() |
Geometry |
getDefaultGeometry() |
Object |
getOID() |
FeatureType |
getType() |
boolean |
isNew() |
boolean |
isNull(int i) |
boolean |
isNull(String name) |
boolean |
isReadOnly(int i)
Indicates whether the attributo must be assigned by the provider.
|
void |
set(int i,
Object value) |
void |
set(String name,
Object value) |
void |
setDefaultEnvelope(Envelope envelope) |
void |
setDefaultGeometry(Geometry geom) |
void |
setNew(boolean isNew) |
void |
setOID(Object oid) |
protected FeatureType featureType
protected boolean[] nulls
protected Object[] values
protected Geometry defaultGeometry
protected Envelope envelope
public DefaultFeatureProvider(FeatureType type)
public DefaultFeatureProvider(FeatureType type, Object oid)
public boolean isReadOnly(int i)
FeatureProviderisReadOnly in interface FeatureProvideri - index of the attributepublic void set(int i,
Object value)
set in interface FeatureProviderpublic void set(String name, Object value)
set in interface FeatureProviderpublic Object get(int i)
get in interface FeatureProviderpublic Object get(String name)
get in interface FeatureProviderpublic FeatureType getType()
getType in interface FeatureProviderpublic FeatureProvider getCopy()
getCopy in interface FeatureProviderprotected FeatureProvider getCopy(DefaultFeatureProvider data)
datapublic Envelope getDefaultEnvelope()
getDefaultEnvelope in interface FeatureProviderpublic Geometry getDefaultGeometry()
getDefaultGeometry in interface FeatureProviderpublic void setDefaultEnvelope(Envelope envelope)
setDefaultEnvelope in interface FeatureProviderpublic void setDefaultGeometry(Geometry geom)
setDefaultGeometry in interface FeatureProviderpublic boolean isNull(int i)
isNull in interface FeatureProviderpublic boolean isNull(String name)
isNull in interface FeatureProviderpublic Object getOID()
getOID in interface FeatureProviderpublic void setOID(Object oid)
setOID in interface FeatureProviderpublic boolean isNew()
isNew in interface FeatureProviderpublic void setNew(boolean isNew)
setNew in interface FeatureProvider