📄 individual.java
字号:
package toocom.ocgl;
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.font.*;
/**
* This class represents the individual markers in the ontology.
*
* @author Fr閐閞ic F黵st
*/
public class Individual extends NamedObject{
private ConceptType type;
/** Creates the Concept class of the given concept type with the given set of terms. If the term is the GENERIC_CONCEPT_TERM, the generic concept of the given type is created. */
public Individual(Terms terms, ConceptType ct){
super(terms);
this.type = ct;
}
public void setType(ConceptType type){
this.type = type;
}
public ConceptType getType(){
return this.type;
}
public String toString(Language l){
if(this.type != null) return (type.getTerm(l) + " : " + this.getTerm(l));
else return (Terms.getUndefinedTerms().getTerm(l) + " : " + this.getTerm(l));
}
public void destroy(Ontology onto){}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -