Interface Attribute<V>

Type Parameters:
V - the type of attribute values. If the attribute supports multi-occurrences, then this is the type of elements (not the collection type).
All Superinterfaces:
Property
All Known Subinterfaces:
DynamicAttribute<V>

public interface Attribute<V> extends Property
An instance of an AttributeType containing the value of an attribute in a feature. Attribute holds three main information:
  • A reference to an attribute type which defines the base Java type and domain of valid values.
  • One or more values, which may be a singleton ([0 … 1] multiplicity) or multi-valued ([0 … ∞] multiplicity).
  • Optional characteristics about the attribute (e.g. a temperature attribute may have a characteristic holding the measurement accuracy). Characteristics are often, but not necessarily, constant for all attributes of the same type in a dataset.
Analogy with Java language: an attribute is similar to a "field" in a Java object. A field also brings together a field name, value and type, optionally completed by annotations. The value types are typically String, Number or collections of them, but other Java type are allowed except Feature. For storing a Feature value, use FeatureAssociation instead.

Attribute can be instantiated by calls to AttributeType.newInstance().

Since:
3.1
See Also: