public interface EditableFeatureType extends FeatureType
| Modifier and Type | Method and Description |
|---|---|
EditableFeatureAttributeDescriptor |
add(String name,
int type)
Adds an attribute to this EditableFeatureType.
|
EditableFeatureAttributeDescriptor |
add(String name,
int type,
Evaluator evaluator)
Adds a calculated attribute to this EditableFeatureType.
|
EditableFeatureAttributeDescriptor |
add(String name,
int type,
FeatureAttributeEmulator emulator) |
EditableFeatureAttributeDescriptor |
add(String name,
int type,
int size)
Adds an attribute to this EditableFeatureType.
|
EditableFeatureAttributeDescriptor |
add(String name,
String type) |
EditableFeatureAttributeDescriptor |
add(String name,
String type,
int size) |
EditableFeatureAttributeDescriptor |
getEditableAttributeDescriptor(int index)
Returns a
FeatureAttributeDescriptor given the attribute index. |
EditableFeatureAttributeDescriptor |
getEditableAttributeDescriptor(String name)
Returns a
FeatureAttributeDescriptor given the attribute name,
or null if an attribute with the given name does not exist. |
FeatureType |
getNotEditableCopy()
Returns a copy of the associated FeatureType.
|
FeatureType |
getSource()
Returns the associated FeatureType.
|
boolean |
remove(EditableFeatureAttributeDescriptor attribute)
Removes an attribute from this EditableFeatureType, given
a reference to its descriptor.
|
Object |
remove(int index)
Removes an attribute given its index
|
Object |
remove(String name)
Removes an attribute given its name
|
void |
setDefaultGeometryAttributeName(String name)
Sets the default geometry attribute name
|
void |
setDefaultTimeAttributeName(String name)
Sets the default time attribute name
|
void |
setHasOID(boolean hasOID)
Sets whether this EditableFeatureType has an OID.
|
allowAutomaticValues, get, get, getAttributeDescriptor, getAttributeDescriptor, getAttributeDescriptors, getCopy, getDefaultGeometryAttribute, getDefaultGeometryAttributeIndex, getDefaultGeometryAttributeName, getDefaultSRS, getDefaultTimeAttribute, getEditable, getId, getIndex, getPrimaryKey, getRules, getSRSs, hasEvaluators, hasOID, iterator, sizeaddDynMethod, getDeclaredDynMethod, getDeclaredDynMethods, getDynMethod, getDynMethod, getDynMethods, getSuperDynClasses, removeDynMethodaddDynField, addDynFieldArray, addDynFieldBoolean, addDynFieldChoice, addDynFieldChoice, addDynFieldDate, addDynFieldDouble, addDynFieldFile, addDynFieldFloat, addDynFieldFolder, addDynFieldInt, addDynFieldList, addDynFieldLong, addDynFieldMap, addDynFieldObject, addDynFieldRange, addDynFieldRange, addDynFieldSet, addDynFieldSingle, addDynFieldSingle, addDynFieldString, addDynFieldURI, addDynFieldURL, extend, extend, extend, getDeclaredDynField, getDeclaredDynFields, getDescription, getDynField, getDynFields, getFullName, getName, getNamespace, getSuperDynStructs, isExtendable, isInstance, newInstance, remove, removeDynField, setDescription, setNamespace, validatevoid setDefaultGeometryAttributeName(String name)
name - string containing the default geometry attribute nameboolean remove(EditableFeatureAttributeDescriptor attribute)
attribute - descriptor of the attribute to removeObject remove(String name)
name - string containing the name of the attribute to be removedObject remove(int index)
index - position of the attribute to be removedEditableFeatureAttributeDescriptor add(String name, int type)
name - string containing the name of the attributetype - data type of the attribute (one from DataTypes)EditableFeatureAttributeDescriptor add(String name, String type)
EditableFeatureAttributeDescriptor add(String name, int type, int size)
name - string containing the name of the attributetype - data type of the attribute (one from DataTypes)size - size of the attribute.EditableFeatureAttributeDescriptor add(String name, String type, int size)
EditableFeatureAttributeDescriptor add(String name, int type, Evaluator evaluator)
name - string containing the name of the attributetype - data type of the attribute (one from DataTypes)evaluator - an evaluator containing the desired expressionEditableFeatureAttributeDescriptor add(String name, int type, FeatureAttributeEmulator emulator)
FeatureType getSource()
FeatureType getNotEditableCopy()
void setHasOID(boolean hasOID)
hasOID - true if it has an OID, or false if not.void setDefaultTimeAttributeName(String name)
name - string containing the default time attribute nameEditableFeatureAttributeDescriptor getEditableAttributeDescriptor(String name)
FeatureAttributeDescriptor given the attribute name,
or null if an attribute with the given name does not exist.name - of the attributeFeatureAttributeDescriptorEditableFeatureAttributeDescriptor getEditableAttributeDescriptor(int index)
FeatureAttributeDescriptor given the attribute index.index - of the attributeFeatureAttributeDescriptor