| DatatypeProperty.java |
1 /*
2 * DatatypeProperty.java
3 *
4 * Copyright (c) 2002, The University of Sheffield.
5 *
6 * This file is part of GATE (see http://gate.ac.uk/), and is free
7 * software, licenced under the GNU Library General Public License,
8 * Version 2, June1991.
9 *
10 * A copy of this licence is included in the distribution in the file
11 * licence.html, and is also available at http://gate.ac.uk/gate/licence.html.
12 *
13 * Kalina Bontcheva 11/2003
14 *
15 *
16 * $Id: DatatypeProperty.java,v 1.4 2005/12/14 14:28:58 julien_nioche Exp $
17 */
18 package gate.creole.ontology;
19
20 /**
21 * Interface for datatype properties. Datatype properties have as range values
22 * datatype values (different from object properties which have instances as
23 * values). Values are Java objects.
24 */
25 public interface DatatypeProperty extends Property {
26 /**
27 *
28 * @param value
29 * @return true if this value is compatible with the range restrictions on the
30 * property. False otherwise.
31 */
32 public boolean isValidRange(Object value);
33 }