org.geotools.feature.type
Class GeometryDescriptorImpl

Object
  extended by PropertyDescriptorImpl
      extended by AttributeDescriptorImpl
          extended by GeometryDescriptorImpl
All Implemented Interfaces:
AttributeDescriptor, GeometryDescriptor, PropertyDescriptor

public class GeometryDescriptorImpl
extends AttributeDescriptorImpl
implements GeometryDescriptor


Field Summary
 
Fields inherited from class AttributeDescriptorImpl
defaultValue
 
Fields inherited from class PropertyDescriptorImpl
isNillable, maxOccurs, minOccurs, name, type
 
Constructor Summary
GeometryDescriptorImpl(GeometryType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
           
 
Method Summary
 CoordinateReferenceSystem getCoordinateReferenceSystem()
          The coordinate reference system in which these geometries are defined.
 String getLocalName()
          The local name for this AttributeDescriptor.
 GeometryType getType()
          The type of the property defined by the descriptor.
 
Methods inherited from class AttributeDescriptorImpl
equals, getDefaultValue, hashCode, toString
 
Methods inherited from class PropertyDescriptorImpl
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface AttributeDescriptor
getDefaultValue
 
Methods inherited from interface PropertyDescriptor
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
 

Constructor Detail

GeometryDescriptorImpl

public GeometryDescriptorImpl(GeometryType type,
                              Name name,
                              int min,
                              int max,
                              boolean isNillable,
                              Object defaultValue)
Method Detail

getType

public GeometryType getType()
Description copied from interface: PropertyDescriptor
The type of the property defined by the descriptor.

This value should never be null. The type contains information about the value of the property such as its java class.

Specified by:
getType in interface AttributeDescriptor
Specified by:
getType in interface GeometryDescriptor
Specified by:
getType in interface PropertyDescriptor
Overrides:
getType in class AttributeDescriptorImpl
See Also:
PropertyDescriptor.getType()

getCoordinateReferenceSystem

public CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from interface: GeometryDescriptor
The coordinate reference system in which these geometries are defined.

This method may return null, but this should only occur in cases where the actual crs is not known. A common case is when a shapefile does not have an accompanied .prj file.

Specified by:
getCoordinateReferenceSystem in interface GeometryDescriptor

getLocalName

public String getLocalName()
Description copied from interface: AttributeDescriptor
The local name for this AttributeDescriptor. Specifically this returns getName().getLocalPart().

Specified by:
getLocalName in interface AttributeDescriptor
Overrides:
getLocalName in class AttributeDescriptorImpl
Returns:
The local name for this attribute descriptor.


Copyright © 1996-2014 Geotools. All Rights Reserved.