org.geotools.feature.type
Class TextualAttributeType

Object
  extended by PropertyDescriptorImpl
      extended by AttributeDescriptorImpl
          extended by DefaultAttributeType
              extended by TextualAttributeType
All Implemented Interfaces:
AttributeType, PrimativeAttributeType, AttributeDescriptor, PropertyDescriptor

public class TextualAttributeType
extends DefaultAttributeType
implements PrimativeAttributeType

Module:

Field Summary
 
Fields inherited from class AttributeDescriptorImpl
defaultValue
 
Fields inherited from class PropertyDescriptorImpl
isNillable, maxOccurs, minOccurs, name, type
 
Fields inherited from interface AttributeType
UNBOUNDED
 
Constructor Summary
TextualAttributeType(String name, boolean nillable, int min, int max, Object defaultValue, Filter filter)
           
 
Method Summary
 Object duplicate(Object o)
          Duplicate as a String
 Filter getRestriction()
          This represents a Facet in XML schema ... for example can be used to represent the max length of 20 for a string.
 
Methods inherited from class DefaultAttributeType
createAttributeType, createDefaultValue, equals, getBinding, getBinding, getLocalName, getLocalName, getRestriction, hashCode, isGeometry, parse, toString, validate
 
Methods inherited from class AttributeDescriptorImpl
getDefaultValue, getType
 
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 AttributeType
createDefaultValue, getBinding, getLocalName, getMaxOccurs, getMinOccurs, isNillable, parse, validate
 
Methods inherited from interface AttributeDescriptor
getDefaultValue, getType
 
Methods inherited from interface PropertyDescriptor
getName, getUserData
 

Constructor Detail

TextualAttributeType

public TextualAttributeType(String name,
                            boolean nillable,
                            int min,
                            int max,
                            Object defaultValue,
                            Filter filter)
Method Detail

duplicate

public Object duplicate(Object o)
Duplicate as a String

Specified by:
duplicate in interface AttributeType
Overrides:
duplicate in class DefaultAttributeType
Parameters:
o - DOCUMENT ME!
Returns:
a String obtained by calling toString or null.

getRestriction

public Filter getRestriction()
Description copied from interface: AttributeType
This represents a Facet in XML schema ... for example can be used to represent the max length of 20 for a string.

Specified by:
getRestriction in interface AttributeType
Specified by:
getRestriction in interface PrimativeAttributeType
Overrides:
getRestriction in class DefaultAttributeType
Returns:
Filter, or Filter.INCLUDE if no restriction is needed.
See Also:
Filter, Filter#ALL


Copyright © 1996-2009 Geotools. All Rights Reserved.