org.geotools.feature
Class AssociationImpl

Object
  extended by PropertyImpl
      extended by AssociationImpl
All Implemented Interfaces:
Association, Property

public class AssociationImpl
extends PropertyImpl
implements Association


Field Summary
 
Fields inherited from class PropertyImpl
descriptor, userData, value
 
Constructor Summary
protected AssociationImpl(Attribute value, AssociationDescriptor descriptor)
           
 
Method Summary
 AssociationDescriptor getDescriptor()
          The PropertyDscriptor 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, hashCode, isNillable, setValue, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Association
setValue
 
Methods inherited from interface Property
getName, getUserData, 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 interface Association
Returns:
type of the attribute of the association.

getDescriptor

public AssociationDescriptor getDescriptor()
Description copied from interface: Property
The PropertyDscriptor 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 or ComplexAttribute.

Specified by:
getDescriptor in interface Association
Specified by:
getDescriptor in interface Property
Overrides:
getDescriptor in class PropertyImpl
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 interface Association
Specified by:
getType in interface Property
Overrides:
getType in class PropertyImpl
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 case getDescriptor().isNillable() would be true.

Specified by:
getValue in interface Association
Specified by:
getValue in interface Property
Overrides:
getValue in class PropertyImpl
Returns:
The value of the property.
See Also:
Property.getValue()


Copyright © 1996-2014 Geotools. All Rights Reserved.