Package repast.simphony.space.gis
Interface FeatureAttributeAdapter<T>
public interface FeatureAttributeAdapter<T>
Adapts a method call or combination of method calls on an object
into a feature attribute lookup.
- Author:
- Nick Collier
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(T adaptee) Gets the value of the attribute.Gets the name of the attribute.Class<?>
Gets the attribute type.void
setAttribute
(T adaptee, Object val) Sets the value of the attribute.
-
Method Details
-
getAttributeName
String getAttributeName()Gets the name of the attribute.- Returns:
- the name of the attribute.
-
getAttribute
Gets the value of the attribute.- Parameters:
adaptee
- the object to get the attribute value from- Returns:
- the value of the attribute.
-
setAttribute
Sets the value of the attribute.- Parameters:
adaptee
- the object on which to set the attribute valueval
- the attribute value- Throws:
org.opengis.feature.IllegalAttributeException
- if there is an error while setting the attribute
-
getAttributeType
Class<?> getAttributeType()Gets the attribute type.- Returns:
- the attribute type.
-