org.geotools.feature
Class MultiAttributeType

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

Deprecated. Will be removed in geotools 2.6

public class MultiAttributeType
extends DefaultAttributeType

Class to handle more than one occurance of an attribute. There may be better ways to do this, but this seems to work.

Author:
Chris Holmes
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
MultiAttributeType(AttributeType validator)
          Deprecated. Constructor with validator.
MultiAttributeType(AttributeType validator, int maxOccur)
          Deprecated. Constructor with validator and maxOccurs
MultiAttributeType(AttributeType validator, int maxOccur, int minOccur)
          Deprecated. Constructor with validator, minOccurs and maxOccurs
 
Method Summary
 Object clone()
          Deprecated. Returns a clone of this object.
 int getMaxOccurs()
          Deprecated. Gets the maxOccur of this attribute.
 int getMinOccurs()
          Deprecated. Gets the minimum number of elements that pass the validator that must be in the list to validate.
 boolean isGeometry()
          Deprecated. Returns whether the attribute is a geometry.
 String toString()
          Deprecated. Gets a representation of this object as a string.
 void validate(Object attribute)
          Deprecated. Whether the tested object is a Feature and its attributes validate against the featureType.
 
Methods inherited from class DefaultAttributeType
createAttributeType, createDefaultValue, duplicate, equals, getBinding, getBinding, getLocalName, getLocalName, getRestriction, getRestriction, hashCode, parse
 
Methods inherited from class AttributeDescriptorImpl
getDefaultValue, getType
 
Methods inherited from class PropertyDescriptorImpl
getName, getUserData, isNillable
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface AttributeType
isNillable
 
Methods inherited from interface AttributeDescriptor
getDefaultValue, getType
 
Methods inherited from interface PropertyDescriptor
getName, getUserData
 

Constructor Detail

MultiAttributeType

public MultiAttributeType(AttributeType validator)
Deprecated. 
Constructor with validator.

Parameters:
validator - Name of this attribute.

MultiAttributeType

public MultiAttributeType(AttributeType validator,
                          int maxOccur)
Deprecated. 
Constructor with validator and maxOccurs

Parameters:
validator - Name of this attribute.
maxOccur - Number of instances of this attribute in the schema.

MultiAttributeType

public MultiAttributeType(AttributeType validator,
                          int maxOccur,
                          int minOccur)
Deprecated. 
Constructor with validator, minOccurs and maxOccurs

Parameters:
validator - Name of this attribute.
maxOccur - Number of instances of this attribute in the schema.
minOccur - Class type of this attribute.
Method Detail

getMaxOccurs

public int getMaxOccurs()
Deprecated. 
Gets the maxOccur of this attribute.

Specified by:
getMaxOccurs in interface AttributeType
Specified by:
getMaxOccurs in interface PropertyDescriptor
Overrides:
getMaxOccurs in class PropertyDescriptorImpl
Returns:
MaxOccur.

getMinOccurs

public int getMinOccurs()
Deprecated. 
Gets the minimum number of elements that pass the validator that must be in the list to validate.

Specified by:
getMinOccurs in interface AttributeType
Specified by:
getMinOccurs in interface PropertyDescriptor
Overrides:
getMinOccurs in class PropertyDescriptorImpl
Returns:
MaxOccur.

isGeometry

public boolean isGeometry()
Deprecated. 
Returns whether the attribute is a geometry. Should this be false? Even if the attributes are geometries? Because this itself isn't actually a geometry, so it can't be used as a geometry.

Overrides:
isGeometry in class DefaultAttributeType
Returns:
true if the attribute's type is a geometry.

clone

public Object clone()
             throws CloneNotSupportedException
Deprecated. 
Returns a clone of this object.

Overrides:
clone in class Object
Returns:
a copy of this attribute type.
Throws:
CloneNotSupportedException - if clone is not supported.

validate

public void validate(Object attribute)
              throws IllegalArgumentException
Deprecated. 
Whether the tested object is a Feature and its attributes validate against the featureType. An IllegalArgumentException reporting the error in validation is thrown if validation fails..

Specified by:
validate in interface AttributeType
Overrides:
validate in class DefaultAttributeType
Parameters:
attribute - The object to be tested for validity.
Throws:
IllegalArgumentException - if the object does not validate.

toString

public String toString()
Deprecated. 
Gets a representation of this object as a string.

Overrides:
toString in class DefaultAttributeType
Returns:
A representation of this object as a string


Copyright © 1996-2009 Geotools. All Rights Reserved.