org.geotools.data.vpf
Class VPFFeatureClass

java.lang.Object
  extended by org.geotools.data.vpf.VPFFeatureClass
All Implemented Interfaces:
DataTypesDefinition, FileConstants, org.opengis.feature.simple.SimpleFeatureType, org.opengis.feature.type.AttributeType, org.opengis.feature.type.ComplexType, org.opengis.feature.type.FeatureType, org.opengis.feature.type.PropertyType

public class VPFFeatureClass
extends java.lang.Object
implements DataTypesDefinition, FileConstants, org.opengis.feature.simple.SimpleFeatureType

A VPF feature class. Note that feature classes may contain one or more feature types. However, all of the feature types of a feature class share the same schema. A feature type will therefore delegate its schema related operations to its feature class.

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
 
Fields inherited from interface org.geotools.data.vpf.ifc.FileConstants
AREA_BOUMDING_RECTANGLE_TABLE, AREA_FEATURE_TABLE, AREA_JOIN_TABLE, AREA_THEMATIC_INDEX, CHARACTER_VALUE_DESCRIPTION_TABLE, COLUMN_MANDATORY, COLUMN_MANDATORY_AT_LEVEL_0, COLUMN_MANDATORY_AT_LEVEL_1, COLUMN_MANDATORY_AT_LEVEL_2, COLUMN_MANDATORY_AT_LEVEL_3, COLUMN_MANDATORY_IF_TILES, COLUMN_OPTIONAL, COLUMN_OPTIONAL_FP, COMPLEX_BOUNDING_RECTANGLE_TABLE, COMPLEX_FEATURE_TABLE, COMPLEX_JOIN_TABLE, COMPLEX_THEMATIC_INDEX, CONNECTED_NODE_PRIMITIVE, CONNECTED_NODE_SPATIAL_INDEX, COVERAGE_ATTRIBUTE_TABLE, DATA_QUALITY_COVERAGE, DATA_QUALITY_TABLE, DATABASE_HEADER_TABLE, DIAGNOSITC_POINT_TABLE, DIR_DQ, DIR_GAZETTE, DIR_LIBREF, DIR_TILEREF, EDGE_BOUNDING_RECTANGLE, EDGE_PRIMITIVE, EDGE_SPATIAL_INDEX, ENTITY_NODE_PRIMITIVE, ENTITY_NODE_SPATIAL_INDEX, EXT_ABR, EXT_AFT, EXT_AJT, EXT_ATI, EXT_CBR, EXT_CFT, EXT_CJT, EXT_CTI, EXT_DOC, EXT_DPT, EXT_FIT, EXT_FTI, EXT_JTI, EXT_LBR, EXT_LFT, EXT_LJT, EXT_LTI, EXT_PBR, EXT_PFT, EXT_PJT, EXT_PTI, EXT_RAT, EXT_RPT, EXT_TFT, EXT_TTI, FACE_BOUNDING_RECTANGLE, FACE_PRIMITIVE, FACE_SPATIAL_INDEX, FEATURE_CLASS_ATTRIBUTE_TABLE, FEATURE_CLASS_SCHEMA_TABLE, FEATURE_INDEX_TABLE, FEATURE_THEMATIC_INDEX, GEOGRAPHIC_REFERENCE_TABLE, INTEGER_VALUE_DESCRIPTION_TABLE, JOIN_THEMATIC_INDEX, KEY_NON_UNIQUE, KEY_PRIMARY, KEY_UNIQUE, LIBRARY_ATTTIBUTE_TABLE, LIBRARY_HEADER_TABLE, LIBRARY_REFERENCE_COVERAGE, LINE_BOUNDING_RECTANGLE_TABLE, LINE_FEATURE_TABLE, LINE_JOIN_TABLE, LINE_THEMATIC_INDEX, NAMES_REFERENCE_COVERAGE, NARRATIVE_TABLE, POINT_BOUNDING_RECTANGLE_TABLE, POINT_FEATURE_TABLE, POINT_JOIN_TABLE, POINT_THEMATIC_INDEX, REGISTRATION_POINT_TABLE, RELATED_ATTRIBUTE_TABLE, RING_TABLE, TABLE_CAT, TABLE_CHAR, TABLE_CND, TABLE_CSI, TABLE_DHT, TABLE_DQT, TABLE_EBR, TABLE_EDG, TABLE_END, TABLE_ESI, TABLE_FAC, TABLE_FBR, TABLE_FCA, TABLE_FCS, TABLE_FSI, TABLE_GRT, TABLE_INT, TABLE_LAT, TABLE_LHT, TABLE_NSI, TABLE_RNG, TABLE_TSI, TABLE_TXT, TEXT_FEATURE_TABLE, TEXT_PRIMITIVE, TEXT_SPATIAL_INDEX, TEXT_THEMATIC_TABLE, TILE_REFERENCE_COVERAGE, VPF_ELEMENT_SEPARATOR, VPF_FIELD_SEPARATOR, VPF_RECORD_SEPARATOR
 
