001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation;
009: * version 2.1 of the License.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: */
016: package org.geotools.data.geomedia;
017:
018: /**
019: * Internal class used to cache metadata from the GeoMedia GFeatures tables. An
020: * instance of this class represents a GeoMedia Feature class.
021: *
022: * @author Julian J. Ray
023: *
024: * @todo Add CSGUID information to suppot SRIDs
025: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/unsupported/geomedia/src/main/java/org/geotools/data/geomedia/GFeatureType.java $
026: */
027: class GFeatureType {
028: private String mTypeName;
029: private String mGeoColName;
030: private int mFeatureType;
031: private String mDescription;
032:
033: /**
034: * Returns the name of this Feature Class
035: *
036: * @return String
037: */
038: public String getTypeName() {
039: return mTypeName;
040: }
041:
042: /**
043: * Sets the TypeName for this feature class.
044: *
045: * @param name String
046: */
047: public void setTypeName(String name) {
048: mTypeName = name;
049: }
050:
051: /**
052: * DOCUMENT ME!
053: *
054: * @return DOCUMENT ME!
055: */
056: public String getGeomColName() {
057: return mGeoColName;
058: }
059:
060: /**
061: * DOCUMENT ME!
062: *
063: * @param name DOCUMENT ME!
064: */
065: public void setGeomColName(String name) {
066: mGeoColName = name;
067: }
068:
069: /**
070: * DOCUMENT ME!
071: *
072: * @return DOCUMENT ME!
073: */
074: public int getGeoMediaFeatureType() {
075: return mFeatureType;
076: }
077:
078: /**
079: * DOCUMENT ME!
080: *
081: * @param val DOCUMENT ME!
082: */
083: public void setGeoMediaFeatureType(int val) {
084: mFeatureType = val;
085: }
086:
087: /**
088: * DOCUMENT ME!
089: *
090: * @return DOCUMENT ME!
091: */
092: public String getDescription() {
093: return mDescription;
094: }
095:
096: /**
097: * DOCUMENT ME!
098: *
099: * @param name DOCUMENT ME!
100: */
101: public void setDescription(String name) {
102: mDescription = name;
103: }
104: }
|