01 /*
02 * AllValuesFromRestriction.java
03 *
04 * $Id: AllValuesFromRestriction.java 11598 2009-10-13 13:44:17Z johann_p $
05 */
06 package gate.creole.ontology;
07
08 /**
09 * An AllValuesFromRestriction.
10 *
11 * @author Niraj Aswani
12 * @author Johann Petrak
13 *
14 */
15 public interface AllValuesFromRestriction extends Restriction {
16
17 /**
18 * Returns the resource which is set as a restricted value.
19 * For ontologies that conform to OWL-Lite this is always an OClass
20 * object.
21 *
22 * @return
23 */
24 public OResource getHasValue();
25
26
27 /**
28 * Sets the value of the restriction. For ontologies that conform to
29 * OWL-Lite this should always be an OClass.
30 *
31 * @param resource - the OResource, usually and OClass that should be value
32 * of the restriction.
33 * @deprecated - use {@link setHasValue(OClass) } instead
34 */
35 @Deprecated
36 public void setHasValue(OResource resource);
37
38 /**
39 * Sets the value of the the restiction to the specified OClass.
40 *
41 * @param resource
42 */
43 public void setHasValue(OClass resource);
44
45 /**
46 * Specify the object property for which to set the allValuesFromRestriction.
47 *
48 * @param property
49 */
50 public void setOnPropertyValue(ObjectProperty property);
51
52
53 }
|