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

📄 gf_featuretype.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.dico;


import java.util.ArrayList;
import java.util.List;


/**
  * M閠aclasse instanci閑 par les classes correspondant aux th鑝es g閛graphiques.
  *
  * @author Thierry Badard & Arnaud Braun
  * @version 1.0
  * 
  */

public class GF_FeatureType {
    
    
    /** Identifiant. */
    protected int id;
    /** Renvoie l'identifiant. */
    public int getId () {return this.id;}
    /** Affecte un identifiant. */
    public void setId (int Id) {this.id = Id;}
       
    
    /** Nom de la classe g閛graphique. Doit 阾re unique dans un sch閙a applicatif. */
    protected String typeName;
    /** Renvoie le nom de la classe g閛graphique. */
    public String getTypeName () {return this.typeName;}
    /** Affecte un nom. */
    public void setTypeName (String TypeName) {this.typeName = TypeName;}

            
    /** Description de la classe g閛graphique. */
    protected String definition;
    /** Renvoie la description de la classe geographique. */
    public String getDefinition () {return this.definition;}
    /** Affecte une d閒inition. */
    public void setDefinition (String Definition) {this.definition = Definition;}
       
       
    /** TRUE si la classe est abstraite. Vaut FALSE par defaut. */
    protected boolean isAbstract = false;
    /** Renvoie l'attribut isAbtract. */
    public boolean getIsAbstract () {return this.isAbstract;}    
    /** Affecte l'attribut isAbstract. */
    public void setIsAbstract (boolean IsAbstract) {this.isAbstract = IsAbstract;}
         
        
    /** Les relations de g閚閞alisation dans lesquelles est impliqu閑 la classe. */
    protected List generalization = new ArrayList();    
    /** Renvoie les relations de g閚閞alisation dans lesquelles est impliqu閑 la classe. */
    public List getGeneralization() {return this.generalization; }  
	/** Affecte une liste de generalisations */
	public void setGeneralization (List L) {this.generalization = L;}    
    /** Renvoie le nombre de relation de g閚閞alisation dans lesquelles est impliqu閑 la classe. */
    public int sizeGeneralization () {return this.generalization.size(); }
   /** Ajoute une relation de g閚閞alisation. Affecte automatiquement le sous-type de cette relation.*/
	public void addGeneralization (GF_InheritanceRelation value) {
		this.generalization.add(value);
		if ( value.getSubType() != this)
			value.setSubType(this); // gestion de la bi-direction
	}      
	
	       
    /** Les relations de sp閏ialisation dans lesquelles est impliqu閑 la classe. */
    protected List specialization = new ArrayList();
    /** Renvoie la liste des relations de sp閏ialisation dans lesquelles est impliqu閑 la classe. */
    public List getSpecialization() {return this.specialization; }
	/** Affecte une liste de specialisations */
	public void setSpecialization (List L) {this.specialization = L;}    
	/** Renvoie le nombre de relation de sp閏ialisation dans lesquelles est impliqu閑 la classe. */
	public int sizeSpecialization () {return this.specialization.size(); }      
    /** Ajoute une relation de sp閏ialisation. Affecte automatiquement le super-type de cette relation.*/
    public void addSpecialization (GF_InheritanceRelation value) {
        this.specialization.add(value);
        if (! value.getSuperType().contains(this))
            value.addSuperType(this); // gestion de la bi-direction
    }   
    
       
    /** Les propri閠閟 (attributs, op閞ations, roles). */
    protected List properties = new ArrayList();
    /** Renvoie la liste des propri閠閟. */
    public List getProperties() {return this.properties; }
	/** Affecte une liste de proprietes */
	public void setProperties (List L) {this.properties = L;}    
	/** Renvoie le nombre de propri閠閟. */
	public int sizeProperties () {return this.properties.size();}     
    /** Ajoute une propri閠

⌨️ 快捷键说明

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