Package org.geotools.api.feature.type
Interface AssociationType
- All Superinterfaces:
PropertyType
- All Known Implementing Classes:
AssociationTypeImpl
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
Modifier and TypeMethodDescriptionClass<?>Override ofPropertyType.getBinding()which specifies that this method should returngetRelatedType().getBinding(), that is it returns the binding of the related type.The attribute type of the related attribute in the association.getSuper()Override ofPropertyType.getSuper()which type narrows toAssociationType.Methods inherited from interface PropertyType
equals, getDescription, getName, getRestrictions, getUserData, hashCode, isAbstract
-
Method Details
-
getSuper
AssociationType getSuper()Override ofPropertyType.getSuper()which type narrows toAssociationType.- Specified by:
getSuperin interfacePropertyType- Returns:
- The parent or super type, or
null. - See Also:
-
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:
getBindingin interfacePropertyType- Returns:
- The binding of the property type.
-