Index: src/nongnu/cashews/language/expression/HaskellFunction.java =================================================================== RCS file: src/nongnu/cashews/language/expression/HaskellFunction.java diff -N src/nongnu/cashews/language/expression/HaskellFunction.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/nongnu/cashews/language/expression/HaskellFunction.java 4 May 2005 10:53:28 -0000 @@ -0,0 +1,44 @@ +/* HaskellFunction.java -- Representation of a Haskell function. + Copyright (C) 2005 The University of Sheffield. + + This file is part of the CASheW-s editor. + + The CASheW-s editor is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + The CASheW-s editor is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with The CASheW-s editor; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. +*/ + +package nongnu.cashews.language.expression; + +/** + * An implementation of Expression for Haskell functions. + * Haskell functions are represented as simple strings, which can be + * evaluated by the evaluation web service. + * + * @author Andrew John Hughes (address@hidden) + * @see Expression + */ +public class HaskellFunction + implements Expression +{ + + /** + * The function in String form. + * + * @serial the function. + */ + private String function; + +} + Index: src/nongnu/cashews/language/grounding/MessagePart.java =================================================================== RCS file: src/nongnu/cashews/language/grounding/MessagePart.java diff -N src/nongnu/cashews/language/grounding/MessagePart.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/nongnu/cashews/language/grounding/MessagePart.java 4 May 2005 10:53:28 -0000 @@ -0,0 +1,60 @@ +/* MessagePart.java -- Part of a SOAP message body. + Copyright (C) 2005 The University of Sheffield. + + This file is part of the CASheW-s editor. + + The CASheW-s editor is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + The CASheW-s editor is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with The CASheW-s editor; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. +*/ + +package nongnu.cashews.language.grounding; + +import java.net.URI; + +import javax.xml.namespace.QName; + +/** + * Represents a single part of a SOAP message body. This specifies + * the name and type of the element. + * + * @author Andrew John Hughes (address@hidden) + */ +public class MessagePart +{ + + /** + * The URI which relates this part to the calculus. + * + * @serial the URI relating this part to the calculus. + */ + private URI uri; + + /** + * The name of the SOAP message part. + * + * @serial the message part name. + */ + private QName name; + + /** + * The type of the SOAP message part. + * + * @serial the message part's type. + */ + private QName type; + + +} + Index: src/nongnu/cashews/language/grounding/SoapMessage.java =================================================================== RCS file: src/nongnu/cashews/language/grounding/SoapMessage.java diff -N src/nongnu/cashews/language/grounding/SoapMessage.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/nongnu/cashews/language/grounding/SoapMessage.java 4 May 2005 10:53:28 -0000 @@ -0,0 +1,52 @@ +/* SoapMessage.java -- The message format for a SOAP envelope body. + Copyright (C) 2005 The University of Sheffield. + + This file is part of the CASheW-s editor. + + The CASheW-s editor is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + The CASheW-s editor is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with The CASheW-s editor; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. +*/ + +package nongnu.cashews.language.grounding; + +import java.util.List; + +import javax.xml.namespace.QName; + +/** + * Specifies the format of the message body within a SOAP + * envelope. + * + * @author Andrew John Hughes (address@hidden) + */ +public class SoapMessage +{ + + /** + * The name of the SOAP message. + * + * @serial the message name. + */ + private QName name; + + /** + * The separate parts which compose the message. + * + * @serial the message parts. + */ + private List parts; + +} + Index: src/nongnu/cashews/language/grounding/SoapOperation.java =================================================================== RCS file: src/nongnu/cashews/language/grounding/SoapOperation.java diff -N src/nongnu/cashews/language/grounding/SoapOperation.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/nongnu/cashews/language/grounding/SoapOperation.java 4 May 2005 10:53:28 -0000 @@ -0,0 +1,69 @@ +/* SoapOperation.java -- Representation of a SOAP operation. + Copyright (C) 2005 The University of Sheffield. + + This file is part of the CASheW-s editor. + + The CASheW-s editor is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + The CASheW-s editor is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with The CASheW-s editor; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. +*/ + +package nongnu.cashews.language.grounding; + +import java.net.URI; + +/** + * An implementation of Grounding for the Simple + * Object Access Protocol (SOAP). SOAP operations have an + * endpoint, a namespace, an input message and an output + * message, which specify the location, naming and data + * transmission of the operation respectively. + * + * @author Andrew John Hughes (address@hidden) + * @see Grounding + */ +public class SoapOperation + implements Grounding +{ + + /** + * The endpoint where the operation is located. + * + * @serial the endpoint of the operation. + */ + private URI endpoint; + + /** + * The namespace of this operation. + * + * @serial the operation namespace. + */ + private URI namespace; + + /** + * The message format for the input. + * + * @serial the input message format. + */ + private SoapMessage inputMessage; + + /** + * The message format for the output. + * + * @serial the output message format. + */ + private SoapMessage outputMessage; + +} +