|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.vpf.VPFColumn
A column in a VPF File.
| Field Summary |
| Fields inherited from interface org.geotools.feature.AttributeType |
UNBOUNDED |
| Constructor Summary | |
VPFColumn(java.lang.String name,
char type,
int elementsNumber,
char keyType,
java.lang.String colDesc,
java.lang.String valDescTableName,
java.lang.String thematicIdx,
java.lang.String narrTable)
Constructor with all of the elements of a VPF column |
|
| Method Summary | |
java.lang.Object |
createDefaultValue()
Create a default value for this AttributeType. |
java.lang.Object |
duplicate(java.lang.Object src)
Create a duplicate value of the passed Object. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Class |
getColumnClass()
Retrieves the class for the column, based on a char value. |
int |
getElementsNumber()
Returns the elementsNumber field |
GeometryAttributeType |
getGeometryAttributeType()
Identifies and returns the GeometryAttributeType, or null if none exists. |
int |
getMaxOccurs()
Returns the Max number of occurences ... |
int |
getMinOccurs()
Returns the Min number of occurences ... |
java.lang.String |
getName()
Gets the name of this attribute. |
java.lang.String |
getNarrTable()
Gets the value of narrTable |
Filter |
getRestriction()
This represents a Facet in XML schema ... for example can be used to represent the max length of 20 for a string. |
java.lang.String |
getThematicIdx()
Gets the value of thematicIdx |
java.lang.Class |
getType()
Gets the type of this attribute. |
char |
getTypeChar()
Returns the typeChar field |
java.lang.String |
getValDescTableName()
Gets the value of valDescTableName |
int |
hashCode()
|
boolean |
isAttemptLookup()
|
boolean |
isGeometry()
|
boolean |
isNillable()
Returns whether nulls are allowed for this attribute. |
java.lang.Object |
parse(java.lang.Object value)
Allows this AttributeType to convert an argument to its prefered storage type. |
void |
validate(java.lang.Object obj)
Whether the tested object passes the validity constraints of this AttributeType. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VPFColumn(java.lang.String name,
char type,
int elementsNumber,
char keyType,
java.lang.String colDesc,
java.lang.String valDescTableName,
java.lang.String thematicIdx,
java.lang.String narrTable)
name - type - elementsNumber - keyType - colDesc - valDescTableName - thematicIdx - narrTable - | Method Detail |
public java.lang.Class getColumnClass()
public java.lang.Object createDefaultValue()
AttributeType
createDefaultValue in interface AttributeType
public java.lang.Object duplicate(java.lang.Object src)
throws IllegalAttributeException
AttributeType
duplicate in interface AttributeTypesrc - The Object to duplicate.
IllegalAttributeException - If the src Object is not the correct
type.public java.lang.String getName()
AttributeType
getName in interface AttributeTypepublic java.lang.String getNarrTable()
public java.lang.String getThematicIdx()
public java.lang.Class getType()
AttributeType
getType in interface AttributeTypepublic java.lang.String getValDescTableName()
public boolean isGeometry()
public boolean isNillable()
AttributeType
isNillable in interface AttributeType
public java.lang.Object parse(java.lang.Object value)
throws java.lang.IllegalArgumentException
AttributeType
parse in interface AttributeTypevalue - 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 void validate(java.lang.Object obj)
throws java.lang.IllegalArgumentException
AttributeTypeAttributeType.getType(), non-null if isNillable is
false, and a geometry if isGeometry is true. If The
object does not validate then an IllegalArgumentException reporting the
error in validation should be thrown.
validate in interface AttributeTypeobj - The object to be tested for validity.
java.lang.IllegalArgumentException - if the object does not validate.public char getTypeChar()
public int getElementsNumber()
public GeometryAttributeType getGeometryAttributeType()
GeometryAttributeType valuepublic boolean isAttemptLookup()
public Filter getRestriction()
AttributeType
getRestriction in interface AttributeTypepublic int getMinOccurs()
AttributeType
getMinOccurs in interface AttributeTypepublic int getMaxOccurs()
AttributeType
getMaxOccurs in interface AttributeTypepublic boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||