KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hp > hpl > jena > ontology > daml > DAMLDatatype


1 /*****************************************************************************
2  * Source code information
3  * -----------------------
4  * Original author Ian Dickinson, HP Labs Bristol
5  * Author email Ian_Dickinson@hp.com
6  * Package Jena
7  * Created 17 Sept 2001
8  * Filename $RCSfile: DAMLDatatype.java,v $
9  * Revision $Revision: 1.7 $
10  * Release status Preview-release $State: Exp $
11  *
12  * Last modified on $Date: 2005/02/21 12:04:58 $
13  * by $Author: andy_seaborne $
14  *
15  * (c) Copyright 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP
16  * (see footer for full conditions)
17  *****************************************************************************/

18
19 // Package
20
///////////////
21
package com.hp.hpl.jena.ontology.daml;
22
23
24
25 // Imports
26
///////////////
27
import com.hp.hpl.jena.datatypes.RDFDatatype;
28
29
30
31
32 /**
33  * <p>A DAML datatype represents a set of values from a concrete domain, as opposed to
34  * a Class, which is a set of values from the instance domain. Datatypes and
35  * Classes are disjoint. In DAML, XML schema is used to encode values from
36  * concrete domains.</p>
37  *
38  * @author Ian Dickinson, HP Labs (<a HREF="mailto:Ian.Dickinson@hp.com">email</a>)
39  * @version CVS info: $Id: DAMLDatatype.java,v 1.7 2005/02/21 12:04:58 andy_seaborne Exp $
40  */

41 public interface DAMLDatatype
42     extends DAMLCommon
43 {
44     // Constants
45
//////////////////////////////////
46

47
48
49
50     // External signature methods
51
//////////////////////////////////
52

53     /**
54      * Answer the translator that can map between Java values and the serialized
55      * form that represents the value in the RDF graph.
56      *
57      * @return A datatype translator.
58      */

59     public RDFDatatype getTranslator();
60
61
62 }
63
64
65 /*
66     (c) Copyright 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP
67     All rights reserved.
68
69     Redistribution and use in source and binary forms, with or without
70     modification, are permitted provided that the following conditions
71     are met:
72
73     1. Redistributions of source code must retain the above copyright
74        notice, this list of conditions and the following disclaimer.
75
76     2. Redistributions in binary form must reproduce the above copyright
77        notice, this list of conditions and the following disclaimer in the
78        documentation and/or other materials provided with the distribution.
79
80     3. The name of the author may not be used to endorse or promote products
81        derived from this software without specific prior written permission.
82
83     THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
84     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
85     OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
86     IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
87     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
88     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
89     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
90     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
91     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
92     THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
93 */

94
95
Popular Tags