public interface EditableFeatureType extends FeatureType, SupportFromJson
FeatureType.FeatureTypeChangedALL_FILTER, BASIC_TYPES_FILTEREMPTY_UNMODIFIABLEBASICLISTEMPTY_GETITEMWITHSIZEANDITERATOR| Modifier and Type | Method and Description |
|---|---|
EditableFeatureAttributeDescriptor |
add(java.lang.String name,
int type)
Adds an attribute to this EditableFeatureType.
|
EditableFeatureAttributeDescriptor |
add(java.lang.String name,
int type,
Evaluator evaluator)
Adds a calculated attribute to this EditableFeatureType.
|
EditableFeatureAttributeDescriptor |
add(java.lang.String name,
int type,
FeatureAttributeEmulator emulator) |
EditableFeatureAttributeDescriptor |
add(java.lang.String name,
int type,
int size)
Adds an attribute to this EditableFeatureType.
|
EditableFeatureAttributeDescriptor |
add(java.lang.String name,
java.lang.String type) |
EditableFeatureAttributeDescriptor |
add(java.lang.String name,
java.lang.String type,
int size) |
void |
addAll(FeatureType other) |
EditableFeatureAttributeDescriptor |
addLike(FeatureAttributeDescriptor other) |
void |
forceStrongChanges() |
EditableFeatureType |
getEditable()
Returns a copy of this editable feature type.
|
EditableFeatureAttributeDescriptor |
getEditableAttributeDescriptor(int index)
Returns a
FeatureAttributeDescriptor given the attribute index. |
EditableFeatureAttributeDescriptor |
getEditableAttributeDescriptor(java.lang.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.
|
java.lang.Object |
remove(int index)
Removes an attribute given its index
|
java.lang.Object |
remove(java.lang.String name)
Removes an attribute given its name
|
void |
removeAll() |
void |
set(java.lang.String name,
java.lang.String value) |
void |
setCheckFeaturesAtFinishEditing(boolean check) |
void |
setCheckFeaturesAtInsert(boolean check) |
void |
setDefaultGeometryAttributeName(java.lang.String name)
Sets the default geometry attribute name
|
void |
setDefaultGeometryType(int type,
int subType) |
void |
setDefaultTimeAttributeName(java.lang.String name)
Sets the default time attribute name
|
void |
setHasOID(boolean hasOID)
Sets whether this EditableFeatureType has an OID.
|
allowAutomaticValues, copyFrom, get, get, getAllAttributeDescriptors, getAsFeatureStore, getAttributeDescriptor, getAttributeDescriptor, getAttributeDescriptorFromAll, getAttributeDescriptors, getAttributeName, getCopy, getDefaultGeometryAttribute, getDefaultGeometryAttributeIndex, getDefaultGeometryAttributeName, getDefaultSRS, getDefaultTimeAttribute, getDefaultTimeAttributeIndex, getDefaultTimeAttributeName, getExtraColumns, getFilteredAttributes, getId, getIndex, getNewFieldName, getOriginalFeatureType, getPrimaryKey, getRecentUseds, getRules, getSRSs, getStore, hasEvaluators, hasOID, hasOnlyMetadataChanges, hasPrimaryKey, isCheckFeaturesAtFinishEditing, isCheckFeaturesAtInsert, isEmpty, iterator, size, supportReferences, writeAsDALFile, writeAsDALFileaddDynMethod, getDeclaredDynMethod, getDeclaredDynMethods, getDynMethod, getDynMethod, getDynMethods, getSuperDynClasses, removeDynMethodaddDynField, getLabel, getTags, setLabeladdDynField, 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, validatetoListisEmpty, isEmpty, isEmptyQuietlytoJson, toJson, toJsonBuilder, toJsonBuilderfromJsonvoid setDefaultGeometryAttributeName(java.lang.String name)
name - string containing the default geometry attribute namevoid setDefaultGeometryType(int type,
int subType)
boolean remove(EditableFeatureAttributeDescriptor attribute)
attribute - descriptor of the attribute to removejava.lang.Object remove(java.lang.String name)
name - string containing the name of the attribute to be removedjava.lang.Object remove(int index)
index - position of the attribute to be removedvoid removeAll()
void addAll(FeatureType other)
EditableFeatureAttributeDescriptor add(java.lang.String name, int type)
name - string containing the name of the attributetype - data type of the attribute (one from DataTypes)EditableFeatureAttributeDescriptor add(java.lang.String name, java.lang.String type)
EditableFeatureAttributeDescriptor add(java.lang.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(java.lang.String name, java.lang.String type, int size)
EditableFeatureAttributeDescriptor add(java.lang.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(java.lang.String name, int type, FeatureAttributeEmulator emulator)
FeatureType getSource()
FeatureType getNotEditableCopy()
EditableFeatureType getEditable()
getEditable in interface FeatureTypeEditableFeatureTypevoid setHasOID(boolean hasOID)
hasOID - true if it has an OID, or false if not.void setDefaultTimeAttributeName(java.lang.String name)
name - string containing the default time attribute nameEditableFeatureAttributeDescriptor getEditableAttributeDescriptor(java.lang.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 attributeFeatureAttributeDescriptorEditableFeatureAttributeDescriptor addLike(FeatureAttributeDescriptor other)
void setCheckFeaturesAtFinishEditing(boolean check)
void setCheckFeaturesAtInsert(boolean check)
void set(java.lang.String name,
java.lang.String value)
void forceStrongChanges()