Constructor Summary
VPFFeatureClass(VPFCoverage cCoverage, java.lang.String cName, java.lang.String cDirectoryName)
          Constructor
VPFFeatureClass(VPFCoverage cCoverage, java.lang.String cName, java.lang.String cDirectoryName, java.net.URI cNamespace)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getAttributeCount()
           
 java.util.List getAttributeDescriptors()
           
 java.lang.Class getBinding()
           
 org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
           
 VPFCoverage getCoverage()
          The coverage that owns this feature class
 org.opengis.util.InternationalString getDescription()
           
 org.opengis.feature.type.AttributeDescriptor getDescriptor(int index)
           
 org.opengis.feature.type.AttributeDescriptor getDescriptor(org.opengis.feature.type.Name name)
           
 org.opengis.feature.type.AttributeDescriptor getDescriptor(java.lang.String name)
           
 java.util.Collection getDescriptors()
           
 java.lang.String getDirectoryName()
          The path to the directory that contains this feature class
 java.util.List getFileList()
          Returns a list of file objects
 org.opengis.feature.type.GeometryDescriptor getGeometryDescriptor()
           
 VPFGeometryFactory getGeometryFactory()
           
 java.util.List getJoinList()
          DOCUMENT ME!
 org.opengis.feature.type.Name getName()
           
 java.util.List<org.opengis.filter.Filter> getRestrictions()
           
 org.opengis.feature.type.AttributeType getSuper()
           
 org.opengis.feature.type.AttributeType getType(int index)
           
 org.opengis.feature.type.AttributeType getType(org.opengis.feature.type.Name name)
           
 org.opengis.feature.type.AttributeType getType(java.lang.String name)
           
 java.lang.String getTypeName()
           
 java.util.List getTypes()
           
 java.util.Map<java.lang.Object,java.lang.Object> getUserData()
           
 int hashCode()
           
 int indexOf(org.opengis.feature.type.Name name)
           
 int indexOf(java.lang.String name)
           
 boolean isAbstract()
           
 boolean isIdentified()
           
 boolean isInline()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VPFFeatureClass

public VPFFeatureClass(VPFCoverage cCoverage,
                       java.lang.String cName,
                       java.lang.String cDirectoryName)
                throws SchemaException
Constructor

Parameters:
cCoverage - the owning coverage
cName - the name of the class
cDirectoryName - the directory containing the class
Throws:
SchemaException - For problems making one of the feature classes as a FeatureType.

VPFFeatureClass

public VPFFeatureClass(VPFCoverage cCoverage,
                       java.lang.String cName,
                       java.lang.String cDirectoryName,
                       java.net.URI cNamespace)
                throws SchemaException
Constructor

Parameters:
cCoverage - the owning coverage
cName - the name of the class
cDirectoryName - the directory containing the class
cNamespace - the namespace to create features with. If null then a default from VPFLibrary.DEFAULTNAMESPACE is assigned.
Throws:
SchemaException - For problems making one of the feature classes as a FeatureType.
Method Detail

getCoverage

public VPFCoverage getCoverage()
The coverage that owns this feature class

Returns:
a VPFCoverage object

getDirectoryName

public java.lang.String getDirectoryName()
The path to the directory that contains this feature class

Returns:
a String value representing the path to the directory.

getFileList

public java.util.List getFileList()
Returns a list of file objects

