org.geotools.feature
Interface PrimativeAttributeType

All Superinterfaces:
AttributeDescriptor, AttributeType, PropertyDescriptor
All Known Subinterfaces:
FeatureAttributeType, GeometryAttributeType
All Known Implementing Classes:
ChoiceAttributeType.Geometric, GeometricAttributeType, NumericAttributeType, TemporalAttributeType, TextualAttributeType

Deprecated. Will be removed in geotools 2.6

public interface PrimativeAttributeType
extends AttributeType

Adds the ability to have restrictions on a particular data primitive in a declarative manner. Standard expectations include internal validation using the specified restrictions, and that the restrictions are immutable.

Author:
dzwiers
Module:

Field Summary
 
Fields inherited from interface AttributeType
UNBOUNDED
 
Method Summary
 Filter getRestriction()
          Deprecated. This provides access to the immutable restriction for this attribute type.
 
Methods inherited from interface AttributeType
createDefaultValue, duplicate, getBinding, getLocalName, getMaxOccurs, getMinOccurs, isNillable, parse, validate
 
Methods inherited from interface AttributeDescriptor
getDefaultValue, getType
 
Methods inherited from interface PropertyDescriptor
getName, getUserData
 

Method Detail

getRestriction

Filter getRestriction()
Deprecated. 
This provides access to the immutable restriction for this attribute type. This restriction should be applied when real data hits instances of this class. This mapps to the idea of a Facet in xml schema, or restrictions in a database. Examples may include Length <= 20 (VARCHAR 20) The Default value is Filter.EXCLUDE

Specified by:
getRestriction in interface AttributeType
Returns:
the restriction for applied to this attribute type, or Filter.EXCLUDE. Mat not be null.
See Also:
Filter, Filter#ALL


Copyright © 1996-2009 Geotools. All Rights Reserved.