View Javadoc

1   /* 
2    * @author Giorgos Anestis, TUC/MUSIC
3    * 
4    * @version 2.0 
5    */
6   package org.dbe.studio.tools.ontologyviewer.metamodels.odm;
7   
8   import java.util.Vector;
9   
10  /***
11   * The owl:intersectionOf property links a class to a list of class
12   * descriptions. An owl:intersectionOf statement describes a class for which
13   * the class extension contains precisely those individuals that are members 
14   * of the class extension of all class descriptions in the list.
15   */
16  public class OdmIntersectionClass extends OdmOntologyClass {
17  
18  	// list of OntologyClass descriptions
19  	Vector classDescription;
20  	
21  	/***
22  	 * Class constructor 
23  	 */
24  	public OdmIntersectionClass(OdmOntology ontology) {
25  		super(ontology);	
26  		classDescription = new Vector();
27  	}
28  
29  	/***
30  	 * @param ontology
31  	 * @param name
32  	 * @param id
33  	 */
34  	public OdmIntersectionClass(OdmOntology ontology, String name, String id) {
35  		super(ontology, name, id);		
36  		classDescription = new Vector();
37  	}
38  	
39  	public void addClass(OdmOntologyClass c) {
40  		classDescription.add(c);
41  	}
42  	
43  	public void removeClass(OdmOntologyClass c) {
44  		classDescription.remove(c);
45  	}
46  		
47  	public void setClassDescription(Vector v) {
48  		classDescription = v;
49  	}
50  	
51  	public Vector getClassDescription() {
52  		return classDescription;
53  	}	
54  
55  }