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