Package org.opengis.feature
Interface Property
-
- All Known Subinterfaces:
Attribute<V>,DynamicAttribute<V>,FeatureAssociation
public interface PropertyAn instance of aPropertyType. A property is usually part of another entity such as aFeature. This interface is the parent type of attribute and feature association but not feature.A property is a wrapper around an arbitrary object or value. It provides the following information:
- A value, available via the
getValue()method. The value can be set via a setter method provided by the sub-interface. - A type, available via the
getType()orgetRole()method provided by the sub-interface. ThePropertyTypedefines information about the property. This includes which Java class the value of the property is an instance of, any restrictions on the value, etc.
- Since:
- 3.1
-
-
Method Summary
Modifier and Type Method Description GenericNamegetName()Returns the name of this property.ObjectgetValue()Returns the value or content of the property, ornullif none.
-
-
-
Method Detail
-
getName
GenericName getName()
Returns the name of this property. This is a convenience method forgetType().getName()orgetRole().getName(), depending on the sub-interface.- Returns:
- name of this property.
-
getValue
Object getValue()
Returns the value or content of the property, ornullif none.- If this property is an
Attribute, then the returned object may be an instance of any Java class assignable toAttributeType.getValueClass(). - If this property is an
FeatureAssociation, then the returned object is aFeature.
- Returns:
- the value of the property, or
nullif none.
- If this property is an
-
-