org.geotools.data.vpf
Class VPFFeatureType

java.lang.Object
  extended by org.geotools.data.vpf.VPFFeatureType
All Implemented Interfaces:
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 VPFFeatureType
extends java.lang.Object
implements org.opengis.feature.simple.SimpleFeatureType

A VPF feature type. 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

Constructor Summary
VPFFeatureType(VPFFeatureClass cFeatureClass)
          A constructor for feature types with no information in a char.vdt file.
VPFFeatureType(VPFFeatureClass cFeatureClass, org.opengis.feature.simple.SimpleFeature cFeature)
          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()
           
 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()
           
 java.lang.String getFaccCode()
          The FACC code, a two-letter, 3-number code identifying the feature type
 VPFFeatureClass getFeatureClass()
           
 java.util.List getFileList()
          Returns a list of file objects
 org.opengis.feature.type.GeometryDescriptor getGeometryDescriptor()
           
 java.util.List getJoinList()
           
 org.opengis.feature.type.Name getName()
           
 java.util.List 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

VPFFeatureType

public VPFFeatureType(VPFFeatureClass cFeatureClass,
                      org.opengis.feature.simple.SimpleFeature cFeature)
Constructor

Parameters:
cFeatureClass - The owning feature class
cFeature - A Feature from the char.vdt file with more detailed information for this feature type

VPFFeatureType

public VPFFeatureType(VPFFeatureClass cFeatureClass)
A constructor for feature types with no information in a char.vdt file.

Parameters:
cFeatureClass - The owning feature class
Method Detail

getAttributeCount

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

getCoverage

public VPFCoverage getCoverage()
Returns:
The VPFCoverage that this FeatureType belongs to.

getDirectoryName

public java.lang.String getDirectoryName()
Returns:
The String path for the directory containing the VPFFeatureClass that this FeatureType belongs to.

getFeatureClass

public VPFFeatureClass getFeatureClass()
Returns:
Returns the featureClass.

getFileList

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

Returns:
A List containing VPFFile objects.

getJoinList

public java.util.List getJoinList()
Returns:
A List containing the ColumnPair objects which identify the file joins for the VPFFeatureClass that this FeatureType belongs to.

getTypeName

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

isAbstract

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

getFaccCode

public java.lang.String getFaccCode()
The FACC code, a two-letter, 3-number code identifying the feature type

Returns:
Returns the FACC Code.

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(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

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

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

getRestrictions

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

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

getUserData

public java.util.Map<java.lang.Object,java.lang.Object> getUserData()
Specified by:
getUserData 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


Copyright © 1996-2010 Geotools. All Rights Reserved.