Package org.geotools.api.feature.type
Interface AssociationType
-
- All Superinterfaces:
PropertyType
- All Known Implementing Classes:
AssociationTypeImpl
public interface AssociationType extends PropertyType
The type of an association; used to describe kind of relationship between two entities.The notion of an "association" is similar to that of an association in UML and is used to model a relationship among two attributes. See the javadoc for
Association
for more info on the semantics of associations.An association is used to relate one attribute to another. The type of the association specifies the type of the related attribute with the
getRelatedType()
method.- Author:
- Jody Garnett, Refractions Research, Inc., Justin Deoliveira, The Open Planning Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<?>
getBinding()
Override ofPropertyType.getBinding()
which specifies that this method should returngetRelatedType().getBinding()
, that is it returns the binding of the related type.AttributeType
getRelatedType()
The attribute type of the related attribute in the association.AssociationType
getSuper()
Override ofPropertyType.getSuper()
which type narrows toAssociationType
.-
Methods inherited from interface PropertyType
equals, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract
-
-
-
-
Method Detail
-
getSuper
AssociationType getSuper()
Override ofPropertyType.getSuper()
which type narrows toAssociationType
.- Specified by:
getSuper
in interfacePropertyType
- Returns:
- The parent or super type, or
null
. - See Also:
PropertyType.getSuper()
-
getRelatedType
AttributeType getRelatedType()
The attribute type of the related attribute in the association.- Returns:
- The type of the related attribute.
-
getBinding
Class<?> getBinding()
Override ofPropertyType.getBinding()
which specifies that this method should returngetRelatedType().getBinding()
, that is it returns the binding of the related type.- Specified by:
getBinding
in interfacePropertyType
- Returns:
- The binding of the property type.
-
-