01 /*
02 * CardinalityRestriction.java
03 *
04 * $Id: CardinalityRestriction.java 11598 2009-10-13 13:44:17Z johann_p $
05 *
06 */
07 package gate.creole.ontology;
08
09 /**
10 * A CardinalityRestriction
11 *
12 * @author Niraj Aswani
13 * @author Johann Petrak
14 *
15 */
16 public interface CardinalityRestriction extends Restriction {
17
18 /**
19 * This method returns the cardinality value.
20 *
21 * @return
22 */
23 public String getValue();
24
25 /**
26 * This method returns the datatype uri.
27 *
28 * @return
29 */
30 public DataType getDataType();
31
32 /**
33 * Sets the cardinality value.
34 *
35 * @param value
36 * @param dataType
37 * @throws InvalidValueException
38 */
39 public void setValue(String value, DataType dataType) throws InvalidValueException;
40 }
|