Returns:
a List containing VPFFile objects.

getJoinList

public java.util.List getJoinList()
DOCUMENT ME!

Returns:
aList containing ColumnPair objects which identify the file joins.

getTypeName

public java.lang.String getTypeName()
Specified by:
getTypeName in interface org.opengis.feature.simple.SimpleFeatureType

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in interface org.opengis.feature.simple.SimpleFeatureType

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface org.opengis.feature.type.PropertyType

getGeometryFactory

public VPFGeometryFactory getGeometryFactory()
Returns:
Returns the geometryFactory.

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface org.opengis.feature.type.PropertyType
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface org.opengis.feature.type.PropertyType
Overrides:
hashCode in class java.lang.Object

getDescriptor

public org.opengis.feature.type.AttributeDescriptor getDescriptor(org.opengis.feature.type.Name name)
Specified by:
getDescriptor in interface org.opengis.feature.simple.SimpleFeatureType
Specified by:
getDescriptor in interface org.opengis.feature.type.ComplexType

getDescriptor

public org.opengis.feature.type.AttributeDescriptor getDescriptor(java.lang.String name)
Specified by:
getDescriptor in interface org.opengis.feature.simple.SimpleFeatureType
Specified by:
getDescriptor in interface org.opengis.feature.type.ComplexType

getDescriptor

public org.opengis.feature.type.AttributeDescriptor getDescriptor(int index)
Specified by:
getDescriptor in interface org.opengis.feature.simple.SimpleFeatureType

getAttributeDescriptors

public java.util.List getAttributeDescriptors()
Specified by:
getAttributeDescriptors in interface org.opengis.feature.simple.SimpleFeatureType

getType

public org.opengis.feature.type.AttributeType getType(org.opengis.feature.type.Name name)
Specified by:
getType in interface org.opengis.feature.simple.SimpleFeatureType

getType

public org.opengis.feature.type.AttributeType getType(java.lang.String name)
Specified by:
getType in interface org.opengis.feature.simple.SimpleFeatureType

getType

public org.opengis.feature.type.AttributeType getType(int index)
Specified by:
getType in interface org.opengis.feature.simple.SimpleFeatureType

getTypes

public java.util.List getTypes()
Specified by:
getTypes in interface org.opengis.feature.simple.SimpleFeatureType

getCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Specified by:
getCoordinateReferenceSystem in interface org.opengis.feature.type.FeatureType

getGeometryDescriptor

public org.opengis.feature.type.GeometryDescriptor getGeometryDescriptor()
Specified by:
getGeometryDescriptor in interface org.opengis.feature.type.FeatureType

getBinding

public java.lang.Class getBinding()
Specified by:
getBinding in interface org.opengis.feature.type.ComplexType
Specified by:
getBinding in interface org.opengis.feature.type.PropertyType

getDescriptors

public java.util.Collection getDescriptors()
Specified by:
getDescriptors in interface org.opengis.feature.type.ComplexType

isInline

public boolean isInline()
Specified by:
isInline in interface org.opengis.feature.type.ComplexType

getSuper

public org.opengis.feature.type.AttributeType getSuper()
Specified by:
getSuper in interface org.opengis.feature.type.AttributeType
Specified by:
getSuper in interface org.opengis.feature.type.PropertyType

isIdentified

public boolean isIdentified()
Specified by:
isIdentified in interface org.opengis.feature.type.AttributeType
Specified by:
isIdentified in interface org.opengis.feature.type.FeatureType

getDescription

public org.opengis.util.InternationalString getDescription()
Specified by:
getDescription in interface org.opengis.feature.type.PropertyType

getName

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

indexOf

public int indexOf(java.lang.String name)
Specified by:
indexOf in interface org.opengis.feature.simple.SimpleFeatureType

indexOf

public int indexOf(org.opengis.feature.type.Name name)
Specified by:
indexOf in interface org.opengis.feature.simple.SimpleFeatureType

getRestrictions

public java.util.List<org.opengis.filter.Filter> getRestrictions()
Specified by:
getRestrictions in interface org.opengis.feature.type.PropertyType

getUserData

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


Copyright © 1996-2010 Geotools. All Rights Reserved.