org.geotools.feature.type
Class TemporalAttributeType

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

public class TemporalAttributeType
extends DefaultAttributeType
implements PrimativeAttributeType

A Default class that represents a Temporal attribute.

Module:
modules/library/legacy (gt-legacy.jar)

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
TemporalAttributeType(String name, boolean nillable, int min, int max, Object defaultValue, Filter filter)
           
TemporalAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue, Filter filter)
           
 
Method Summary
 Object duplicate(Object o)
          Return a safe Object copy.
 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

TemporalAttributeType

public TemporalAttributeType(String name,
                             boolean nillable,
                             int min,
                             int max,
                             Object defaultValue,
                             Filter filter)

TemporalAttributeType

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

duplicate

public Object duplicate(Object o)
                 throws IllegalAttributeException
Description copied from class: DefaultAttributeType
Return a safe Object copy.

Obtain a duplicate Object if the object is mutable, or the same Object reference if it is immutable.

Specified by:
duplicate in interface AttributeType
Overrides:
duplicate in class DefaultAttributeType
Parameters:
o - The Object to duplicate.
Returns:
A duplicated Object if the type is mutable or the same Object if it is immutable or null if the passed Object is null.
Throws:
IllegalAttributeException - if the Object cannot be duplicated.

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.