org.geotools.data.vpf
Class VPFColumn

java.lang.Object
  extended by org.geotools.data.vpf.VPFColumn
All Implemented Interfaces:
DataTypesDefinition, org.opengis.feature.type.AttributeDescriptor, org.opengis.feature.type.PropertyDescriptor

public class VPFColumn
extends java.lang.Object
implements org.opengis.feature.type.AttributeDescriptor, DataTypesDefinition

A column in a VPF File.

Author:
Jeff Yutzler

Field Summary
 
Fields inherited from interface org.geotools.data.vpf.ifc.DataTypesDefinition
BIG_ENDIAN_ORDER, CHAR_NULL_VALUE, DATA_2_COORD_F, DATA_2_COORD_F_LEN, DATA_2_COORD_R, DATA_2_COORD_R_LEN, DATA_3_COORD_F, DATA_3_COORD_F_LEN, DATA_3_COORD_R, DATA_3_COORD_R_LEN, DATA_DATE_TIME, DATA_DATE_TIME_LEN, DATA_LEVEL1_TEXT, DATA_LEVEL2_TEXT, DATA_LEVEL3_TEXT, DATA_LONG_FLOAT, DATA_LONG_FLOAT_LEN, DATA_LONG_INTEGER, DATA_LONG_INTEGER_LEN, DATA_NULL_FIELD, DATA_NULL_FIELD_LEN, DATA_SHORT_FLOAT, DATA_SHORT_FLOAT_LEN, DATA_SHORT_INTEGER, DATA_SHORT_INTEGER_LEN, DATA_TEXT, DATA_TRIPLET_ID, DATA_TRIPLET_ID_LEN, LEAST_SIGNIF_FIRST, LITTLE_ENDIAN_ORDER, MOST_SIGNIF_FIRST, STRING_NULL_VALUE, STRING_NULL_VALUES
 
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
 boolean equals(java.lang.Object obj)
           
 java.lang.Class getColumnClass()
          Retrieves the class for the column, based on a char value.
 java.lang.Object getDefaultValue()
           
 int getElementsNumber()
          Returns the elementsNumber field
 org.opengis.feature.type.GeometryDescriptor getGeometryAttributeType()
          Identifies and returns the GeometryAttributeType, or null if none exists.
 java.lang.String getLocalName()
          
 int getMaxOccurs()
           
 int getMinOccurs()
           
 org.opengis.feature.type.Name getName()
           
 java.lang.String getNarrTable()
          Gets the value of narrTable
 java.lang.String getThematicIdx()
          Gets the value of thematicIdx
 org.opengis.feature.type.AttributeType getType()
           
 char getTypeChar()
          Returns the typeChar field
 java.util.Map<java.lang.Object,java.lang.Object> getUserData()
           
 java.lang.String getValDescTableName()
          Gets the value of valDescTableName
 int hashCode()
           
 boolean isAttemptLookup()
           
 boolean isGeometry()
           
 boolean isNillable()
           
 org.opengis.feature.type.PropertyType type()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VPFColumn

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)
Constructor with all of the elements of a VPF column

Parameters:
name -
type -
elementsNumber -
keyType -
colDesc -
valDescTableName -
thematicIdx -
narrTable -
Method Detail

getColumnClass

public java.lang.Class getColumnClass()
Retrieves the class for the column, based on a char value.

Returns:
the class

getLocalName

public java.lang.String getLocalName()

Specified by:
getLocalName in interface org.opengis.feature.type.AttributeDescriptor

getNarrTable

public java.lang.String getNarrTable()
Gets the value of narrTable

Returns:
the value of narrTable

getThematicIdx

public java.lang.String getThematicIdx()
Gets the value of thematicIdx

Returns:
the value of thematicIdx

getValDescTableName

public java.lang.String getValDescTableName()
Gets the value of valDescTableName

Returns:
the value of valDescTableName

isGeometry

public boolean isGeometry()

isNillable

public boolean isNillable()
Specified by:
isNillable in interface org.opengis.feature.type.PropertyDescriptor

getTypeChar

public char getTypeChar()
Returns the typeChar field

Returns:
Returns the typeChar.

getElementsNumber

public int getElementsNumber()
Returns the elementsNumber field

Returns:
Returns the elementsNumber.

getGeometryAttributeType

public org.opengis.feature.type.GeometryDescriptor getGeometryAttributeType()
Identifies and returns the GeometryAttributeType, or null if none exists.

Returns:
The GeometryAttributeType value

isAttemptLookup

public boolean isAttemptLookup()
Returns:
Returns the attemptLookup.

getMinOccurs

public int getMinOccurs()
Specified by:
getMinOccurs in interface org.opengis.feature.type.PropertyDescriptor

getMaxOccurs

public int getMaxOccurs()
Specified by:
getMaxOccurs in interface org.opengis.feature.type.PropertyDescriptor

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getType

public org.opengis.feature.type.AttributeType getType()
Specified by:
getType in interface org.opengis.feature.type.AttributeDescriptor
Specified by:
getType in interface org.opengis.feature.type.PropertyDescriptor

getName

public org.opengis.feature.type.Name getName()
Specified by:
getName in interface org.opengis.feature.type.PropertyDescriptor

getDefaultValue

public java.lang.Object getDefaultValue()
Specified by:
getDefaultValue in interface org.opengis.feature.type.AttributeDescriptor

getUserData

public java.util.Map<java.lang.Object,java.lang.Object> getUserData()
Specified by:
getUserData in interface org.opengis.feature.type.PropertyDescriptor

type

public org.opengis.feature.type.PropertyType type()


Copyright © 1996-2010 Geotools. All Rights Reserved.