Package org.geotools.feature
Class AssociationImpl
- Object
-
- PropertyImpl
-
- AssociationImpl
-
- All Implemented Interfaces:
Association
,Property
public class AssociationImpl extends PropertyImpl implements Association
-
-
Field Summary
-
Fields inherited from class PropertyImpl
descriptor, value
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AssociationImpl(Attribute value, AssociationDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssociationDescriptor
getDescriptor()
ThePropertyDscriptor
of the property, null if this is a top-level value.AttributeType
getRelatedType()
Returns the type of the associated attribute.AssociationType
getType()
The type of the property.Attribute
getValue()
The value or content of the property.-
Methods inherited from class PropertyImpl
equals, getName, getUserData, getUserData, hashCode, isNillable, setValue, toString
-
Methods inherited from interface Association
setValue
-
Methods inherited from interface Property
getName, getUserData, hasUserData, isNillable
-
-
-
-
Constructor Detail
-
AssociationImpl
protected AssociationImpl(Attribute value, AssociationDescriptor descriptor)
-
-
Method Detail
-
getRelatedType
public AttributeType getRelatedType()
Description copied from interface:Association
Returns the type of the associated attribute.This method is a convenience for:
getType().getRelatedType()
- Specified by:
getRelatedType
in interfaceAssociation
- Returns:
- type of the attribute of the association.
-
getDescriptor
public AssociationDescriptor getDescriptor()
Description copied from interface:Property
ThePropertyDscriptor
of the property, null if this is a top-level value.The descriptor provides information about the property with respect to its containing entity (more often then not a
Feature
orComplexAttribute
.- Specified by:
getDescriptor
in interfaceAssociation
- Specified by:
getDescriptor
in interfaceProperty
- Overrides:
getDescriptor
in classPropertyImpl
- Returns:
- The property descriptor, null if this is a top-level value.
- See Also:
ComplexAttribute
-
getType
public AssociationType getType()
Description copied from interface:Property
The type of the property.The type contains information about the value or content of the property such as its java class.
This value is also available via
getDescriptor().getType()
.- Specified by:
getType
in interfaceAssociation
- Specified by:
getType
in interfaceProperty
- Overrides:
getType
in classPropertyImpl
- Returns:
- The property type.
- See Also:
Property.getType()
-
getValue
public Attribute getValue()
Description copied from interface:Property
The value or content of the property.The class of this object is defined by
getType().getBinding()
.This value may be
null
. In this casegetDescriptor().isNillable()
would betrue
.- Specified by:
getValue
in interfaceAssociation
- Specified by:
getValue
in interfaceProperty
- Overrides:
getValue
in classPropertyImpl
- Returns:
- The value of the property.
- See Also:
Property.getValue()
-
-