public class DefaultFeatureAttributeDescriptor extends java.lang.Object implements FeatureAttributeDescriptor, Persistent, DynField_v2, DynField_LabelAttribute, Observable
DynField_v2.AvailableValuesProvider
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
additionalInfo |
protected boolean |
allowIndexDuplicateds |
protected boolean |
allowNull |
protected DynObjectValueItem[] |
availableValues |
protected DynObjectValueItem[] |
availableValuesCache |
protected Expression |
availableValuesExpression |
protected boolean |
avoidCachingAvailableValues |
protected CoercionContext |
coerceContext |
protected java.lang.String |
dataProfile |
protected DataType |
dataType |
protected java.text.DateFormat |
dateFormat |
protected java.lang.String |
defaultFormat |
protected java.lang.Object |
defaultValue |
protected java.lang.String |
description |
protected int |
displaySize |
protected Evaluator |
evaluator |
protected FeatureAttributeEmulator |
featureAttributeEmulator |
protected FeatureAttributeGetter |
featureAttributeGetter |
protected boolean |
fixed |
protected DefaultForeingKey |
foreingKey |
protected int |
geometrySubType |
protected int |
geometryType |
protected GeometryType |
geomType |
protected java.lang.String |
groupName |
protected boolean |
hidden |
protected int |
index |
protected boolean |
indexed |
protected Interval |
interval |
protected boolean |
isAutomatic |
protected boolean |
isIndexAscending |
protected boolean |
isTime |
protected java.lang.String |
label |
protected java.util.Locale |
locale |
protected static Logger |
LOGGER |
protected java.math.MathContext |
mathContext |
protected int |
maximumOccurrences |
protected java.lang.Object |
maxValue |
protected int |
minimumOccurrences |
protected java.lang.Object |
minValue |
protected java.lang.String |
name |
static java.lang.String |
NOTIFICATION_FIXED_CHANGED |
protected java.lang.Class |
objectClass |
protected ObservableHelper |
observableHelper |
protected int |
order |
protected int |
precision |
protected boolean |
primaryKey |
protected boolean |
readOnly |
protected int |
roundMode |
protected int |
scale |
protected java.lang.String |
shortLabel |
protected int |
size |
protected IProjection |
SRS |
protected Tags |
tags |
ANY, CHOICE, RANGE, RELATION_TYPE_AGGREGATE, RELATION_TYPE_AGGREGATE_WITH_COMPOSITION, RELATION_TYPE_COLLABORATION, RELATION_TYPE_COLLABORATION_WITH_COMPOSITION, RELATION_TYPE_COMPOSITION, RELATION_TYPE_IDENTITY, RELATION_TYPE_NONE
Modifier | Constructor and Description |
---|---|
|
DefaultFeatureAttributeDescriptor() |
protected |
DefaultFeatureAttributeDescriptor(DefaultFeatureAttributeDescriptor other) |
protected |
DefaultFeatureAttributeDescriptor(FeatureType type) |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer o) |
boolean |
allowIndexDuplicateds() |
boolean |
allowNull()
Indicates whether this attribute accepts null values.
|
java.lang.Object |
clone()
Creates a copy of the object.
|
java.lang.Object |
coerce(java.lang.Object value)
Force the type of value to the type of the field.
|
void |
copyFrom(DynField other1) |
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
boolean |
equals(java.lang.Object obj) |
void |
fixAll() |
java.lang.String |
format(java.lang.Object value) |
void |
fromJson(JsonObject json) |
java.lang.Object |
get(java.lang.String name)
Retrieve the value of the attribute "name".
|
java.lang.String |
getAdditionalInfo(java.lang.String infoName)
Returns additional information of the attribute
|
DynObjectValueItem[] |
getAvailableValues()
Return the available values for this field.
|
DynObjectValueItem[] |
getAvailableValues(DynObject context) |
Expression |
getAvailableValuesExpression() |
Expression |
getAvailableValuesFilter() |
DynMethod |
getAvailableValuesMethod() |
java.lang.Object |
getCalculatedValue(DynObject self) |
DynMethod |
getCalculateMethod() |
java.lang.String |
getClassNameOfItems()
When is a Container of objects field returns the name of class of the
elements, otherwise returns null
|
java.lang.String |
getClassNameOfValue()
When is a Object field returns the name of object's class, otherwise
returns null
|
java.lang.Class |
getClassOfItems()
When is a Container of objects field returns the class of the elements,
otherwise returns null
|
java.lang.Class |
getClassOfValue()
Return the java class of the value of the field.
|
java.lang.Object |
getCoercedDefaultValue() |
Coercion |
getCoercion()
Return a Coercion to convert a value to the type of this attribute.
|
CoercionContext |
getCoercionContext()
Return a CoercionContext for this attribute.
|
DefaultFeatureAttributeDescriptor |
getCopy()
Returns a clone of this attribute descriptor
|
DataProfile |
getDataProfile() |
java.lang.String |
getDataProfileName() |
DataType |
getDataType() |
java.lang.String |
getDataTypeName()
Returns the name of this attribute's data type.
|
java.text.DateFormat |
getDateFormat()
If this attribute is of type Date, then this method returns the date format
set by the data store.
|
java.lang.String |
getDefaultFormat() |
java.lang.Object |
getDefaultValue()
Return the default value used in creation of new objects with this field.
|
java.lang.Object |
getDefaultValueCoerced()
Deprecated.
|
java.util.function.Supplier |
getDefaultValueSupplier() |
java.lang.String |
getDescription()
Return the descripcion associated to this field.
|
int |
getDisplaySize()
Return the designated column normal maximum width in characters.
|
DynStruct |
getDynClassOfItems()
When is a Container of DynObjects field returns the DynStruct of the
elements, otherwise returns null
|
DynStruct |
getDynClassOfValue()
When is a DynObject field returns the DynStruct of the DynObject,
otherwise returns null
|
DynField |
getElementsType()
When a field is of type container, this method return a DynClass that
define the type of elements.
|
Evaluator |
getEvaluator()
Returns an evaluator that will be used to calculate the value of this
attribute
|
FeatureAttributeEmulator |
getFeatureAttributeEmulator()
Gets the attribute emulator associatted
FeatureAttributeEmulator to
this attribute. |
FeatureAttributeGetter |
getFeatureAttributeGetter()
Gets if the attribute has a
FeatureAttributeGetter . |
FeatureType |
getFeatureType() |
ForeingKey |
getForeingKey() |
int |
getGeometrySubType()
If this attribute is a
Geometry , this method returns the specific
geometry subtype, as defined in Geometry.SUBTYPES . |
int |
getGeometryType()
If this attribute is a
Geometry , this method returns the specific
geometry type, as defined in Geometry.TYPES . |
GeometryType |
getGeomType()
Returns the
GeometryType of the attribute if it is a geometry. |
java.lang.String |
getGroup()
Return a string that identify a group for this field.
|
int |
getIndex()
Returns this attribute relative position within the
Feature . |
Interval |
getInterval() |
java.lang.String |
getLabel() |
java.lang.String |
getLabelOfValue(java.lang.Object value) |
java.util.Locale |
getLocale()
Returns the Locale associated with this attribute.
|
java.lang.String |
getLocalizedLabel() |
java.lang.String |
getLocalizedShortLabel() |
java.math.MathContext |
getMathContext()
For attributes of type
DataTypes.DECIMAL , this returns the
MathContext associated to this. |
int |
getMaximumOccurrences()
Returns the maximum number of occurrences of this attribute on a given
feature.The vast majority of data sources and data consumers will only
function with this value being one.
|
java.lang.Object |
getMaxValue() |
int |
getMinimumOccurrences()
Returns the minimum number of occurrences of this attribute on a given
feature.
|
java.lang.Object |
getMinValue() |
java.lang.String |
getName()
Return the name of the field.
|
java.lang.Class |
getObjectClass()
For attributes of type
DataTypes.OBJECT , this returns the Java
Class object that class or interface that all values of this
attribute can be cast to. |
int |
getOder()
Return the ordinal that identify the order of this field in the
DynObject . |
int |
getPrecision()
For attributes of type
DataTypes.DECIMAL , this returns the maximum
number of digits. |
int |
getRelationType() |
java.lang.String[] |
getRequiredFieldNames() |
int |
getRoundMode()
Returns the rounding mode to use when a value is converted to the
attribute's data type.
|
int |
getScale()
For attributes of type
DataTypes.DECIMAL , this returns the maximum
number of digits after the decimal point. |
java.lang.String |
getShortLabel() |
int |
getSize()
Returns a number that indicates the size of this attribute.
|
IProjection |
getSRS()
If this attribute is a
Geometry , this method returns its Spatial
Reference System. |
IProjection |
getSRS(java.lang.ref.WeakReference storeRef) |
FeatureStore |
getStore()
Return the store associated to this attribute descriptor.
|
java.lang.String |
getSubtype()
Return the subtype associated to this field.
|
Tags |
getTags() |
int |
getTheTypeOfAvailableValues() |
int |
getType()
Return the type used in this field.
|
int |
getTypeOfItems()
When is a Container field returns the type of the elements, otherwise
returns INVALID
|
boolean |
getValidateElements() |
FeatureAttributeDescriptor |
getValue() |
boolean |
hasAvailableValues() |
boolean |
hasConstantAvailableValues() |
boolean |
hasDataProfile() |
boolean |
hasDescription() |
boolean |
hasLabel() |
boolean |
hasOnlyMetadataChanges(FeatureAttributeDescriptor other) |
boolean |
hasShortLabel() |
boolean |
isAutomatic()
Returns if value is created automatically by the source
|
boolean |
isAvailableValuesCalculated() |
boolean |
isAvoidCachingAvailableValues() |
boolean |
isCalculated() |
boolean |
isComputed()
Return true if the attribute has an evaluator o an emulator.
|
boolean |
isContainer()
Return true if the value of this field is a container.
|
boolean |
isFixed() |
boolean |
isForeingKey() |
boolean |
isHidden()
Inform if this field can be visible or not for the user.
|
boolean |
isInAvailableValues(java.lang.Object valueToCheck) |
boolean |
isIndexAscending() |
boolean |
isIndexed()
Return true if the attribute has and index in the table.
|
boolean |
isMandatory()
Return true if this field is mandatory.
|
boolean |
isPersistent()
Returns if the field is persistent or volatile.
|
boolean |
isPrimaryKey()
Returns
true if this attribute forms all or part of the unique
identifying value for the feature it is contained by. |
boolean |
isReadOnly()
Returns if the field is readOnly or not.
|
boolean |
isTime()
Gets if the attribute is a temporal attribute.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
recentUsed() |
static void |
registerPersistenceDefinition() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
static void |
selfRegister() |
DynField |
setAvailableValues(DynMethod availableValuesMethod) |
DynField |
setAvailableValues(DynObjectValueItem[] values) |
DynField |
setAvailableValues(java.util.List values) |
FeatureAttributeDescriptor |
setAvailableValuesExpression(Expression expression) |
FeatureAttributeDescriptor |
setAvailableValuesExpression(java.lang.String expression) |
FeatureAttributeDescriptor |
setAvailableValuesFilter(Expression filter) |
FeatureAttributeDescriptor |
setAvailableValuesFilter(java.lang.String filter) |
DynField |
setCalculateMethod(DynMethod method) |
DynField |
setClassOfItems(java.lang.Class theClass)
If field type is List, Set or Map, this class is the class of items.
|
DynField |
setClassOfItems(DynStruct dynStrct) |
DynField |
setClassOfItems(java.lang.String theClassNameOfValue) |
DynField |
setClassOfValue(java.lang.Class theClass)
Sets the class used for the values of the field.
|
DynField |
setClassOfValue(DynStruct dynStrct) |
DynField |
setClassOfValue(java.lang.String theClassNameOfValue) |
void |
setConstantValue(boolean isConstantValue) |
FeatureAttributeDescriptor |
setDataProfileName(java.lang.String dataProfile) |
FeatureAttributeDescriptor |
setDataType(int type) |
DynField |
setDefaultDynValue(java.lang.Object defaultValue)
Deprecated.
|
DynField |
setDefaultFieldValue(java.lang.Object defaultValue)
Set the default value used for this field when a new object with this
field is created.
|
DynField |
setDefaultValueSupplier(java.util.function.Supplier supplier) |
DynField |
setDescription(java.lang.String description)
Sets the description asociated to this field.
|
DynField |
setElementsType(DynStruct type)
Set the type of items when the field is a container.
|
DynField |
setElementsType(int type)
Set the type of items when the field is a container.
|
FeatureAttributeDescriptor |
setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator) |
void |
setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeTransform)
Sets the
FeatureAttributeGetter that is used to update the
presentation of a field. |
void |
setFeatureType(FeatureType type) |
void |
setFixed(boolean fixed) |
DynField |
setGroup(java.lang.String groupName) |
DynField |
setHidden(boolean hidden) |
protected FeatureAttributeDescriptor |
setIndex(int index) |
FeatureAttributeDescriptor |
setInterval(Interval interval) |
DynField |
setLabel(java.lang.String label) |
DynField |
setMandatory(boolean mandatory) |
DynField |
setMaxValue(java.lang.Object maxValue) |
DynField |
setMinValue(java.lang.Object minValue) |
FeatureAttributeDescriptor |
setName(java.lang.String name) |
DynField |
setOrder(int order) |
DynField |
setPersistent(boolean persistent)
Sets if the field must be persisted or not.
|
DynField |
setReadOnly(boolean readOnly)
Sets if the field is readOnly or not.
|
DynField |
setRelationType(int relationType) |
DynField |
setShortLabel(java.lang.String shortLabel) |
void |
setSRSForced(IProjection SRS) |
DynField |
setSubtype(java.lang.String subtype)
Strings used as subtype for this field.
|
DynField |
setTheTypeOfAvailableValues(int type) |
DynField |
setType(DataType type) |
DynField |
setType(int type)
Sets the type of the field.
|
DynField |
setTypeOfItems(int type) |
DynField |
setValidateElements(boolean validate) |
JsonObject |
toJson() |
JsonObjectBuilder |
toJsonBuilder() |
java.lang.String |
toString() |
void |
validate(java.lang.Object value)
Validate that the value match the properties of the field.
|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cloneQuietly, cloneQuietly
label
toJson, toJsonBuilder
protected static final Logger LOGGER
public static final java.lang.String NOTIFICATION_FIXED_CHANGED
protected boolean allowNull
protected DataType dataType
protected java.lang.String dataProfile
protected java.text.DateFormat dateFormat
protected java.lang.Object defaultValue
protected int index
protected int maximumOccurrences
protected int minimumOccurrences
protected int size
protected java.lang.String name
protected java.lang.Class objectClass
protected int precision
protected int scale
protected int roundMode
protected Evaluator evaluator
protected boolean primaryKey
protected boolean readOnly
protected IProjection SRS
protected GeometryType geomType
protected int geometryType
protected int geometrySubType
protected java.util.Map<java.lang.String,java.lang.String> additionalInfo
protected boolean isAutomatic
protected boolean isTime
protected Interval interval
protected FeatureAttributeGetter featureAttributeGetter
protected FeatureAttributeEmulator featureAttributeEmulator
protected boolean indexed
protected boolean isIndexAscending
protected boolean allowIndexDuplicateds
protected DynObjectValueItem[] availableValues
protected DynObjectValueItem[] availableValuesCache
protected Expression availableValuesExpression
protected boolean avoidCachingAvailableValues
protected java.lang.String description
protected java.lang.Object minValue
protected java.lang.Object maxValue
protected java.lang.String label
protected java.lang.String shortLabel
protected int order
protected boolean hidden
protected java.lang.String groupName
protected Tags tags
protected DefaultForeingKey foreingKey
protected CoercionContext coerceContext
protected java.math.MathContext mathContext
protected java.util.Locale locale
protected int displaySize
protected java.lang.String defaultFormat
protected boolean fixed
protected ObservableHelper observableHelper
public DefaultFeatureAttributeDescriptor()
protected DefaultFeatureAttributeDescriptor(FeatureType type)
protected DefaultFeatureAttributeDescriptor(DefaultFeatureAttributeDescriptor other)
public void copyFrom(DynField other1)
copyFrom
in interface DynField_v2
public void setFeatureType(FeatureType type)
public java.lang.String getDataTypeName()
FeatureAttributeDescriptor
getDataTypeName
in interface FeatureAttributeDescriptor
public DefaultFeatureAttributeDescriptor getCopy()
FeatureAttributeDescriptor
getCopy
in interface FeatureAttributeDescriptor
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public boolean allowNull()
FeatureAttributeDescriptor
allowNull
in interface FeatureAttributeDescriptor
public java.util.Locale getLocale()
FeatureAttributeDescriptor
Locale. ENGLISH
getLocale
in interface FeatureAttributeDescriptor
public DataType getDataType()
getDataType
in interface DynField
public FeatureAttributeDescriptor setDataType(int type)
public java.text.DateFormat getDateFormat()
FeatureAttributeDescriptor
getDateFormat
in interface FeatureAttributeDescriptor
public java.lang.Object getDefaultValue()
DynField
getDefaultValue
in interface DynField
@Deprecated public java.lang.Object getDefaultValueCoerced()
FeatureAttributeDescriptor
getDefaultValueCoerced
in interface FeatureAttributeDescriptor
public java.lang.Object getCoercedDefaultValue()
getCoercedDefaultValue
in interface DynField_v2
public java.util.function.Supplier getDefaultValueSupplier()
getDefaultValueSupplier
in interface DynField_v2
public DynField setDefaultValueSupplier(java.util.function.Supplier supplier)
setDefaultValueSupplier
in interface DynField_v2
public Evaluator getEvaluator()
FeatureAttributeDescriptor
getEvaluator
in interface FeatureAttributeDescriptor
public int getGeometryType()
FeatureAttributeDescriptor
Geometry
, this method returns the specific
geometry type, as defined in Geometry.TYPES
.getGeometryType
in interface FeatureAttributeDescriptor
Geometry.TYPES
public int getGeometrySubType()
FeatureAttributeDescriptor
Geometry
, this method returns the specific
geometry subtype, as defined in Geometry.SUBTYPES
.getGeometrySubType
in interface FeatureAttributeDescriptor
Geometry.SUBTYPES
public GeometryType getGeomType()
FeatureAttributeDescriptor
GeometryType
of the attribute if it is a geometry.getGeomType
in interface FeatureAttributeDescriptor
public int getIndex()
FeatureAttributeDescriptor
Feature
.getIndex
in interface FeatureAttributeDescriptor
protected FeatureAttributeDescriptor setIndex(int index)
public int getMaximumOccurrences()
FeatureAttributeDescriptor
Integer.MAX_VALUE
indicates that the maximum number of occurrences is unbounded.getMaximumOccurrences
in interface FeatureAttributeDescriptor
public int getMinimumOccurrences()
FeatureAttributeDescriptor
getMinimumOccurrences
in interface FeatureAttributeDescriptor
public java.lang.String getName()
DynField
public FeatureAttributeDescriptor setName(java.lang.String name)
public java.lang.Class getObjectClass()
FeatureAttributeDescriptor
DataTypes.OBJECT
, this returns the Java
Class
object that class or interface that all values of this
attribute can be cast to.getObjectClass
in interface FeatureAttributeDescriptor
public int getPrecision()
FeatureAttributeDescriptor
DataTypes.DECIMAL
, this returns the maximum
number of digits. For other types, this must always return zero.getPrecision
in interface FeatureAttributeDescriptor
public int getScale()
FeatureAttributeDescriptor
DataTypes.DECIMAL
, this returns the maximum
number of digits after the decimal point. For other types, this must always
return zero.getScale
in interface FeatureAttributeDescriptor
public Coercion getCoercion()
FeatureAttributeDescriptor
getCoercion
in interface FeatureAttributeDescriptor
public java.math.MathContext getMathContext()
FeatureAttributeDescriptor
DataTypes.DECIMAL
, this returns the
MathContext associated to this. For other types return
MathContext.UNLIMITED
.getMathContext
in interface FeatureAttributeDescriptor
public CoercionContext getCoercionContext()
FeatureAttributeDescriptor
getCoercionContext
in interface FeatureAttributeDescriptor
public int getRoundMode()
FeatureAttributeDescriptor
getRoundMode
in interface FeatureAttributeDescriptor
public IProjection getSRS()
FeatureAttributeDescriptor
Geometry
, this method returns its Spatial
Reference System.getSRS
in interface FeatureAttributeDescriptor
Geometry
, otherwise this
method returns null.public Interval getInterval()
getInterval
in interface FeatureAttributeDescriptor
public IProjection getSRS(java.lang.ref.WeakReference storeRef)
public int getSize()
FeatureAttributeDescriptor
DataTypes
for how to
interpret this value. As an example, when the data type is
DataTypes.STRING
, this value indicates the maximum length of the
string.getSize
in interface FeatureAttributeDescriptor
int
indicating the size of the attribute.public boolean isPrimaryKey()
FeatureAttributeDescriptor
true
if this attribute forms all or part of the unique
identifying value for the feature it is contained by. The primary key
attributes uniquely identify this feature from other features of the same
type. This is different from the Feature.getReference(), which
must uniquely identify the Feature
among all feature types.isPrimaryKey
in interface FeatureAttributeDescriptor
public boolean isReadOnly()
DynField
isReadOnly
in interface DynField
public java.lang.String getAdditionalInfo(java.lang.String infoName)
FeatureAttributeDescriptor
getAdditionalInfo
in interface FeatureAttributeDescriptor
public boolean isAutomatic()
FeatureAttributeDescriptor
isAutomatic
in interface FeatureAttributeDescriptor
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public static void registerPersistenceDefinition()
public Tags getTags()
getTags
in interface DynField_v2
getTags
in interface Tagged
public Expression getAvailableValuesFilter()
getAvailableValuesFilter
in interface FeatureAttributeDescriptor
public FeatureAttributeDescriptor setAvailableValuesFilter(Expression filter)
public FeatureAttributeDescriptor setAvailableValuesFilter(java.lang.String filter)
public boolean hasConstantAvailableValues()
hasConstantAvailableValues
in interface FeatureAttributeDescriptor
public boolean isAvoidCachingAvailableValues()
isAvoidCachingAvailableValues
in interface FeatureAttributeDescriptor
public boolean hasAvailableValues()
hasAvailableValues
in interface FeatureAttributeDescriptor
public DynObjectValueItem[] getAvailableValues(DynObject context)
getAvailableValues
in interface DynField_v2
public boolean isAvailableValuesCalculated()
isAvailableValuesCalculated
in interface DynField_v2
public DynObjectValueItem[] getAvailableValues()
DynField
getAvailableValues
in interface DynField
public Expression getAvailableValuesExpression()
getAvailableValuesExpression
in interface FeatureAttributeDescriptor
public FeatureAttributeDescriptor setAvailableValuesExpression(java.lang.String expression)
setAvailableValuesExpression
in interface FeatureAttributeDescriptor
public FeatureAttributeDescriptor setAvailableValuesExpression(Expression expression)
setAvailableValuesExpression
in interface FeatureAttributeDescriptor
public java.lang.String getLabelOfValue(java.lang.Object value)
getLabelOfValue
in interface FeatureAttributeDescriptor
public java.lang.String getDescription()
DynField
getDescription
in interface DynField
public java.lang.Object getMaxValue()
getMaxValue
in interface DynField
public java.lang.Object getMinValue()
getMinValue
in interface DynField
public int getTheTypeOfAvailableValues()
getTheTypeOfAvailableValues
in interface DynField
public int getType()
DynField
DataTypes
public boolean isMandatory()
DynField
isMandatory
in interface DynField
public boolean isPersistent()
DynField
isPersistent
in interface DynField
public DynField setAvailableValues(DynObjectValueItem[] values)
setAvailableValues
in interface DynField
public DynField setDescription(java.lang.String description)
DynField
setDescription
in interface DynField
DynField
objectpublic DynField setMandatory(boolean mandatory)
setMandatory
in interface DynField
public DynField setMaxValue(java.lang.Object maxValue)
setMaxValue
in interface DynField
public DynField setMinValue(java.lang.Object minValue)
setMinValue
in interface DynField
public DynField setPersistent(boolean persistent)
DynField
setPersistent
in interface DynField
persistent
- if the field must be persisted or notDynField
objectDynField.isPersistent()
public DynField setTheTypeOfAvailableValues(int type)
setTheTypeOfAvailableValues
in interface DynField
public DynField setType(int type)
DynField
DataTypes
.
This method assign the default values of the type for "ClassOfValue" and
"subType".@Deprecated public DynField setDefaultDynValue(java.lang.Object defaultValue)
setDefaultDynValue
in interface DynField
public DynField setDefaultFieldValue(java.lang.Object defaultValue)
DynField
setDefaultFieldValue
in interface DynField
DynField
objectpublic java.lang.Class getClassOfValue()
DynField
getClassOfValue
in interface DynField
public DynField getElementsType()
DynField
getElementsType
in interface DynField
public DynField setClassOfValue(java.lang.Class theClass) throws DynFieldIsNotAContainerException
DynField
setClassOfValue
in interface DynField
DynField
objectDynFieldIsNotAContainerException
public DynField setElementsType(DynStruct type) throws DynFieldIsNotAContainerException
DynField
setElementsType
in interface DynField
type
- de los elementosDynField
objectDynFieldIsNotAContainerException
public DynField setElementsType(int type) throws DynFieldIsNotAContainerException
DynField
setElementsType
in interface DynField
type
- de los elementosDynField
objectDynFieldIsNotAContainerException
public FeatureAttributeDescriptor setDataProfileName(java.lang.String dataProfile)
public java.lang.String getDataProfileName()
getDataProfileName
in interface FeatureAttributeDescriptor
public boolean hasDataProfile()
hasDataProfile
in interface FeatureAttributeDescriptor
public DataProfile getDataProfile()
getDataProfile
in interface FeatureAttributeDescriptor
public void validate(java.lang.Object value) throws DynFieldValidateException
DynField
validate
in interface DynField
DynFieldValidateException
public java.lang.String getSubtype()
DynField
DataTypes.DYNOBJECT
, the subtype are
the fullname of the DynClass.getSubtype
in interface DynField
public java.lang.Object coerce(java.lang.Object value) throws CoercionException
DynField
coerce
in interface DynField
CoercionException
public DynField setAvailableValues(java.util.List values)
setAvailableValues
in interface DynField
public java.lang.String getGroup()
DynField
public int getOder()
DynField
DynObject
.public java.lang.String getLabel()
getLabel
in interface DynField_LabelAttribute
getLabel
in interface LabeledValue<FeatureAttributeDescriptor>
public java.lang.String getLocalizedLabel()
getLocalizedLabel
in interface FeatureAttributeDescriptor
getLocalizedLabel
in interface DynField_LabelAttribute
public DynField setLabel(java.lang.String label)
setLabel
in interface DynField_LabelAttribute
public DynField setShortLabel(java.lang.String shortLabel)
setShortLabel
in interface DynField_LabelAttribute
public java.lang.String getShortLabel()
getShortLabel
in interface DynField_LabelAttribute
public java.lang.String getLocalizedShortLabel()
getLocalizedShortLabel
in interface FeatureAttributeDescriptor
getLocalizedShortLabel
in interface DynField_LabelAttribute
public DynField setGroup(java.lang.String groupName)
public boolean isHidden()
DynField
public DynField setReadOnly(boolean readOnly)
DynField
setReadOnly
in interface DynField
readOnly
- if the graphic component associated to this field
should be readOnly or notpublic boolean isContainer()
DynField
DataType
isContainer
in interface DynField
public java.lang.Class getClassOfItems()
DynField_v2
getClassOfItems
in interface DynField
getClassOfItems
in interface DynField_v2
public DynField setClassOfItems(java.lang.Class theClass)
DynField
setClassOfItems
in interface DynField
setClassOfItems
in interface DynField_v2
DynField
objectpublic DynField setSubtype(java.lang.String subtype)
DynField
DataTypes.DYNOBJECT
, the subtype is the
fullname of the DynStruct.setSubtype
in interface DynField
DynField
objectpublic boolean isTime()
FeatureAttributeDescriptor
isTime
in interface FeatureAttributeDescriptor
true
if is a temporal attributepublic FeatureAttributeGetter getFeatureAttributeGetter()
FeatureAttributeDescriptor
FeatureAttributeGetter
.getFeatureAttributeGetter
in interface FeatureAttributeDescriptor
public void setFeatureAttributeGetter(FeatureAttributeGetter featureAttributeTransform)
FeatureAttributeDescriptor
FeatureAttributeGetter
that is used to update the
presentation of a field.setFeatureAttributeGetter
in interface FeatureAttributeDescriptor
featureAttributeTransform
- the FeatureAttributeGetter
to set.public FeatureAttributeEmulator getFeatureAttributeEmulator()
FeatureAttributeDescriptor
FeatureAttributeEmulator
to
this attribute.getFeatureAttributeEmulator
in interface FeatureAttributeDescriptor
public FeatureAttributeDescriptor setFeatureAttributeEmulator(FeatureAttributeEmulator featureAttributeEmulator)
public boolean isIndexed()
FeatureAttributeDescriptor
isIndexed
in interface FeatureAttributeDescriptor
public boolean isForeingKey()
isForeingKey
in interface FeatureAttributeDescriptor
public ForeingKey getForeingKey()
getForeingKey
in interface FeatureAttributeDescriptor
public boolean allowIndexDuplicateds()
allowIndexDuplicateds
in interface FeatureAttributeDescriptor
public boolean isIndexAscending()
isIndexAscending
in interface FeatureAttributeDescriptor
public DynField setClassOfValue(DynStruct dynStrct)
setClassOfValue
in interface DynField_v2
public DynField setClassOfValue(java.lang.String theClassNameOfValue)
setClassOfValue
in interface DynField_v2
public java.lang.String getClassNameOfValue()
DynField_v2
getClassNameOfValue
in interface DynField_v2
public DynStruct getDynClassOfValue()
DynField_v2
getDynClassOfValue
in interface DynField_v2
public DynField setTypeOfItems(int type)
setTypeOfItems
in interface DynField_v2
public int getTypeOfItems()
DynField_v2
getTypeOfItems
in interface DynField_v2
public DynField setClassOfItems(DynStruct dynStrct)
setClassOfItems
in interface DynField_v2
public DynField setClassOfItems(java.lang.String theClassNameOfValue)
setClassOfItems
in interface DynField_v2
public java.lang.String getClassNameOfItems()
DynField_v2
getClassNameOfItems
in interface DynField_v2
public DynStruct getDynClassOfItems()
DynField_v2
getDynClassOfItems
in interface DynField_v2
public DynField setRelationType(int relationType)
setRelationType
in interface DynField_v2
public int getRelationType()
getRelationType
in interface DynField_v2
public DynField setAvailableValues(DynMethod availableValuesMethod)
setAvailableValues
in interface DynField_v2
public DynMethod getAvailableValuesMethod()
getAvailableValuesMethod
in interface DynField_v2
public DynMethod getCalculateMethod()
getCalculateMethod
in interface DynField_v2
public DynField setCalculateMethod(DynMethod method)
setCalculateMethod
in interface DynField_v2
public boolean isCalculated()
isCalculated
in interface DynField_v2
public java.lang.Object getCalculatedValue(DynObject self)
getCalculatedValue
in interface DynField_v2
public DynField setValidateElements(boolean validate)
setValidateElements
in interface DynField_v2
public boolean getValidateElements()
getValidateElements
in interface DynField_v2
public boolean hasLabel()
hasLabel
in interface FeatureAttributeDescriptor
public boolean hasShortLabel()
hasShortLabel
in interface FeatureAttributeDescriptor
public boolean hasDescription()
hasDescription
in interface FeatureAttributeDescriptor
public FeatureAttributeDescriptor getValue()
getValue
in interface LabeledValue<FeatureAttributeDescriptor>
public int getDisplaySize()
FeatureAttributeDescriptor
getDisplaySize
in interface FeatureAttributeDescriptor
public boolean isInAvailableValues(java.lang.Object valueToCheck)
isInAvailableValues
in interface FeatureAttributeDescriptor
public void setConstantValue(boolean isConstantValue)
public boolean isComputed()
FeatureAttributeDescriptor
isComputed
in interface FeatureAttributeDescriptor
public FeatureStore getStore()
FeatureAttributeDescriptor
getStore
in interface FeatureAttributeDescriptor
public FeatureType getFeatureType()
getFeatureType
in interface FeatureAttributeDescriptor
public FeatureAttributeDescriptor setInterval(Interval interval)
public void fixAll()
public java.lang.String[] getRequiredFieldNames()
getRequiredFieldNames
in interface FeatureAttributeDescriptor
public void recentUsed()
recentUsed
in interface FeatureAttributeDescriptor
public boolean hasOnlyMetadataChanges(FeatureAttributeDescriptor other)
hasOnlyMetadataChanges
in interface FeatureAttributeDescriptor
public java.lang.Object get(java.lang.String name)
FeatureAttributeDescriptor
get
in interface FeatureAttributeDescriptor
public void setSRSForced(IProjection SRS)
public JsonObject toJson()
toJson
in interface SupportToJson
public JsonObjectBuilder toJsonBuilder()
toJsonBuilder
in interface SupportToJson
public void fromJson(JsonObject json)
public static void selfRegister()
public java.lang.String getDefaultFormat()
getDefaultFormat
in interface FeatureAttributeDescriptor
public java.lang.String format(java.lang.Object value)
format
in interface FeatureAttributeDescriptor
public java.lang.String toString()
toString
in interface LabeledValue<FeatureAttributeDescriptor>
toString
in class java.lang.Object
public void setFixed(boolean fixed)
public boolean isFixed()
public void addObserver(Observer o)
addObserver
in interface Observable
public void deleteObserver(Observer o)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable