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)
FeatureProvider
isReadOnly
in interface FeatureProvider
i
- index of the attributepublic void set(int i, Object value)
set
in interface FeatureProvider
public void set(String name, Object value)
set
in interface FeatureProvider
public Object get(int i)
get
in interface FeatureProvider
public Object get(String name)
get
in interface FeatureProvider
public FeatureType getType()
getType
in interface FeatureProvider
public FeatureProvider getCopy()
getCopy
in interface FeatureProvider
protected FeatureProvider getCopy(DefaultFeatureProvider data)
data
public Envelope getDefaultEnvelope()
getDefaultEnvelope
in interface FeatureProvider
public Geometry getDefaultGeometry()
getDefaultGeometry
in interface FeatureProvider
public void setDefaultEnvelope(Envelope envelope)
setDefaultEnvelope
in interface FeatureProvider
public void setDefaultGeometry(Geometry geom)
setDefaultGeometry
in interface FeatureProvider
public boolean isNull(int i)
isNull
in interface FeatureProvider
public boolean isNull(String name)
isNull
in interface FeatureProvider
public Object getOID()
getOID
in interface FeatureProvider
public void setOID(Object oid)
setOID
in interface FeatureProvider
public boolean isNew()
isNew
in interface FeatureProvider
public void setNew(boolean isNew)
setNew
in interface FeatureProvider