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 protectedAssociationImpl(Attribute value, AssociationDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssociationDescriptorgetDescriptor()ThePropertyDscriptorof the property, null if this is a top-level value.AttributeTypegetRelatedType()Returns the type of the associated attribute.AssociationTypegetType()The type of the property.AttributegetValue()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:AssociationReturns the type of the associated attribute.This method is a convenience for:
getType().getRelatedType()
- Specified by:
getRelatedTypein interfaceAssociation- Returns:
- type of the attribute of the association.
-
getDescriptor
public AssociationDescriptor getDescriptor()
Description copied from interface:PropertyThePropertyDscriptorof 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
FeatureorComplexAttribute.- Specified by:
getDescriptorin interfaceAssociation- Specified by:
getDescriptorin interfaceProperty- Overrides:
getDescriptorin classPropertyImpl- Returns:
- The property descriptor, null if this is a top-level value.
- See Also:
ComplexAttribute
-
getType
public AssociationType getType()
Description copied from interface:PropertyThe 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:
getTypein interfaceAssociation- Specified by:
getTypein interfaceProperty- Overrides:
getTypein classPropertyImpl- Returns:
- The property type.
- See Also:
Property.getType()
-
getValue
public Attribute getValue()
Description copied from interface:PropertyThe 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:
getValuein interfaceAssociation- Specified by:
getValuein interfaceProperty- Overrides:
getValuein classPropertyImpl- Returns:
- The value of the property.
- See Also:
Property.getValue()
-
-