001: /*
002: * GeoLBS - OpenSource Location Based Servces toolkit
003: * (C) 2004, Julian J. Ray, All Rights Reserved
004: *
005: * This library is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU Lesser General Public
007: * License as published by the Free Software Foundation;
008: * version 2.1 of the License.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: */
016:
017: package org.geotools.data.geomedia;
018:
019: /**
020: * <p>
021: * Title: GeoTools2 Development
022: * </p>
023: *
024: * <p>
025: * Description:
026: * </p>
027: *
028: * <p>
029: * Copyright: Copyright (c) Julian J. Ray 2003
030: * </p>
031: *
032: * <P>
033: * Used to pass connection parameters to a geomedia data source factory. This structure is used to allow the connection
034: * factory to dynamically load and instantiate a JDBC Data Soruce driver for the particular GeoMedia database they
035: * wish to access. Each instance contains the following:
036: *
037: * <UL>
038: * <li>
039: * MethodName - Name of a method on the Data Source object to call
040: * </li>
041: * <li>
042: * ClassType - Class name for the parameter such as String.class. Use Integer.TYPE or Double.TYPE for primitive types
043: * such as int or double.
044: * </li>
045: * <li>
046: * Method parameter.
047: * </li>
048: * </ul>
049: * </p>
050: *
051: * @author Julian J. Ray
052: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/unsupported/geomedia/src/main/java/org/geotools/data/geomedia/GeoMediaConnectionParam.java $
053: * @version 1.0
054: */
055: public class GeoMediaConnectionParam {
056: /** DOCUMENT ME! */
057: protected String mParam;
058:
059: /** DOCUMENT ME! */
060: protected Class mClass;
061:
062: /** DOCUMENT ME! */
063: protected Object mVal;
064:
065: /**
066: * Creates a new GeoMediaConnectionParam object.
067: *
068: * @param param DOCUMENT ME!
069: * @param classType DOCUMENT ME!
070: * @param val DOCUMENT ME!
071: */
072: public GeoMediaConnectionParam(String param, Class classType,
073: Object val) {
074: mParam = param;
075: mClass = classType;
076: mVal = val;
077: }
078:
079: /**
080: * getMethodName - returns the name of the method to call.
081: *
082: * @return String
083: */
084: public String getMethodName() {
085: return mParam;
086: }
087:
088: /**
089: * getClassType - returns the class type of an object passed as an argument to the method.
090: *
091: * @return Class
092: */
093: public Class getClassType() {
094: return mClass;
095: }
096:
097: /**
098: * getParam - returns an Object representing the argument passed to the method.
099: *
100: * @return Object
101: */
102: public Object getParam() {
103: return mVal;
104: }
105: }
|