public class DefaultEditableFeatureType extends DefaultFeatureType implements EditableFeatureType
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultEditableFeatureType.EditableDelegatedIterator |
DefaultFeatureType.DelegatedIterator, DefaultFeatureType.SubtypeFeatureTypeNameExceptionallowAtomaticValues, defaultGeometryAttributeIndex, defaultGeometryAttributeName, defaultTimeAttributeIndex, hasEmulators, hasEvaluators, hasOID, internalID, pk| Modifier | Constructor and Description |
|---|---|
|
DefaultEditableFeatureType() |
protected |
DefaultEditableFeatureType(DefaultEditableFeatureType other) |
protected |
DefaultEditableFeatureType(DefaultFeatureType other) |
|
DefaultEditableFeatureType(java.lang.String id) |
| 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) |
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(java.lang.String name)
Returns a
FeatureAttributeDescriptor given the attribute name,
or null if an attribute with the given name does not exist. |
protected java.util.Iterator |
getIterator(java.util.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.
|
java.lang.Object |
remove(java.lang.String name)
Removes an attribute given its name
|
protected void |
setAllowAutomaticValues(boolean value) |
void |
setDefaultGeometryAttributeName(java.lang.String name)
Sets the default geometry attribute name
|
void |
setDefaultTimeAttributeName(java.lang.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, validateFeatureadd, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitremoveallowAutomaticValues, get, get, getAttributeDescriptor, getAttributeDescriptor, getAttributeDescriptors, getDefaultGeometryAttribute, getDefaultGeometryAttributeIndex, getDefaultGeometryAttributeName, getDefaultSRS, getDefaultTimeAttribute, 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, validatepublic DefaultEditableFeatureType()
public DefaultEditableFeatureType(java.lang.String id)
protected DefaultEditableFeatureType(DefaultEditableFeatureType other)
protected DefaultEditableFeatureType(DefaultFeatureType other)
protected void intitalizeAddAttibute(DefaultFeatureAttributeDescriptor attr)
intitalizeAddAttibute in class DefaultFeatureTypepublic boolean hasStrongChanges()
public FeatureType getCopy()
FeatureTypegetCopy in interface FeatureTypegetCopy in class DefaultFeatureTypepublic EditableFeatureType getEditable()
FeatureTypegetEditable in interface FeatureTypegetEditable in class DefaultFeatureTypeEditableFeatureTypepublic boolean addAll(DefaultFeatureType other)
public EditableFeatureAttributeDescriptor addLike(FeatureAttributeDescriptor other)
public FeatureType getSource()
EditableFeatureTypegetSource in interface EditableFeatureTypepublic FeatureType getNotEditableCopy()
EditableFeatureTypegetNotEditableCopy in interface EditableFeatureTypepublic EditableFeatureAttributeDescriptor add(java.lang.String name, int type)
EditableFeatureTypeadd in interface EditableFeatureTypename - string containing the name of the attributetype - data type of the attribute (one from DataTypes)public EditableFeatureAttributeDescriptor add(java.lang.String name, int type, int size)
EditableFeatureTypeadd in interface EditableFeatureTypename - string containing the name of the attributetype - data type of the attribute (one from DataTypes)size - size of the attribute.public EditableFeatureAttributeDescriptor add(java.lang.String name, int type, Evaluator evaluator)
EditableFeatureTypeadd in interface EditableFeatureTypename - string containing the name of the attributetype - data type of the attribute (one from DataTypes)evaluator - an evaluator containing the desired expressionpublic EditableFeatureAttributeDescriptor add(java.lang.String name, int type, FeatureAttributeEmulator emulator)
add in interface EditableFeatureTypepublic EditableFeatureAttributeDescriptor add(java.lang.String name, java.lang.String type)
add in interface EditableFeatureTypepublic EditableFeatureAttributeDescriptor add(java.lang.String name, java.lang.String type, int size)
add in interface EditableFeatureTypepublic java.lang.Object remove(java.lang.String name)
EditableFeatureTyperemove in interface EditableFeatureTypename - string containing the name of the attribute to be removedprotected void fixAll()
public void checkIntegrity()
throws DataListException
DataListExceptionpublic boolean remove(EditableFeatureAttributeDescriptor attribute)
EditableFeatureTyperemove in interface EditableFeatureTypeattribute - descriptor of the attribute to removepublic void setDefaultGeometryAttributeName(java.lang.String name)
EditableFeatureTypesetDefaultGeometryAttributeName in interface EditableFeatureTypename - string containing the default geometry attribute namepublic void setHasOID(boolean hasOID)
EditableFeatureTypesetHasOID in interface EditableFeatureTypehasOID - true if it has an OID, or false if not.protected java.util.Iterator getIterator(java.util.Iterator iter)
getIterator in class DefaultFeatureTypepublic EditableFeatureAttributeDescriptor getEditableAttributeDescriptor(java.lang.String name)
EditableFeatureTypeFeatureAttributeDescriptor given the attribute name,
or null if an attribute with the given name does not exist.getEditableAttributeDescriptor in interface EditableFeatureTypename - of the attributeFeatureAttributeDescriptorpublic EditableFeatureAttributeDescriptor getEditableAttributeDescriptor(int index)
EditableFeatureTypeFeatureAttributeDescriptor given the attribute index.getEditableAttributeDescriptor in interface EditableFeatureTypeindex - of the attributeFeatureAttributeDescriptorprotected void setAllowAutomaticValues(boolean value)
public void setDefaultTimeAttributeName(java.lang.String name)
EditableFeatureTypesetDefaultTimeAttributeName in interface EditableFeatureTypename - string containing the default time attribute name