01 /*
02 * HasValueRestriction.java
03 *
04 * $Id: HasValueRestriction.java 11598 2009-10-13 13:44:17Z johann_p $
05 *
06 */
07 package gate.creole.ontology;
08
09 /**
10 * A HasValueRestriction.
11 *
12 * @author Niraj Aswani
13 *
14 */
15 public interface HasValueRestriction extends Restriction {
16
17 /**
18 * Returns the resource which is set as a value * @return
19 */
20 public Object getHasValue();
21
22 /**
23 * Sets the resource as a restricted value.
24 * @param resource
25 */
26 public void setHasValue(OResource resource);
27
28 /**
29 * Sets the literal as a restricted value.
30 * @param resource
31 */
32 public void setHasValue(Literal resource);
33
34 }
|