org.geotools.feature.type
Class TemporalAttributeType
Object
PropertyDescriptorImpl
AttributeDescriptorImpl
DefaultAttributeType
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)
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 |
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)
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-2010 Geotools. All Rights Reserved.