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