⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bbb.java

📁 用于GIS(全球地理系统)的分析和处理的代码。
💻 JAVA
字号:
/*
 * This file is part of the GeOxygene project source files. 
 * 
 * GeOxygene aims at providing an open framework which implements OGC/ISO specifications for 
 * the development and deployment of geographic (GIS) applications. It is a open source 
 * contribution of the COGIT laboratory at the Institut G閛graphique National (the French 
 * National Mapping Agency).
 * 
 * See: http://oxygene-project.sourceforge.net 
 *  
 * Copyright (C) 2005 Institut G閛graphique National
 *
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation; 
 * either version 2.1 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with 
 * this library (see file LICENSE if present); if not, write to the Free Software 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *  
 */

package fr.ign.cogit.geoxygene.example.relations;

// Imports necessaires aux relations 1-n et n-m    
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;


/** Classe exemple pour les relations, mono ou bidirectionnelles, avec la classe AAA.
  *  
  * @author Thierry Badard, Arnaud Braun & S閎astien Musti鑢e
  * @version 1.0
  * 
  */

public class BBB extends ClasseMere {



//////////////////////////////////////////////////////////////////////////    
//////////////////////////////////////////////////////////////////////////    
//////////////////////////////////////////////////////////////////////////    
///                                                                  /////
///                        R E L A T I O N S                         /////
///                 B I D I R E C T I O N N E L L E S                /////
///                                                                  /////
//////////////////////////////////////////////////////////////////////////    
//////////////////////////////////////////////////////////////////////////    
//////////////////////////////////////////////////////////////////////////    

    
//////////////////////////////////////////////////////////////////////////    
//      relation     BIDIRECTIONNELLE      1-1      //////////////////////
//////////////////////////////////////////////////////////////////////////    

    /** Lien bidirectionnel  1-1 vers BBB. 
     *  1 objet AAA est en relation avec 1 objet BBB au plus.             
     *  1 objet BBB est en relation avec 1 objet AAA au plus.
     *
     *  Les m閠hodes get et set sont utiles pour assurer la bidirection.
     *
     *  NB : si il n'y a pas d'objet en relation, getObjet renvoie null. 
     *  Pour casser une relation: faire setObjet(null);
     */
    private AAA objetAAA_bi11;
    
    /** R閏up鑢e l'objet en relation */
    
    public AAA getObjetAAA_bi11() {return objetAAA_bi11;  }
    
    /** D閒init l'objet en relation */
    public void setObjetAAA_bi11(AAA O) {
        AAA old = objetAAA_bi11;
        objetAAA_bi11 = O;  
        if ( old != null ) old.setObjetBBB_bi11(null);
        if ( O != null ) {
            if ( O.getObjetBBB_bi11() != this ) O.setObjetBBB_bi11(this);            
        }
    }


//////////////////////////////////////////////////////////////////////////    
//      relation     BIDIRECTIONNELLE      1-n      //////////////////////
//////////////////////////////////////////////////////////////////////////    

    /** Lien bidirectionnel 1-n vers BBB. 
     *  1 objet AAA est en relation avec n objets BBB (n pouvant etre nul).             
     *  1 objet BBB est en relation avec 1 objet AAA au plus.
     *
     *  Les m閠hodes get et set sont utiles pour assurer la bidirection.
     *
     *  NB : si il n'y a pas d'objet en relation, getObjet renvoie null. 
     *  Pour casser une relation: faire setObjet(null);
     */
    private AAA objetAAA_bi1N;
    
    /** R閏up鑢e l'objet en relation. */
    
    public AAA getObjetAAA_bi1N() {return objetAAA_bi1N;  }
    
    /** D閒init l'objet en relation, et met 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -