/[cashew-s-editor]/cashews/src/nongnu/cashews/owls/expression/SWRLExpression.java
ViewVC logotype

Diff of /cashews/src/nongnu/cashews/owls/expression/SWRLExpression.java

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

revision 1.1 by gnu_andrew, Thu Mar 31 16:59:25 2005 UTC revision 1.2 by gnu_andrew, Thu Mar 31 18:03:25 2005 UTC
# Line 1  Line 1 
1  /* SWRLExpression.java -- Representation of a SWRL expression.  /* SWRLExpression.java -- Representation of a SWRL 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;
23    
24  /**  /**
25   * This class represents an OWL-S expression in SWRL.   * This class represents an OWL-S expression in SWRL.
26   *   *
27   * @author Andrew John Hughes (gnu_andrew@member.fsf.org)   * @author Andrew John Hughes (gnu_andrew@member.fsf.org)
28   */   */
29  public class SWRLExpression  public class SWRLExpression extends Expression
   extends Expression  
30  {  {
31    
32    /**    /**
33     * This is the default constructor, which creates a new     * This is the default constructor, which creates a new expression using the
34     * expression using the SWRL logical formalism and an empty     * SWRL logical formalism and an empty body.
    * body.  
35     */     */
36    public SWRLExpression()    public SWRLExpression()
37    {    {
# Line 42  public class SWRLExpression Line 40  public class SWRLExpression
40    }    }
41    
42    /**    /**
43     * This method always throws an exception in this subclass     * This method always throws an exception in this subclass in order to
44     * in order to prevent changes to the expression language.     * prevent changes to the expression language.
45     *     *
46     * @throws UnsupportedOperationException as the language     * @throws UnsupportedOperationException
47     *         can not be modified.     *           as the language can not be modified.
48     */     */
49    public void setLanguage()    public void setLanguage()
50    {    {
51      throw new UnsupportedOperationException("The logic language of this "+      throw new UnsupportedOperationException("The logic language of this "
52                                              "class can not be changed.");                                              + "class can not be changed.");
53    }    }
54    
55  }  }

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