public class DefaultEditableFeatureType extends DefaultFeatureType implements EditableFeatureType
Modifier and Type | Class and Description |
---|---|
protected class |
DefaultEditableFeatureType.EditableDelegatedIterator |
DefaultFeatureType.DelegatedIterator, DefaultFeatureType.SubtypeFeatureTypeNameException
allowAtomaticValues, defaultGeometryAttributeIndex, defaultGeometryAttributeName, defaultTimeAttributeIndex, hasEmulators, hasEvaluators, hasOID, internalID, pk
modCount
Modifier | Constructor and Description |
---|---|
|
DefaultEditableFeatureType() |
protected |
DefaultEditableFeatureType(DefaultEditableFeatureType other) |
protected |
DefaultEditableFeatureType(DefaultFeatureType other) |
|
DefaultEditableFeatureType(String id) |
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) |
boolean |
addAll(DefaultFeatureType other) |
EditableFeatureAttributeDescriptor |
addLike(FeatureAttributeDescriptor other) |
void |
checkIntegrity() |
protected void |
fixAll() |
FeatureType |
getCopy()
Returns a new copy of this FeatureType
|
EditableFeatureType |
getEditable()
Returns an editable instance of this FeatureType.
|
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. |
protected Iterator |
getIterator(Iterator iter) |
FeatureType |
getNotEditableCopy()
Returns a copy of the associated FeatureType.
|
FeatureType |
getSource()
Returns the associated FeatureType.
|
boolean |
hasStrongChanges() |
protected void |
intitalizeAddAttibute(DefaultFeatureAttributeDescriptor attr) |
boolean |
remove(EditableFeatureAttributeDescriptor attribute)
Removes an attribute from this EditableFeatureType, given
a reference to its descriptor.
|
Object |
remove(String name)
Removes an attribute given its name
|
protected void |
setAllowAutomaticValues(boolean value) |
void |
setDefaultGeometryAttributeName(String name)
Sets the default geometry attribute name
|
void |
setDefaultGeometryType(int type,
int subType) |
void |
setDefaultTimeAttributeName(String name)
Sets the default time attribute name
|
void |
setHasOID(boolean hasOID)
Sets whether this EditableFeatureType has an OID.
|
addDynField, addDynFieldArray, addDynFieldBoolean, addDynFieldChoice, addDynFieldChoice, addDynFieldDate, addDynFieldDouble, addDynFieldFile, addDynFieldFloat, addDynFieldFolder, addDynFieldInt, addDynFieldList, addDynFieldLong, addDynFieldMap, addDynFieldObject, addDynFieldRange, addDynFieldRange, addDynFieldSet, addDynFieldSingle, addDynFieldSingle, addDynFieldString, addDynFieldURI, addDynFieldURL, addDynMethod, allowAutomaticValues, clone, equals, extend, extend, extend, extend, extend, get, getAttributeDescriptor, getAttributeDescriptor, getAttributeDescriptors, getDeclaredDynField, getDeclaredDynFields, getDeclaredDynMethod, getDeclaredDynMethods, getDefaultGeometryAttribute, getDefaultGeometryAttributeIndex, getDefaultGeometryAttributeName, getDefaultSRS, getDefaultTimeAttribute, getDescription, getDynField, getDynFields, getDynMethod, getDynMethod, getDynMethods, getFullName, getId, getIndex, getName, getNamespace, getPrimaryKey, getRules, getSRSs, getSubtype, getSubtype, getSuperDynClasses, getSuperDynStructs, hasEmulators, hasEvaluators, hasOID, initialize, isExtendable, isInstance, isSubtypeOf, iterator, newInstance, remove, removeAll, removeDynField, removeDynMethod, setDescription, setNamespace, toString, validate, validateFeature
add, add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
remove
allowAutomaticValues, get, get, getAttributeDescriptor, getAttributeDescriptor, getAttributeDescriptors, getDefaultGeometryAttribute, getDefaultGeometryAttributeIndex, getDefaultGeometryAttributeName, getDefaultSRS, getDefaultTimeAttribute, getId, getIndex, getPrimaryKey, getRules, getSRSs, hasEvaluators, hasOID, iterator, size
addDynMethod, getDeclaredDynMethod, getDeclaredDynMethods, getDynMethod, getDynMethod, getDynMethods, getSuperDynClasses, removeDynMethod
addDynField, 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, validate
forEach, spliterator
containsAll, hashCode
parallelStream, stream
public DefaultEditableFeatureType()
public DefaultEditableFeatureType(String id)
protected DefaultEditableFeatureType(DefaultEditableFeatureType other)
protected DefaultEditableFeatureType(DefaultFeatureType other)
protected void intitalizeAddAttibute(DefaultFeatureAttributeDescriptor attr)
intitalizeAddAttibute
in class DefaultFeatureType
public boolean hasStrongChanges()
public FeatureType getCopy()
FeatureType
getCopy
in interface FeatureType
getCopy
in class DefaultFeatureType
public EditableFeatureType getEditable()
FeatureType
getEditable
in interface FeatureType
getEditable
in class DefaultFeatureType
EditableFeatureType
public boolean addAll(DefaultFeatureType other)
public EditableFeatureAttributeDescriptor addLike(FeatureAttributeDescriptor other)
public FeatureType getSource()
EditableFeatureType
getSource
in interface EditableFeatureType
public FeatureType getNotEditableCopy()
EditableFeatureType
getNotEditableCopy
in interface EditableFeatureType
public EditableFeatureAttributeDescriptor add(String name, int type)
EditableFeatureType
add
in interface EditableFeatureType
name
- string containing the name of the attributetype
- data type of the attribute (one from DataTypes
)public EditableFeatureAttributeDescriptor add(String name, int type, int size)
EditableFeatureType
add
in interface EditableFeatureType
name
- string containing the name of the attributetype
- data type of the attribute (one from DataTypes
)size
- size of the attribute.public EditableFeatureAttributeDescriptor add(String name, int type, Evaluator evaluator)
EditableFeatureType
add
in interface EditableFeatureType
name
- string containing the name of the attributetype
- data type of the attribute (one from DataTypes
)evaluator
- an evaluator containing the desired expressionpublic EditableFeatureAttributeDescriptor add(String name, int type, FeatureAttributeEmulator emulator)
add
in interface EditableFeatureType
public EditableFeatureAttributeDescriptor add(String name, String type)
add
in interface EditableFeatureType
public EditableFeatureAttributeDescriptor add(String name, String type, int size)
add
in interface EditableFeatureType
public Object remove(String name)
EditableFeatureType
remove
in interface EditableFeatureType
name
- string containing the name of the attribute to be removedprotected void fixAll()
public void checkIntegrity() throws DataListException
DataListException
public boolean remove(EditableFeatureAttributeDescriptor attribute)
EditableFeatureType
remove
in interface EditableFeatureType
attribute
- descriptor of the attribute to removepublic void setDefaultGeometryType(int type, int subType)
setDefaultGeometryType
in interface EditableFeatureType
public void setDefaultGeometryAttributeName(String name)
EditableFeatureType
setDefaultGeometryAttributeName
in interface EditableFeatureType
name
- string containing the default geometry attribute namepublic void setHasOID(boolean hasOID)
EditableFeatureType
setHasOID
in interface EditableFeatureType
hasOID
- true if it has an OID, or false if not.protected Iterator getIterator(Iterator iter)
getIterator
in class DefaultFeatureType
public EditableFeatureAttributeDescriptor getEditableAttributeDescriptor(String name)
EditableFeatureType
FeatureAttributeDescriptor
given the attribute name,
or null if an attribute with the given name does not exist.getEditableAttributeDescriptor
in interface EditableFeatureType
name
- of the attributeFeatureAttributeDescriptor
public EditableFeatureAttributeDescriptor getEditableAttributeDescriptor(int index)
EditableFeatureType
FeatureAttributeDescriptor
given the attribute index.getEditableAttributeDescriptor
in interface EditableFeatureType
index
- of the attributeFeatureAttributeDescriptor
protected void setAllowAutomaticValues(boolean value)
public void setDefaultTimeAttributeName(String name)
EditableFeatureType
setDefaultTimeAttributeName
in interface EditableFeatureType
name
- string containing the default time attribute name