| |
|
| java.lang.Object org.geotools.feature.DefaultAttributeType org.geotools.feature.MultiAttributeType
MultiAttributeType | public class MultiAttributeType extends DefaultAttributeType (Code) | | 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 version: $Id: MultiAttributeType.java 20651 2006-07-21 07:51:54Z jgarnett $ |
Method Summary | |
public Object | clone() Returns a clone of this object. | public int | getMaxOccurs() Gets the maxOccur of this attribute. | public int | getMinOccurs() Gets the minimum number of elements that pass the validator that must be
in the list to validate. | public boolean | isGeometry() Returns whether the attribute is a geometry. | public Object | parse(Object value) If a single object is passed in then it is parsed into a list with just
it as the element. | public String | toString() Gets a representation of this object as a string. | public void | validate(Object attribute) Whether the tested object is a Feature and its attributes validate
against the featureType. |
MultiAttributeType | public MultiAttributeType(AttributeType validator)(Code) | | Constructor with validator.
Parameters: validator - Name of this attribute. |
MultiAttributeType | public MultiAttributeType(AttributeType validator, int maxOccur)(Code) | | Constructor with validator and maxOccurs
Parameters: validator - Name of this attribute. Parameters: maxOccur - Number of instances of this attribute in the schema. |
MultiAttributeType | public MultiAttributeType(AttributeType validator, int maxOccur, int minOccur)(Code) | | Constructor with validator, minOccurs and maxOccurs
Parameters: validator - Name of this attribute. Parameters: maxOccur - Number of instances of this attribute in the schema. Parameters: minOccur - Class type of this attribute. |
getMaxOccurs | public int getMaxOccurs()(Code) | | Gets the maxOccur of this attribute.
MaxOccur. |
getMinOccurs | public int getMinOccurs()(Code) | | Gets the minimum number of elements that pass the validator that must be
in the list to validate.
MaxOccur. |
isGeometry | public boolean isGeometry()(Code) | | 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.
true if the attribute's type is a geometry. |
parse | public Object parse(Object value) throws IllegalArgumentException(Code) | | If a single object is passed in then it is parsed into a list with just
it as the element. If an array is passed in then it is turned into a
list.
Parameters: value - the object to attempt parsing of. value converted to the preferred storage of thisAttributeType . If no parsing was possible thenthe same object is returned. throws: IllegalArgumentException - if parsing is attempted and isunsuccessful. |
toString | public String toString()(Code) | | Gets a representation of this object as a string.
A representation of this object as a string |
validate | public void validate(Object attribute) throws IllegalArgumentException(Code) | | 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..
Parameters: attribute - The object to be tested for validity. throws: IllegalArgumentException - if the object does not validate. |
|
|
|