1 |
/* Expression.java -- Representation of an expression. |
/* Expression.java -- Representation of an expression. |
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.owls.expression; |
package nongnu.cashews.owls.expression; |
24 |
import nongnu.cashews.rdf.XMLLiteral; |
import nongnu.cashews.rdf.XMLLiteral; |
25 |
|
|
26 |
/** |
/** |
27 |
* This class represents an OWL-S expression in a particular |
* This class represents an OWL-S expression in a particular logical language. |
28 |
* logical language. |
* |
|
* |
|
29 |
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
30 |
*/ |
*/ |
31 |
public class Expression |
public class Expression |
40 |
|
|
41 |
/** |
/** |
42 |
* The value of this expression, in the form of literal XML. |
* The value of this expression, in the form of literal XML. |
43 |
* |
* |
44 |
* @see nongnu.cashews.rdf.XMLLiteral |
* @see nongnu.cashews.rdf.XMLLiteral |
45 |
*/ |
*/ |
46 |
private XMLLiteral value; |
private XMLLiteral value; |
47 |
|
|
48 |
/** |
/** |
49 |
* Sets the logical formalism used by this expression. |
* Sets the logical formalism used by this expression. |
50 |
* |
* |
51 |
* @param newLang the new language to use. |
* @param newLang the new language to use. |
52 |
*/ |
*/ |
53 |
public void setLanguage(LogicLanguage newLang) |
public void setLanguage(LogicLanguage newLang) |