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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getAttribute(T adaptee)
Gets the value of the attribute.String
getAttributeName()
Gets the name of the attribute.Class<?>
getAttributeType()
Gets the attribute type.void
setAttribute(T adaptee, Object val)
Sets the value of the attribute.
-
-
-
Method Detail
-
getAttributeName
String getAttributeName()
Gets the name of the attribute.- Returns:
- the name of the attribute.
-
getAttribute
Object getAttribute(T adaptee)
Gets the value of the attribute.- Parameters:
adaptee
- the object to get the attribute value from- Returns:
- the value of the attribute.
-
setAttribute
void setAttribute(T adaptee, Object val) throws org.opengis.feature.IllegalAttributeException
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.
-
-