org.geotools.feature.type
Class AssociationTypeImpl
Object
PropertyTypeImpl
AssociationTypeImpl
- All Implemented Interfaces:
- AssociationType, PropertyType
public class AssociationTypeImpl
- extends PropertyTypeImpl
- implements AssociationType
relatedType
protected final AttributeType relatedType
AssociationTypeImpl
public AssociationTypeImpl(Name name,
AttributeType referenceType,
boolean isAbstract,
List<Filter> restrictions,
AssociationType superType,
InternationalString description)
getRelatedType
public AttributeType getRelatedType()
- Description copied from interface:
AssociationType
- The attribute type of the related attribute in the association.
- Specified by:
getRelatedType
in interface AssociationType
- Returns:
- The type of the related attribute.
getSuper
public AssociationType getSuper()
- Description copied from interface:
PropertyType
- The parent type of the property type.
This method returns null
if no super type is defined.
The super type may contain additional restrictions to be considered against
properties of the the property type.
- Specified by:
getSuper
in interface AssociationType
- Specified by:
getSuper
in interface PropertyType
- Overrides:
getSuper
in class PropertyTypeImpl
- Returns:
- The parent or super type, or
null
. - See Also:
PropertyType.getSuper()
hashCode
public int hashCode()
- Description copied from interface:
PropertyType
- Hashcode override based on
PropertyType.getName()
.
- Specified by:
hashCode
in interface PropertyType
- Overrides:
hashCode
in class PropertyTypeImpl
- Returns:
- getName().hashCode()
equals
public boolean equals(Object other)
- Description copied from interface:
PropertyType
- Equality based on property
PropertyType.getName()
.
- Specified by:
equals
in interface PropertyType
- Overrides:
equals
in class PropertyTypeImpl
- Returns:
true
if other is a PropertyType with the same name
toString
public String toString()
- Overrides:
toString
in class PropertyTypeImpl
Copyright © 1996-2014 Geotools. All Rights Reserved.