Package org.geotools.feature.type
Class AssociationTypeImpl
- Object
-
- PropertyTypeImpl
-
- AssociationTypeImpl
-
- All Implemented Interfaces:
AssociationType,PropertyType
public class AssociationTypeImpl extends PropertyTypeImpl implements AssociationType
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeTyperelatedType-
Fields inherited from class PropertyTypeImpl
binding, description, isAbstract, name, restrictions, superType, userData
-
-
Constructor Summary
Constructors Constructor Description AssociationTypeImpl(Name name, AttributeType referenceType, boolean isAbstract, List<Filter> restrictions, AssociationType superType, InternationalString description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Equality based on propertyPropertyType.getName().AttributeTypegetRelatedType()The attribute type of the related attribute in the association.AssociationTypegetSuper()The parent type of the property type.inthashCode()Hashcode override based onPropertyType.getName().StringtoString()-
Methods inherited from class PropertyTypeImpl
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstract
-
Methods inherited from interface AssociationType
getBinding
-
Methods inherited from interface PropertyType
getDescription, getName, getRestrictions, getUserData, isAbstract
-
-
-
-
Field Detail
-
relatedType
protected final AttributeType relatedType
-
-
Constructor Detail
-
AssociationTypeImpl
public AssociationTypeImpl(Name name, AttributeType referenceType, boolean isAbstract, List<Filter> restrictions, AssociationType superType, InternationalString description)
-
-
Method Detail
-
getRelatedType
public AttributeType getRelatedType()
Description copied from interface:AssociationTypeThe attribute type of the related attribute in the association.- Specified by:
getRelatedTypein interfaceAssociationType- Returns:
- The type of the related attribute.
-
getSuper
public AssociationType getSuper()
Description copied from interface:PropertyTypeThe parent type of the property type.This method returns
nullif no super type is defined.The super type may contain additional restrictions to be considered against properties of the the property type.
- Specified by:
getSuperin interfaceAssociationType- Specified by:
getSuperin interfacePropertyType- Overrides:
getSuperin classPropertyTypeImpl- Returns:
- The parent or super type, or
null. - See Also:
PropertyType.getSuper()
-
hashCode
public int hashCode()
Description copied from interface:PropertyTypeHashcode override based onPropertyType.getName().- Specified by:
hashCodein interfacePropertyType- Overrides:
hashCodein classPropertyTypeImpl- Returns:
- getName().hashCode()
-
equals
public boolean equals(Object other)
Description copied from interface:PropertyTypeEquality based on propertyPropertyType.getName().- Specified by:
equalsin interfacePropertyType- Overrides:
equalsin classPropertyTypeImpl- Returns:
trueif other is a PropertyType with the same name
-
toString
public String toString()
- Overrides:
toStringin classPropertyTypeImpl
-
-