|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.feature.DefaultAttributeType
org.geotools.feature.MultiAttributeType
Class to handle more than one occurance of an attribute. There may be better ways to do this, but this seems to work.
| Field Summary |
| Fields inherited from class org.geotools.feature.DefaultAttributeType |
defaultValue, max, min, name, nillable, type |
| Fields inherited from interface org.geotools.feature.AttributeType |
UNBOUNDED |
| Constructor Summary | |
MultiAttributeType(AttributeType validator)
Constructor with validator. |
|
MultiAttributeType(AttributeType validator,
int maxOccur)
Constructor with validator and maxOccurs |
|
MultiAttributeType(AttributeType validator,
int maxOccur,
int minOccur)
Constructor with validator, minOccurs and maxOccurs |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of this object. |
int |
getMaxOccurs()
Gets the maxOccur of this attribute. |
int |
getMinOccurs()
Gets the minimum number of elements that pass the validator that must be in the list to validate. |
boolean |
isGeometry()
Returns whether the attribute is a geometry. |
java.lang.Object |
parse(java.lang.Object value)
If a single object is passed in then it is parsed into a list with just it as the element. |
java.lang.String |
toString()
Gets a representation of this object as a string. |
void |
validate(java.lang.Object attribute)
Whether the tested object is a Feature and its attributes validate against the featureType. |
| Methods inherited from class org.geotools.feature.DefaultAttributeType |
createDefaultValue, duplicate, equals, getName, getRestriction, getType, hashCode, isNillable |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MultiAttributeType(AttributeType validator)
validator - Name of this attribute.
public MultiAttributeType(AttributeType validator,
int maxOccur)
validator - Name of this attribute.maxOccur - Number of instances of this attribute in the schema.
public MultiAttributeType(AttributeType validator,
int maxOccur,
int minOccur)
validator - Name of this attribute.maxOccur - Number of instances of this attribute in the schema.minOccur - Class type of this attribute.| Method Detail |
public int getMaxOccurs()
getMaxOccurs in interface AttributeTypegetMaxOccurs in class DefaultAttributeTypepublic int getMinOccurs()
getMinOccurs in interface AttributeTypegetMinOccurs in class DefaultAttributeTypepublic boolean isGeometry()
isGeometry in class DefaultAttributeType
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - if clone is not supported.
public void validate(java.lang.Object attribute)
throws java.lang.IllegalArgumentException
validate in interface AttributeTypevalidate in class DefaultAttributeTypeattribute - The object to be tested for validity.
java.lang.IllegalArgumentException - if the object does not validate.
public java.lang.Object parse(java.lang.Object value)
throws java.lang.IllegalArgumentException
parse in interface AttributeTypeparse in class DefaultAttributeTypevalue - the object to attempt parsing of.
value converted to the preferred storage of this
AttributeType. If no parsing was possible then
the same object is returned.
java.lang.IllegalArgumentException - if parsing is attempted and is
unsuccessful.public java.lang.String toString()
toString in class DefaultAttributeType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||