001: /*
002: * This file is part of the GeOxygene project source files.
003: *
004: * GeOxygene aims at providing an open framework which implements OGC/ISO specifications for
005: * the development and deployment of geographic (GIS) applications. It is a open source
006: * contribution of the COGIT laboratory at the Institut Géographique National (the French
007: * National Mapping Agency).
008: *
009: * See: http://oxygene-project.sourceforge.net
010: *
011: * Copyright (C) 2005 Institut Géographique National
012: *
013: * This library is free software; you can redistribute it and/or modify it under the terms
014: * of the GNU Lesser General Public License as published by the Free Software Foundation;
015: * either version 2.1 of the License, or any later version.
016: *
017: * This library is distributed in the hope that it will be useful, but WITHOUT ANY
018: * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
019: * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
020: *
021: * You should have received a copy of the GNU Lesser General Public License along with
022: * this library (see file LICENSE if present); if not, write to the Free Software
023: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
024: *
025: */
026:
027: package fr.ign.cogit.geoxygene.example.tutorial;
028:
029: /**
030: * Exemple.
031: *
032: * @author Thierry Badard & Arnaud Braun
033: * @version 1.0
034: *
035: */
036:
037: public class MyClass {
038:
039: /** Constructeur. */
040: public MyClass() {
041: }
042:
043: /** Identifiant. */
044: protected int id;
045:
046: public int getId() {
047: return id;
048: }
049:
050: public void setId(int i) {
051: id = i;
052: }
053:
054: /** Attribut de type entier. */
055: protected int field0;
056:
057: public int getField0() {
058: return field0;
059: }
060:
061: public void setField0(int i) {
062: field0 = i;
063: }
064:
065: /** Attribut de type String. */
066: protected String field1;
067:
068: public String getField1() {
069: return field1;
070: }
071:
072: public void setField1(String string) {
073: field1 = string;
074: }
075:
076: /** Attribut de type boolean. */
077: protected boolean field2;
078:
079: public boolean getField2() {
080: return field2;
081: }
082:
083: public void setField2(boolean b) {
084: field2 = b;
085: }
086:
087: /** Attribut de type double. */
088: protected double field3;
089:
090: public double getField3() {
091: return field3;
092: }
093:
094: public void setField3(double d) {
095: field3 = d;
096: }
097:
098: /** Affiche "bonjour". */
099: public void bonjour() {
100: System.out.println("bonjour");
101: }
102: }
|