public class DefaultFeatureType extends java.util.ArrayList<FeatureAttributeDescriptor> implements FeatureType, DynClass, Cloneable
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultFeatureType.DelegatedIterator |
class |
DefaultFeatureType.SubtypeFeatureTypeNameException |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowAtomaticValues |
protected int |
defaultGeometryAttributeIndex |
protected java.lang.String |
defaultGeometryAttributeName |
protected int |
defaultTimeAttributeIndex |
protected boolean |
hasEmulators |
protected boolean |
hasEvaluators |
protected boolean |
hasOID |
protected java.lang.String |
internalID |
protected FeatureAttributeDescriptor[] |
pk |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultFeatureType() |
protected |
DefaultFeatureType(DefaultFeatureType other) |
protected |
DefaultFeatureType(DefaultFeatureType other,
boolean copyAttributes) |
protected |
DefaultFeatureType(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
DynField |
addDynField(java.lang.String name)
Start of DynClass interface implementation
READONLY
|
DynField |
addDynFieldArray(java.lang.String name) |
DynField |
addDynFieldBoolean(java.lang.String name) |
DynField |
addDynFieldChoice(java.lang.String name,
int type,
java.lang.Object defaultValue,
DynObjectValueItem[] values) |
DynField |
addDynFieldChoice(java.lang.String name,
int type,
java.lang.Object defaultValue,
DynObjectValueItem[] values,
boolean mandatory,
boolean persistent) |
DynField |
addDynFieldDate(java.lang.String name) |
DynField |
addDynFieldDouble(java.lang.String name) |
DynField |
addDynFieldFile(java.lang.String name) |
DynField |
addDynFieldFloat(java.lang.String name) |
DynField |
addDynFieldFolder(java.lang.String name) |
DynField |
addDynFieldInt(java.lang.String name) |
DynField |
addDynFieldList(java.lang.String name) |
DynField |
addDynFieldLong(java.lang.String name) |
DynField |
addDynFieldMap(java.lang.String name) |
DynField |
addDynFieldObject(java.lang.String name) |
DynField |
addDynFieldRange(java.lang.String name,
int type,
java.lang.Object defaultValue,
java.lang.Object min,
java.lang.Object max) |
DynField |
addDynFieldRange(java.lang.String name,
int type,
java.lang.Object defaultValue,
java.lang.Object min,
java.lang.Object max,
boolean mandatory,
boolean persistent) |
DynField |
addDynFieldSet(java.lang.String name) |
DynField |
addDynFieldSingle(java.lang.String name,
int type,
java.lang.Object defaultValue) |
DynField |
addDynFieldSingle(java.lang.String name,
int type,
java.lang.Object defaultValue,
boolean mandatory,
boolean persistent) |
DynField |
addDynFieldString(java.lang.String name) |
DynField |
addDynFieldURI(java.lang.String name) |
DynField |
addDynFieldURL(java.lang.String name) |
void |
addDynMethod(DynMethod dynMethod) |
boolean |
allowAutomaticValues()
Incicates if attibutes with automatic values are allowed in the source
|
java.lang.Object |
clone()
Creates a copy of the object.
|
boolean |
equals(java.lang.Object other) |
void |
extend(DynClass dynClass) |
void |
extend(DynStruct struct) |
void |
extend(DynStruct[] structs) |
void |
extend(java.lang.String dynClassName) |
void |
extend(java.lang.String namespace,
java.lang.String dynClassName) |
java.lang.Object |
get(java.lang.String name)
Returns an attribute descriptor given its name.
|
FeatureAttributeDescriptor |
getAttributeDescriptor(int index)
Returns a
FeatureAttributeDescriptor given the attribute index. |
FeatureAttributeDescriptor |
getAttributeDescriptor(java.lang.String name)
Returns a
FeatureAttributeDescriptor given the attribute name,
or null if an attribute with the given name does not exist. |
FeatureAttributeDescriptor[] |
getAttributeDescriptors()
Returns an Array of the FeatureAttributeDescriptor
|
FeatureType |
getCopy()
Returns a new copy of this FeatureType
|
DynField |
getDeclaredDynField(java.lang.String name) |
DynField[] |
getDeclaredDynFields() |
DynMethod |
getDeclaredDynMethod(java.lang.String name) |
DynMethod[] |
getDeclaredDynMethods() |
FeatureAttributeDescriptor |
getDefaultGeometryAttribute()
Returns the default geometry FeatureAttributeDescriptor.
|
int |
getDefaultGeometryAttributeIndex()
Returns the index of the attribute that will be used as default
geometry attribute.
|
java.lang.String |
getDefaultGeometryAttributeName()
Returns the name of the attribute that will be used as default
geometry attribute for those processes that require a geometry (for
instance rendering).
|
IProjection |
getDefaultSRS()
Returns the SRS in which the default geometry attribute is expressed.
|
FeatureAttributeDescriptor |
getDefaultTimeAttribute()
Returns the default time FeatureAttributeDescriptor.
|
java.lang.String |
getDescription() |
DynField |
getDynField(java.lang.String name) |
DynField[] |
getDynFields() |
DynMethod |
getDynMethod(int code) |
DynMethod |
getDynMethod(java.lang.String name) |
DynMethod[] |
getDynMethods() |
EditableFeatureType |
getEditable()
Returns an editable instance of this FeatureType.
|
java.lang.String |
getFullName() |
java.lang.String |
getId()
Returns this FeatureType identifier.
|
int |
getIndex(java.lang.String name)
Given the name of an attribute, this method returns
its position in this FeatureType.
|
protected java.util.Iterator |
getIterator(java.util.Iterator iter) |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
FeatureAttributeDescriptor[] |
getPrimaryKey()
Returns an Array of the FeatureAttributeDescriptor that compounds the
primary key
|
FeatureRules |
getRules()
Returns a
FeatureRules containing
all rules applicable to features of this type. |
java.util.List |
getSRSs()
Returns a list with the SRSs in which this FeatureType geometries are
expressed.
|
FeatureType |
getSubtype(java.lang.String[] names) |
FeatureType |
getSubtype(java.lang.String[] names,
java.lang.String[] constantsNames) |
DynClass[] |
getSuperDynClasses() |
DynStruct[] |
getSuperDynStructs() |
boolean |
hasEmulators() |
boolean |
hasEvaluators()
Indicates whether this FeatureType has any assigned
Evaluator(s). |
boolean |
hasOID()
Indicates whether
Feature(s) of this FeatureType have an OID defined. |
protected void |
initialize(DefaultFeatureType other,
boolean copyAttributes) |
protected void |
intitalizeAddAttibute(DefaultFeatureAttributeDescriptor attr) |
boolean |
isExtendable(DynStruct dynStruct) |
boolean |
isInstance(DynObject dynObject) |
boolean |
isSubtypeOf(FeatureType featureType) |
java.util.Iterator |
iterator()
Returns an iterator over this FeatureType's attributes.
|
DynObject |
newInstance() |
void |
remove(DynStruct superDynStruct)
Removes a given dynStruct from the current superDynClasses of this
dynClass.
|
void |
removeAll(DynStruct[] superDynStruct) |
void |
removeDynField(java.lang.String name) |
void |
removeDynMethod(java.lang.String name) |
void |
setDescription(java.lang.String description) |
void |
setNamespace(java.lang.String namespace) |
java.lang.String |
toString() |
void |
validate(DynObject object) |
void |
validateFeature(Feature feature,
int mode) |
add, 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, waitget, sizeprotected boolean hasEvaluators
protected boolean hasEmulators
protected java.lang.String defaultGeometryAttributeName
protected int defaultGeometryAttributeIndex
protected int defaultTimeAttributeIndex
protected boolean hasOID
protected boolean allowAtomaticValues
protected FeatureAttributeDescriptor[] pk
protected java.lang.String internalID
protected DefaultFeatureType(java.lang.String id)
protected DefaultFeatureType()
protected DefaultFeatureType(DefaultFeatureType other)
protected DefaultFeatureType(DefaultFeatureType other, boolean copyAttributes)
protected void initialize(DefaultFeatureType other, boolean copyAttributes)
protected void intitalizeAddAttibute(DefaultFeatureAttributeDescriptor attr)
public java.lang.String getId()
FeatureTypegetId in interface FeatureTypepublic java.lang.Object get(java.lang.String name)
FeatureTypeget in interface FeatureTypename - of the attributeFeatureAttributeDescriptor.public FeatureAttributeDescriptor getAttributeDescriptor(java.lang.String name)
FeatureTypeFeatureAttributeDescriptor given the attribute name,
or null if an attribute with the given name does not exist.getAttributeDescriptor in interface FeatureTypename - of the attributeFeatureAttributeDescriptorpublic FeatureAttributeDescriptor getAttributeDescriptor(int index)
FeatureTypeFeatureAttributeDescriptor given the attribute index.getAttributeDescriptor in interface FeatureTypeindex - of the attributeFeatureAttributeDescriptorpublic FeatureType getCopy()
FeatureTypegetCopy in interface FeatureTypepublic java.lang.Object clone()
Cloneableclone in class java.util.ArrayList<FeatureAttributeDescriptor>Object#clone()}.public int getDefaultGeometryAttributeIndex()
FeatureTypegetDefaultGeometryAttributeIndex in interface FeatureTypepublic java.lang.String getDefaultGeometryAttributeName()
FeatureTypegetDefaultGeometryAttributeName in interface FeatureTypepublic EditableFeatureType getEditable()
FeatureTypegetEditable in interface FeatureTypeEditableFeatureTypepublic int getIndex(java.lang.String name)
FeatureTypegetIndex in interface FeatureTypename - of the attributepublic FeatureRules getRules()
FeatureTypeFeatureRules containing
all rules applicable to features of this type.getRules in interface FeatureTypeFeatureRules containing all rules
applicable to features of this type.public boolean hasEvaluators()
FeatureTypeEvaluator(s).
Evaluators are used to obtain the values for calculated
attributes.hasEvaluators in interface FeatureTypeEvaluator(s).public boolean hasEmulators()
public java.util.List getSRSs()
FeatureTypeGeometry.getSRSs in interface FeatureTypepublic IProjection getDefaultSRS()
FeatureTypegetDefaultSRS in interface FeatureTypepublic void validateFeature(Feature feature, int mode) throws DataException
DataExceptionpublic FeatureType getSubtype(java.lang.String[] names) throws DataException
DataExceptionpublic FeatureType getSubtype(java.lang.String[] names, java.lang.String[] constantsNames) throws DataException
DataExceptionpublic boolean isSubtypeOf(FeatureType featureType)
public boolean hasOID()
FeatureTypeFeature(s) of this FeatureType have an OID defined.
An OID is the Feature unique identifier.
Some stores provide their own OIDs which are always unique
(such as Postgre) while others don't support this concept and
then it is the library who creates runtime ad-hoc OIDs as
it see fits, but then integrity of this OIDs among different
work sessions cannot be guaranteed (this is the case for shape
files).hasOID in interface FeatureTypepublic java.lang.String toString()
toString in class java.util.AbstractCollection<FeatureAttributeDescriptor>public java.util.Iterator iterator()
FeatureTypeFeatureAttributeDescriptor.iterator in interface java.lang.Iterable<FeatureAttributeDescriptor>iterator in interface java.util.Collection<FeatureAttributeDescriptor>iterator in interface java.util.List<FeatureAttributeDescriptor>iterator in interface FeatureTypeiterator in class java.util.ArrayList<FeatureAttributeDescriptor>FeatureAttributeDescriptors.protected java.util.Iterator getIterator(java.util.Iterator iter)
public boolean allowAutomaticValues()
FeatureTypeallowAutomaticValues in interface FeatureTypepublic FeatureAttributeDescriptor[] getAttributeDescriptors()
FeatureTypegetAttributeDescriptors in interface FeatureTypepublic FeatureAttributeDescriptor[] getPrimaryKey()
FeatureTypegetPrimaryKey in interface FeatureTypepublic FeatureAttributeDescriptor getDefaultGeometryAttribute()
FeatureTypegetDefaultGeometryAttribute in interface FeatureTypepublic boolean equals(java.lang.Object other)
equals in interface java.util.Collection<FeatureAttributeDescriptor>equals in interface java.util.List<FeatureAttributeDescriptor>equals in class java.util.AbstractList<FeatureAttributeDescriptor>public DynField addDynField(java.lang.String name)
addDynField in interface DynStructpublic DynField getDeclaredDynField(java.lang.String name)
getDeclaredDynField in interface DynStructpublic DynField[] getDeclaredDynFields()
getDeclaredDynFields in interface DynStructpublic java.lang.String getDescription()
getDescription in interface DynStructpublic DynField getDynField(java.lang.String name)
getDynField in interface DynStructpublic DynField[] getDynFields()
getDynFields in interface DynStructpublic void removeDynField(java.lang.String name)
removeDynField in interface DynStructpublic void addDynMethod(DynMethod dynMethod)
addDynMethod in interface DynClasspublic void extend(DynClass dynClass)
public void extend(java.lang.String dynClassName)
public void extend(java.lang.String namespace,
java.lang.String dynClassName)
public DynMethod getDeclaredDynMethod(java.lang.String name) throws DynMethodException
getDeclaredDynMethod in interface DynClassDynMethodExceptionpublic DynMethod[] getDeclaredDynMethods() throws DynMethodException
getDeclaredDynMethods in interface DynClassDynMethodExceptionpublic DynMethod getDynMethod(java.lang.String name) throws DynMethodException
getDynMethod in interface DynClassDynMethodExceptionpublic DynMethod getDynMethod(int code) throws DynMethodException
getDynMethod in interface DynClassDynMethodExceptionpublic DynMethod[] getDynMethods() throws DynMethodException
getDynMethods in interface DynClassDynMethodExceptionpublic DynClass[] getSuperDynClasses()
getSuperDynClasses in interface DynClasspublic boolean isInstance(DynObject dynObject)
isInstance in interface DynStructpublic DynObject newInstance()
newInstance in interface DynStructpublic void removeDynMethod(java.lang.String name)
removeDynMethod in interface DynClasspublic DynField addDynFieldChoice(java.lang.String name, int type, java.lang.Object defaultValue, DynObjectValueItem[] values, boolean mandatory, boolean persistent)
addDynFieldChoice in interface DynStruct#addDynFieldChoice(String)public DynField addDynFieldRange(java.lang.String name, int type, java.lang.Object defaultValue, java.lang.Object min, java.lang.Object max, boolean mandatory, boolean persistent)
addDynFieldRange in interface DynStruct#addDynFieldRange(String)public DynField addDynFieldSingle(java.lang.String name, int type, java.lang.Object defaultValue, boolean mandatory, boolean persistent)
addDynFieldSingle in interface DynStructDynStruct.addDynFieldString(String)public void validate(DynObject object) throws DynObjectValidateException
validate in interface DynStructDynObjectValidateExceptionpublic DynField addDynFieldLong(java.lang.String name)
addDynFieldLong in interface DynStructpublic DynField addDynFieldChoice(java.lang.String name, int type, java.lang.Object defaultValue, DynObjectValueItem[] values)
addDynFieldChoice in interface DynStruct#addDynFieldChoice(String)public DynField addDynFieldRange(java.lang.String name, int type, java.lang.Object defaultValue, java.lang.Object min, java.lang.Object max)
addDynFieldRange in interface DynStruct#addDynFieldRange(String)public DynField addDynFieldSingle(java.lang.String name, int type, java.lang.Object defaultValue)
addDynFieldSingle in interface DynStructDynStruct.addDynFieldString(String)public DynField addDynFieldString(java.lang.String name)
addDynFieldString in interface DynStructpublic DynField addDynFieldInt(java.lang.String name)
addDynFieldInt in interface DynStructpublic DynField addDynFieldDouble(java.lang.String name)
addDynFieldDouble in interface DynStructpublic DynField addDynFieldFloat(java.lang.String name)
addDynFieldFloat in interface DynStructpublic DynField addDynFieldBoolean(java.lang.String name)
addDynFieldBoolean in interface DynStructpublic DynField addDynFieldList(java.lang.String name)
addDynFieldList in interface DynStructpublic DynField addDynFieldMap(java.lang.String name)
addDynFieldMap in interface DynStructpublic DynField addDynFieldObject(java.lang.String name)
addDynFieldObject in interface DynStructpublic DynField addDynFieldSet(java.lang.String name)
addDynFieldSet in interface DynStructpublic DynField addDynFieldArray(java.lang.String name)
addDynFieldArray in interface DynStructpublic DynField addDynFieldDate(java.lang.String name)
addDynFieldDate in interface DynStructpublic java.lang.String getFullName()
getFullName in interface DynStructpublic java.lang.String getNamespace()
getNamespace in interface DynStructpublic DynStruct[] getSuperDynStructs()
getSuperDynStructs in interface DynStructpublic void setDescription(java.lang.String description)
setDescription in interface DynStructpublic void setNamespace(java.lang.String namespace)
setNamespace in interface DynStructpublic DynField addDynFieldFile(java.lang.String name)
addDynFieldFile in interface DynStructpublic DynField addDynFieldFolder(java.lang.String name)
addDynFieldFolder in interface DynStructpublic DynField addDynFieldURL(java.lang.String name)
addDynFieldURL in interface DynStructpublic DynField addDynFieldURI(java.lang.String name)
addDynFieldURI in interface DynStructpublic boolean isExtendable(DynStruct dynStruct)
isExtendable in interface DynStructpublic void extend(DynStruct[] structs)
public void remove(DynStruct superDynStruct)
DynStructpublic void removeAll(DynStruct[] superDynStruct)
public FeatureAttributeDescriptor getDefaultTimeAttribute()
FeatureTypegetDefaultTimeAttribute in interface FeatureType