public class DefaultFeatureProvider extends java.lang.Object implements FeatureProvider
FeatureProvider
Modifier and Type | Field and Description |
---|---|
protected boolean |
broken |
protected Geometry |
defaultGeometry |
protected Envelope |
envelope |
protected FeatureType |
featureType |
protected boolean[] |
nulls |
protected java.lang.Object[] |
values |
Constructor and Description |
---|
DefaultFeatureProvider(FeatureType type) |
DefaultFeatureProvider(FeatureType type,
DefaultFeatureProvider data) |
DefaultFeatureProvider(FeatureType type,
java.lang.Object oid) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(int i) |
java.lang.Object |
get(java.lang.String name) |
FeatureProvider |
getCopy() |
protected FeatureProvider |
getCopy(DefaultFeatureProvider data)
Copy values from current instance to
data |
Envelope |
getDefaultEnvelope() |
Geometry |
getDefaultGeometry() |
Time |
getDefaultTime() |
java.lang.Object |
getExtraValue(int index) |
java.lang.Object |
getExtraValue(java.lang.String name) |
java.lang.Object |
getOID() |
FeatureType |
getType() |
boolean |
hasExtraValue(java.lang.String name) |
boolean |
isBroken() |
boolean |
isNew() |
boolean |
isNull(int i) |
boolean |
isNull(java.lang.String name) |
boolean |
isReadOnly(int i)
Indicates whether the attributo must be assigned by the provider.
|
void |
set(int i,
java.lang.Object value) |
void |
set(java.lang.String name,
java.lang.Object value) |
void |
setDefaultEnvelope(Envelope envelope) |
void |
setDefaultGeometry(Geometry geom) |
void |
setDefaultTime(Time time) |
void |
setExtraValue(int index,
java.lang.Object value) |
void |
setExtraValueNames(java.lang.String[] extraValueNames) |
void |
setNew(boolean isNew) |
void |
setOID(java.lang.Object oid) |
protected FeatureType featureType
protected boolean[] nulls
protected java.lang.Object[] values
protected Geometry defaultGeometry
protected Envelope envelope
protected boolean broken
public DefaultFeatureProvider(FeatureType type)
public DefaultFeatureProvider(FeatureType type, java.lang.Object oid)
public DefaultFeatureProvider(FeatureType type, DefaultFeatureProvider data)
public boolean isReadOnly(int i)
FeatureProvider
isReadOnly
in interface FeatureProvider
i
- index of the attributepublic void set(int i, java.lang.Object value)
set
in interface FeatureProvider
public void set(java.lang.String name, java.lang.Object value)
set
in interface FeatureProvider
public java.lang.Object get(int i)
get
in interface FeatureProvider
public java.lang.Object get(java.lang.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 Time getDefaultTime()
getDefaultTime
in interface FeatureProvider
public void setDefaultEnvelope(Envelope envelope)
setDefaultEnvelope
in interface FeatureProvider
public void setDefaultGeometry(Geometry geom)
setDefaultGeometry
in interface FeatureProvider
public void setDefaultTime(Time time)
setDefaultTime
in interface FeatureProvider
public boolean isNull(int i)
isNull
in interface FeatureProvider
public boolean isNull(java.lang.String name)
isNull
in interface FeatureProvider
public java.lang.Object getOID()
getOID
in interface FeatureProvider
public void setOID(java.lang.Object oid)
setOID
in interface FeatureProvider
public boolean isNew()
isNew
in interface FeatureProvider
public void setNew(boolean isNew)
setNew
in interface FeatureProvider
public void setExtraValue(int index, java.lang.Object value)
setExtraValue
in interface FeatureProvider
public java.lang.Object getExtraValue(int index)
getExtraValue
in interface FeatureProvider
public java.lang.Object getExtraValue(java.lang.String name)
getExtraValue
in interface FeatureProvider
public boolean hasExtraValue(java.lang.String name)
hasExtraValue
in interface FeatureProvider
public void setExtraValueNames(java.lang.String[] extraValueNames)
setExtraValueNames
in interface FeatureProvider
public boolean isBroken()
isBroken
in interface FeatureProvider