/[cashew-s-editor]/cashews/src/nongnu/cashews/rdf/Literal.java
ViewVC logotype

Diff of /cashews/src/nongnu/cashews/rdf/Literal.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by gnu_andrew, Thu Feb 3 00:39:36 2005 UTC revision 1.2 by gnu_andrew, Mon Mar 28 19:29:21 2005 UTC
# Line 1  Line 1 
1  /* Literal.java -- Representation of a RDF literal.  /* Literal.java -- Representation of a RDF literal.
2     Copyright (C) 2005  The University of Sheffield.   Copyright (C) 2005  The University of Sheffield.
3    
4  This file is part of the CASheW-s editor.   This file is part of the CASheW-s editor.
5    
6  The CASheW-s editor is free software; you can redistribute it and/or modify   The CASheW-s editor is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by   it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)   the Free Software Foundation; either version 2, or (at your option)
9  any later version.   any later version.
10    
11  The CASheW-s editor is distributed in the hope that it will be useful, but   The CASheW-s editor is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of   WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  General Public License for more details.   General Public License for more details.
15    
16  You should have received a copy of the GNU General Public License   You should have received a copy of the GNU General Public License
17  along with The CASheW-s editor; see the file COPYING.  If not, write to the   along with The CASheW-s editor; see the file COPYING.  If not, write to the
18  Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA   Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19  02111-1307 USA.   02111-1307 USA.
20  */  */
21    
22  package nongnu.cashews.rdf;  package nongnu.cashews.rdf;
23    
24  /**  /**
25   * <p>   * <p>
26   * This interface represents an RDF literal.   * This class represents an RDF literal. A literal has at least a lexical form.
27     * Untyped literals include an optional lower-case language tag, taken from the
28     * values in RFC3066. Typed literals instead include a datatype URI, which
29     * specifies the type of the data used in the literal.
30   * </p>   * </p>
31   *   *
32   * @author Andrew John Hughes (gnu_andrew@member.fsf.org)   * @author Andrew John Hughes (gnu_andrew@member.fsf.org)
33     * @see Type
34   */   */
35  public class Literal  public class Literal
36    implements RDFObject    implements RDFObject
37  {  {
38    
39      /**
40       * The lexical form of the literal.
41       *
42       * @serial the literal's lexical form. This may not be null.
43       */
44      private String lexicalForm;
45    
46      /**
47       * The optional language tag for this literal.
48       *
49       * @serial a lower-case RFC3066 language tag. May be null.
50       */
51      private String language;
52    
53      /**
54       * The optional type of the literal.
55       *
56       * @see Type
57       * @serial the type of the literal's data. May be null.
58       */
59      private Type type;
60    
61  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26