1   /*
2    * DatatypePropertyImpl.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: DatatypePropertyImpl.java,v 1.6 2005/12/14 14:28:57 julien_nioche Exp $
17   */
18  package gate.creole.ontology;
19  
20  import java.util.HashSet;
21  import java.util.Set;
22  
23  public class DatatypePropertyImpl extends PropertyImpl implements
24                                                        DatatypeProperty {
25    public DatatypePropertyImpl(String name, String comment, OClass aDomainClass,
26            Class aRangeType, Ontology anOntology) {
27      super(name, comment, aDomainClass, aRangeType, anOntology);
28    }
29  
30    public DatatypePropertyImpl(String name, String comment, Set domain,
31            Set range, Ontology ontology) {
32      super(name, comment, domain, range, ontology);
33    }
34  
35    public DatatypePropertyImpl(String name, String comment, Set domain,
36            Class range, Ontology ontology) {
37      super(name, comment, domain, new HashSet(), ontology);
38      this.directRange.add(range);
39      this.range.add(range);
40    }
41  }