User: jung
Date: 00/12/04 04:36:17
Modified: src/org/zoap/soap/meta/scl BindingElement.java
BindingType.java ContractElement.java
ContractType.java MessageElement.java
MessageRefAttribute.java RequestElement.java
RequestResponseElement.java
RequestResponseType.java RequestType.java
ResponseElement.java ResponseType.java
SCLBinding.java SCLSchema.java scl.dfPackage
Log:
adopted to latest jboss container,
added decimal and date
removed some problems due to forward-referencing in meta-data
added serialisation policy
Revision Changes Path
1.2 +88 -88 zoap/src/org/zoap/soap/meta/scl/BindingElement.java
Index: BindingElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/BindingElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BindingElement.java 2000/08/10 21:07:16 1.1
+++ BindingElement.java 2000/12/04 12:36:14 1.2
@@ -1,88 +1,88 @@
-/*
- * $Id: BindingElement.java,v 1.1 2000/08/10 21:07:16 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.Environment;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-
-import java.util.Map;
-
-/**
- * Meta-Meta Element that describes scl:contract appearances
- */
-
-public class BindingElement extends Element {
-
- private BindingElement() {
- setAppearanceName("binding");
- setType(BindingType.getBindingType());
- }
-
- public Schema getAppearanceSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
- nameSpaces+")\n");
-
- if(target instanceof Schema && value instanceof BindingType.Interface) {
- ((BindingType.Interface) value).setInterfaceSchema((Schema) target);
- }
-
- return target;
- }
-
- private static BindingElement bindingElement=new BindingElement();
-
- public static BindingElement getBindingElement() {
- return bindingElement;
- }
-
-}
+/*
+ * $Id: BindingElement.java,v 1.2 2000/12/04 12:36:14 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.Environment;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+
+import java.util.Map;
+
+/**
+ * Meta-Meta Element that describes scl:contract appearances
+ */
+
+public class BindingElement extends Element {
+
+ private BindingElement() {
+ setAppearanceName("binding");
+ setType(BindingType.getBindingType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
+ nameSpaces+")\n");
+
+ if(target instanceof Schema && value instanceof BindingType.Interface) {
+ ((BindingType.Interface) value).setInterfaceSchema((Schema) target);
+ }
+
+ return target;
+ }
+
+ private static BindingElement bindingElement=new BindingElement();
+
+ public static BindingElement getBindingElement() {
+ return bindingElement;
+ }
+
+}
1.2 +108 -108 zoap/src/org/zoap/soap/meta/scl/BindingType.java
Index: BindingType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/BindingType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BindingType.java 2000/08/10 21:07:17 1.1
+++ BindingType.java 2000/12/04 12:36:14 1.2
@@ -1,108 +1,108 @@
-/*
- * $Id: BindingType.java,v 1.1 2000/08/10 21:07:17 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-
-/**
- * Meta-Meta Type that describes the structure of xsd:Schema appearances.
- */
-
-public class BindingType extends ComplexType {
-
- public static class Interface {
-
- Class associatedInterface;
- Schema interfaceSchema;
- Schema superSchema;
-
- public void setAssociatedInterface(Class associatedInterface) {
- this.associatedInterface=associatedInterface;
- }
-
- public Class getAssociatedInterface() {
- return associatedInterface;
- }
-
- public Schema getInterfaceSchema() {
- return interfaceSchema;
- }
-
- public void setInterfaceSchema(Schema schema) {
- interfaceSchema=schema;
- }
-
- public Schema getSuperSchema() {
- return superSchema;
- }
-
- public void setSuperSchema(Schema superSchema) {
- this.superSchema=superSchema;
- }
-
-
-
- }
-
- private BindingType() {
- setTypeName("binding");
- setAssociatedClass(Interface.class);
- addElement(RequestResponseElement.getRequestResponseElement());
- }
-
- public Schema getTypeSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- private static BindingType bindingType=new BindingType();
-
- public static BindingType getBindingType() {
- return bindingType;
- }
-
-}
+/*
+ * $Id: BindingType.java,v 1.2 2000/12/04 12:36:14 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:Schema appearances.
+ */
+
+public class BindingType extends ComplexType {
+
+ public static class Interface {
+
+ Class associatedInterface;
+ Schema interfaceSchema;
+ Schema superSchema;
+
+ public void setAssociatedInterface(Class associatedInterface) {
+ this.associatedInterface=associatedInterface;
+ }
+
+ public Class getAssociatedInterface() {
+ return associatedInterface;
+ }
+
+ public Schema getInterfaceSchema() {
+ return interfaceSchema;
+ }
+
+ public void setInterfaceSchema(Schema schema) {
+ interfaceSchema=schema;
+ }
+
+ public Schema getSuperSchema() {
+ return superSchema;
+ }
+
+ public void setSuperSchema(Schema superSchema) {
+ this.superSchema=superSchema;
+ }
+
+
+
+ }
+
+ private BindingType() {
+ setTypeName("binding");
+ setAssociatedClass(Interface.class);
+ addElement(RequestResponseElement.getRequestResponseElement());
+ }
+
+ public Schema getTypeSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ private static BindingType bindingType=new BindingType();
+
+ public static BindingType getBindingType() {
+ return bindingType;
+ }
+
+}
1.2 +72 -72 zoap/src/org/zoap/soap/meta/scl/ContractElement.java
Index: ContractElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ContractElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ContractElement.java 2000/08/10 21:07:17 1.1
+++ ContractElement.java 2000/12/04 12:36:14 1.2
@@ -1,72 +1,72 @@
-/*
- * $Id: ContractElement.java,v 1.1 2000/08/10 21:07:17 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-/**
- * Meta-Meta Element that describes scl:contract appearances
- */
-
-public class ContractElement extends Element {
-
- private ContractElement() {
- setAppearanceName("contract");
- setType(ContractType.getContractType());
- }
-
- public Schema getAppearanceSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- private static ContractElement contractElement=new ContractElement();
-
- public static ContractElement getContractElement() {
- return contractElement;
- }
-
-}
+/*
+ * $Id: ContractElement.java,v 1.2 2000/12/04 12:36:14 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+/**
+ * Meta-Meta Element that describes scl:contract appearances
+ */
+
+public class ContractElement extends Element {
+
+ private ContractElement() {
+ setAppearanceName("contract");
+ setType(ContractType.getContractType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ private static ContractElement contractElement=new ContractElement();
+
+ public static ContractElement getContractElement() {
+ return contractElement;
+ }
+
+}
1.2 +77 -77 zoap/src/org/zoap/soap/meta/scl/ContractType.java
Index: ContractType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ContractType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ContractType.java 2000/08/10 21:07:17 1.1
+++ ContractType.java 2000/12/04 12:36:14 1.2
@@ -1,77 +1,77 @@
-/*
- * $Id: ContractType.java,v 1.1 2000/08/10 21:07:17 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-import org.zoap.xml.meta.SchemaType;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:Schema appearances.
- */
-
-public class ContractType extends ComplexType {
-
- private ContractType() {
- setTypeName("contract");
- setAssociatedClass(Schema.class);
- setSuperType(SchemaType.getSchemaType());
- addElement(BindingElement.getBindingElement());
- addElement(MessageElement.getMessageElement());
- }
-
- public Schema getTypeSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- private static ContractType contractType=new ContractType();
-
- public static ContractType getContractType() {
- return contractType;
- }
-
-}
+/*
+ * $Id: ContractType.java,v 1.2 2000/12/04 12:36:14 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+import org.zoap.xml.meta.SchemaType;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:Schema appearances.
+ */
+
+public class ContractType extends ComplexType {
+
+ private ContractType() {
+ setTypeName("contract");
+ setAssociatedClass(Schema.class);
+ setSuperType(SchemaType.getSchemaType());
+ addElement(BindingElement.getBindingElement());
+ addElement(MessageElement.getMessageElement());
+ }
+
+ public Schema getTypeSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ private static ContractType contractType=new ContractType();
+
+ public static ContractType getContractType() {
+ return contractType;
+ }
+
+}
1.2 +107 -107 zoap/src/org/zoap/soap/meta/scl/MessageElement.java
Index: MessageElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/MessageElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MessageElement.java 2000/08/10 21:07:17 1.1
+++ MessageElement.java 2000/12/04 12:36:14 1.2
@@ -1,107 +1,107 @@
-/*
- * $Id: MessageElement.java,v 1.1 2000/08/10 21:07:17 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.Environment;
-
-import org.zoap.xml.Type;
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-import org.zoap.xml.ComplexType;
-
-import org.zoap.xml.meta.ComplexTypeType;
-import org.zoap.xml.meta.builtin.FieldElement;
-
-import java.util.Map;
-import java.util.Properties;
-
-/**
- * Meta-Meta Element that describes scl:contract appearances
- */
-
-public class MessageElement extends Element {
-
- private MessageElement() {
- setAppearanceName("message");
- setType(ComplexTypeType.getComplexTypeType());
- }
-
- public Schema getAppearanceSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- public boolean isReferencable() {
- return true;
- }
-
- // no output for now
- public Object[] getElementContents(Object target, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
- nameSpaces+")\n");
-
- if(target instanceof Schema && value instanceof Type) {
- ((Type) value).setTypeSchema((Schema) target);
- ((Schema) target).addType((Type) value);
- } else if(target instanceof Element && value instanceof Type) {
- ((Type) value).setTypeSchema(((Element) target).getAppearanceSchema());
- ((Element) target).setType((Type) value);
- }
-
- return target;
- }
-
- private static MessageElement messageElement=new MessageElement();
-
- public static MessageElement getMessageElement() {
- return messageElement;
- }
-
-}
+/*
+ * $Id: MessageElement.java,v 1.2 2000/12/04 12:36:14 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.Environment;
+
+import org.zoap.xml.Type;
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+import org.zoap.xml.ComplexType;
+
+import org.zoap.xml.meta.ComplexTypeType;
+import org.zoap.xml.meta.builtin.FieldElement;
+
+import java.util.Map;
+import java.util.Properties;
+
+/**
+ * Meta-Meta Element that describes scl:contract appearances
+ */
+
+public class MessageElement extends Element {
+
+ private MessageElement() {
+ setAppearanceName("message");
+ setType(ComplexTypeType.getComplexTypeType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ public boolean isReferencable() {
+ return true;
+ }
+
+ // no output for now
+ public Object[] getElementContents(Object target, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
+ nameSpaces+")\n");
+
+ if(target instanceof Schema && value instanceof Type) {
+ ((Type) value).setTypeSchema((Schema) target);
+ ((Schema) target).addType((Type) value);
+ } else if(target instanceof Element && value instanceof Type) {
+ ((Type) value).setTypeSchema(((Element) target).getAppearanceSchema());
+ ((Element) target).setType((Type) value);
+ }
+
+ return target;
+ }
+
+ private static MessageElement messageElement=new MessageElement();
+
+ public static MessageElement getMessageElement() {
+ return messageElement;
+ }
+
+}
1.2 +204 -204 zoap/src/org/zoap/soap/meta/scl/MessageRefAttribute.java
Index: MessageRefAttribute.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/MessageRefAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MessageRefAttribute.java 2000/08/10 21:07:18 1.1
+++ MessageRefAttribute.java 2000/12/04 12:36:15 1.2
@@ -1,204 +1,204 @@
-/*
- * $Id: MessageRefAttribute.java,v 1.1 2000/08/10 21:07:18 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.meta.RequestElement;
-
-import org.zoap.xml.meta.QNameType;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Type;
-import org.zoap.xml.Element;
-import org.zoap.xml.SimpleType;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Environment;
-
-import org.zoap.soap.meta.RequestType;
-import org.zoap.soap.meta.ResponseType;
-
-import org.zoap.soap.meta.RequestElement;
-import org.zoap.soap.meta.ResponseElement;
-
-import java.util.Properties;
-import java.util.Map;
-
-
-/**
- * Meta-Meta Attribute xsd:type that will set the type of a given appearance
- */
-
-public class MessageRefAttribute extends Attribute {
-
- /**
- * Its a qname attribute
- */
-
- private MessageRefAttribute() {
- setAppearanceName("messageRef");
- setType(QNameType.getQNameType());
- setAppearanceSchema(SCLSchema.getSCLSchema());
- }
-
- /**
- * read-access only
- */
- public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
- return null;
- }
-
- /**
- * The setAttributeContent method is able to lazily initiate types
- * not yet mentioned in the binding for enabling forward and cyclic referencing
- *
- * There is currently a large problem with pre-initialising types
- * referenced in elements, since we cannot know in advance what concrete type this
- * will be. I hate those XML-suckers. Never thought about easy processing for
their
- * shit. So we try to guess from the embedding type what the type will be
- *
- */
-
- public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- // target appearance must be initialised in each case
-
- if(target instanceof RequestElement) {
-
- // first we try to interpret the qname as prefix:type
- Schema schema=(Schema) nameSpaces.
- get(Environment.getNameSpacePrefix((String) value));
-
- Type type=null;
-
- // here it is?
- if(schema!=null) {
-
- // yes, then the second part of the qname must be a type
- type=schema.getType(Environment.getProperName((String) value));
-
- // its already initialised?
- if(type==null) {
-
- type=new RequestType();
- // register it in the right schema
- type.setTypeSchema(schema);
- // set the type name accordingly
- type.setTypeName(Environment.getProperName((String) value));
- // and add it prophilactically to the schema
- schema.addType(type);
- }
-
- } else {
-
- // no, then we think that the name should be a local type
- type=(Type) references.get(value);
-
- // its here
- if(type==null) {
-
- // no, sucking forward reference, we assume its a complex
- // type, but this must not be always true
- type=new RequestType();
-
-
- // schema is hopefully set later
-
- // set the name to the given qname
- type.setTypeName((String) value);
- // register locally
- references.put(value,type);
- }
- }
-
- // next assign it to the element
- ((Element) target).setType(type);
-
- } else if(target instanceof ResponseElement) {
-
- // assume this is a qname
- Schema schema=(Schema) nameSpaces.get(Environment.getNameSpacePrefix((String)
value));
-
- // that refers to this simpletype
- Type type=null;
-
- if(schema!=null) {
- // indeed a qname, so look it up
- type=(Type)
- schema.getType(Environment.getProperName((String) value));
-
- // not yet initialized, we fake it
- if(type==null) {
- type=new ResponseType();
- type.setTypeSchema(schema);
- type.setTypeName(Environment.getProperName((String) value));
- schema.addType(type);
- }
-
- } else {
- type=(Type) references.get(value);
-
- if(type==null) {
- type=new ResponseType();
- type.setTypeName((String) value);
- references.put(value,type);
- // schema is hopefully set later
- }
- }
-
- ((Element) target).setType(type);
- }
-
- return target;
- }
-
- private static MessageRefAttribute messageRefAttribute=
- new MessageRefAttribute();
-
- public static MessageRefAttribute getMessageRefAttribute() {
- return messageRefAttribute;
- }
-
-}
+/*
+ * $Id: MessageRefAttribute.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.meta.RequestElement;
+
+import org.zoap.xml.meta.QNameType;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Type;
+import org.zoap.xml.Element;
+import org.zoap.xml.SimpleType;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Environment;
+
+import org.zoap.soap.meta.RequestType;
+import org.zoap.soap.meta.ResponseType;
+
+import org.zoap.soap.meta.RequestElement;
+import org.zoap.soap.meta.ResponseElement;
+
+import java.util.Properties;
+import java.util.Map;
+
+
+/**
+ * Meta-Meta Attribute xsd:type that will set the type of a given appearance
+ */
+
+public class MessageRefAttribute extends Attribute {
+
+ /**
+ * Its a qname attribute
+ */
+
+ private MessageRefAttribute() {
+ setAppearanceName("messageRef");
+ setType(QNameType.getQNameType());
+ setAppearanceSchema(SCLSchema.getSCLSchema());
+ }
+
+ /**
+ * read-access only
+ */
+ public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ /**
+ * The setAttributeContent method is able to lazily initiate types
+ * not yet mentioned in the binding for enabling forward and cyclic referencing
+ *
+ * There is currently a large problem with pre-initialising types
+ * referenced in elements, since we cannot know in advance what concrete type this
+ * will be. I hate those XML-suckers. Never thought about easy processing for
their
+ * shit. So we try to guess from the embedding type what the type will be
+ *
+ */
+
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ // target appearance must be initialised in each case
+
+ if(target instanceof RequestElement) {
+
+ // first we try to interpret the qname as prefix:type
+ Schema schema=(Schema) nameSpaces.
+ get(Environment.getNameSpacePrefix((String) value));
+
+ Type type=null;
+
+ // here it is?
+ if(schema!=null) {
+
+ // yes, then the second part of the qname must be a type
+ type=schema.getType(Environment.getProperName((String) value));
+
+ // its already initialised?
+ if(type==null) {
+
+ type=new RequestType();
+ // register it in the right schema
+ type.setTypeSchema(schema);
+ // set the type name accordingly
+ type.setTypeName(Environment.getProperName((String) value));
+ // and add it prophilactically to the schema
+ schema.addType(type);
+ }
+
+ } else {
+
+ // no, then we think that the name should be a local type
+ type=(Type) references.get(value);
+
+ // its here
+ if(type==null) {
+
+ // no, sucking forward reference, we assume its a complex
+ // type, but this must not be always true
+ type=new RequestType();
+
+
+ // schema is hopefully set later
+
+ // set the name to the given qname
+ type.setTypeName((String) value);
+ // register locally
+ references.put(value,type);
+ }
+ }
+
+ // next assign it to the element
+ ((Element) target).setType(type);
+
+ } else if(target instanceof ResponseElement) {
+
+ // assume this is a qname
+ Schema schema=(Schema) nameSpaces.get(Environment.getNameSpacePrefix((String)
value));
+
+ // that refers to this simpletype
+ Type type=null;
+
+ if(schema!=null) {
+ // indeed a qname, so look it up
+ type=(Type)
+ schema.getType(Environment.getProperName((String) value));
+
+ // not yet initialized, we fake it
+ if(type==null) {
+ type=new ResponseType();
+ type.setTypeSchema(schema);
+ type.setTypeName(Environment.getProperName((String) value));
+ schema.addType(type);
+ }
+
+ } else {
+ type=(Type) references.get(value);
+
+ if(type==null) {
+ type=new ResponseType();
+ type.setTypeName((String) value);
+ references.put(value,type);
+ // schema is hopefully set later
+ }
+ }
+
+ ((Element) target).setType(type);
+ }
+
+ return target;
+ }
+
+ private static MessageRefAttribute messageRefAttribute=
+ new MessageRefAttribute();
+
+ public static MessageRefAttribute getMessageRefAttribute() {
+ return messageRefAttribute;
+ }
+
+}
1.2 +98 -98 zoap/src/org/zoap/soap/meta/scl/RequestElement.java
Index: RequestElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RequestElement.java 2000/08/10 21:07:18 1.1
+++ RequestElement.java 2000/12/04 12:36:15 1.2
@@ -1,98 +1,98 @@
-/*
- * $Id: RequestElement.java,v 1.1 2000/08/10 21:07:18 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.Environment;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-
-import java.util.Map;
-
-/**
- * Meta-Meta Element that describes scl:contract appearances
- */
-
-public class RequestElement extends Element {
-
- private RequestElement() {
- setAppearanceName("request");
- setType(RequestType.getRequestType());
- }
-
- public Schema getAppearanceSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
- nameSpaces+")\n");
-
- if(target instanceof RequestResponseType.Interface &&
- value instanceof org.zoap.soap.meta.RequestElement) {
-
- ((Element) value).setAppearanceSchema( ((RequestResponseType.Interface)
target).getInterface().
- getInterfaceSchema());
-
- ((RequestResponseType.Interface)
target).getInterface().getInterfaceSchema().
- addElement((org.zoap.soap.meta.RequestElement) value);
-
- ((org.zoap.soap.meta.RequestType)
- ((org.zoap.soap.meta.RequestElement)
value).getType()).setAssociatedMethod(
- ((RequestResponseType.Interface) target).getAssociatedMethod());
- }
-
- return target;
- }
-
- private static RequestElement requestElement=new RequestElement();
-
- public static RequestElement getRequestElement() {
- return requestElement;
- }
-
-}
+/*
+ * $Id: RequestElement.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.Environment;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+
+import java.util.Map;
+
+/**
+ * Meta-Meta Element that describes scl:contract appearances
+ */
+
+public class RequestElement extends Element {
+
+ private RequestElement() {
+ setAppearanceName("request");
+ setType(RequestType.getRequestType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
+ nameSpaces+")\n");
+
+ if(target instanceof RequestResponseType.Interface &&
+ value instanceof org.zoap.soap.meta.RequestElement) {
+
+ ((Element) value).setAppearanceSchema( ((RequestResponseType.Interface)
target).getInterface().
+ getInterfaceSchema());
+
+ ((RequestResponseType.Interface)
target).getInterface().getInterfaceSchema().
+ addElement((org.zoap.soap.meta.RequestElement) value);
+
+ ((org.zoap.soap.meta.RequestType)
+ ((org.zoap.soap.meta.RequestElement)
value).getType()).setAssociatedMethod(
+ ((RequestResponseType.Interface) target).getAssociatedMethod());
+ }
+
+ return target;
+ }
+
+ private static RequestElement requestElement=new RequestElement();
+
+ public static RequestElement getRequestElement() {
+ return requestElement;
+ }
+
+}
1.2 +88 -88 zoap/src/org/zoap/soap/meta/scl/RequestResponseElement.java
Index: RequestResponseElement.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestResponseElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RequestResponseElement.java 2000/08/10 21:07:19 1.1
+++ RequestResponseElement.java 2000/12/04 12:36:15 1.2
@@ -1,88 +1,88 @@
-/*
- * $Id: RequestResponseElement.java,v 1.1 2000/08/10 21:07:19 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.Environment;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-
-import java.util.Map;
-
-/**
- * Meta-Meta Element that describes scl:contract appearances
- */
-
-public class RequestResponseElement extends Element {
-
- private RequestResponseElement() {
- setAppearanceName("requestResponse");
- setType(RequestResponseType.getRequestResponseType());
- }
-
- public Schema getAppearanceSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
- nameSpaces+")\n");
-
- if(target instanceof BindingType.Interface && value instanceof
RequestResponseType.Interface) {
- ((RequestResponseType.Interface)
value).setInterface((BindingType.Interface) target);
- }
-
- return target;
- }
-
- private static RequestResponseElement requestResponseElement=new
RequestResponseElement();
-
- public static RequestResponseElement getRequestResponseElement() {
- return requestResponseElement;
- }
-
-}
+/*
+ * $Id: RequestResponseElement.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.Environment;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+
+import java.util.Map;
+
+/**
+ * Meta-Meta Element that describes scl:contract appearances
+ */
+
+public class RequestResponseElement extends Element {
+
+ private RequestResponseElement() {
+ setAppearanceName("requestResponse");
+ setType(RequestResponseType.getRequestResponseType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
+ nameSpaces+")\n");
+
+ if(target instanceof BindingType.Interface && value instanceof
RequestResponseType.Interface) {
+ ((RequestResponseType.Interface)
value).setInterface((BindingType.Interface) target);
+ }
+
+ return target;
+ }
+
+ private static RequestResponseElement requestResponseElement=new
RequestResponseElement();
+
+ public static RequestResponseElement getRequestResponseElement() {
+ return requestResponseElement;
+ }
+
+}
1.2 +118 -118 zoap/src/org/zoap/soap/meta/scl/RequestResponseType.java
Index: RequestResponseType.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestResponseType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RequestResponseType.java 2000/08/10 21:07:19 1.1
+++ RequestResponseType.java 2000/12/04 12:36:15 1.2
@@ -1,118 +1,118 @@
-/*
- * $Id: RequestResponseType.java,v 1.1 2000/08/10 21:07:19 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-import java.lang.reflect.Method;
-
-
-/**
- * Meta-Meta Type that describes the structure of xsd:Schema appearances.
- */
-
-public class RequestResponseType extends ComplexType {
-
- public static class Interface {
-
- org.zoap.soap.meta.scl.BindingType.Interface inter;
- String methodName;
-
- Method associatedMethod;
-
- public void setInterface(BindingType.Interface inter) {
-
- this.inter=inter;
- }
-
- public BindingType.Interface getInterface() {
- return inter;
- }
-
- public Method getAssociatedMethod() {
-
- if(associatedMethod==null) {
- Method[] methods=getInterface().getAssociatedInterface().
- getDeclaredMethods();
-
- int count;
-
- for(count=0;count<methods.length;count++)
- if(methods[count].toString().equals(methodName))
- break;
-
- if(count<methods.length)
- associatedMethod=methods[count];
- }
-
- return associatedMethod;
- }
-
- public void setMethodName(String methodName) {
- this.methodName=methodName;
- }
-
- }
-
- private RequestResponseType() {
- setTypeName("requestResponse");
- setAssociatedClass(Interface.class);
- addElement(RequestElement.getRequestElement());
- addElement(ResponseElement.getResponseElement());
- }
-
- public Schema getTypeSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- private static RequestResponseType requestResponseType=new
RequestResponseType();
-
- public static RequestResponseType getRequestResponseType() {
- return requestResponseType;
- }
-
-}
+/*
+ * $Id: RequestResponseType.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+import java.lang.reflect.Method;
+
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:Schema appearances.
+ */
+
+public class RequestResponseType extends ComplexType {
+
+ public static class Interface {
+
+ org.zoap.soap.meta.scl.BindingType.Interface inter;
+ String methodName;
+
+ Method associatedMethod;
+
+ public void setInterface(BindingType.Interface inter) {
+
+ this.inter=inter;
+ }
+
+ public BindingType.Interface getInterface() {
+ return inter;
+ }
+
+ public Method getAssociatedMethod() {
+
+ if(associatedMethod==null) {
+ Method[] methods=getInterface().getAssociatedInterface().
+ getDeclaredMethods();
+
+ int count;
+
+ for(count=0;count<methods.length;count++)
+ if(methods[count].toString().equals(methodName))
+ break;
+
+ if(count<methods.length)
+ associatedMethod=methods[count];
+ }
+
+ return associatedMethod;
+ }
+
+ public void setMethodName(String methodName) {
+ this.methodName=methodName;
+ }
+
+ }
+
+ private RequestResponseType() {
+ setTypeName("requestResponse");
+ setAssociatedClass(Interface.class);
+ addElement(RequestElement.getRequestElement());
+ addElement(ResponseElement.getResponseElement());
+ }
+
+ public Schema getTypeSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ private static RequestResponseType requestResponseType=new
RequestResponseType();
+
+ public static RequestResponseType getRequestResponseType() {
+ return requestResponseType;
+ }
+
+}
1.2 +76 -76 zoap/src/org/zoap/soap/meta/scl/RequestType.java
Index: RequestType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RequestType.java 2000/08/10 21:07:19 1.1
+++ RequestType.java 2000/12/04 12:36:15 1.2
@@ -1,76 +1,76 @@
-/*
- * $Id: RequestType.java,v 1.1 2000/08/10 21:07:19 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-import org.zoap.xml.meta.ElementType;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:Schema appearances.
- */
-
-public class RequestType extends ComplexType {
-
- private RequestType() {
- setTypeName("request");
- setAssociatedClass(org.zoap.soap.meta.RequestElement.class);
- setSuperType(ElementType.getElementType());
- addAttribute(MessageRefAttribute.getMessageRefAttribute());
- }
-
- public Schema getTypeSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- private static RequestType requestType=new RequestType();
-
- public static RequestType getRequestType() {
- return requestType;
- }
-
-}
+/*
+ * $Id: RequestType.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+import org.zoap.xml.meta.ElementType;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:Schema appearances.
+ */
+
+public class RequestType extends ComplexType {
+
+ private RequestType() {
+ setTypeName("request");
+ setAssociatedClass(org.zoap.soap.meta.RequestElement.class);
+ setSuperType(ElementType.getElementType());
+ addAttribute(MessageRefAttribute.getMessageRefAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ private static RequestType requestType=new RequestType();
+
+ public static RequestType getRequestType() {
+ return requestType;
+ }
+
+}
1.2 +103 -103 zoap/src/org/zoap/soap/meta/scl/ResponseElement.java
Index: ResponseElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ResponseElement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ResponseElement.java 2000/08/10 21:07:20 1.1
+++ ResponseElement.java 2000/12/04 12:36:15 1.2
@@ -1,103 +1,103 @@
-/*
- * $Id: ResponseElement.java,v 1.1 2000/08/10 21:07:20 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.Environment;
-
-import org.zoap.xml.Element;
-import org.zoap.xml.Schema;
-
-import java.util.Map;
-
-/**
- * Meta-Meta Element that describes scl:contract appearances
- */
-
-/**
- * Meta-Meta Element that describes scl:contract appearances
- */
-
-public class ResponseElement extends Element {
-
- private ResponseElement() {
- setAppearanceName("response");
- setType(ResponseType.getResponseType());
- }
-
- public Schema getAppearanceSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
- nameSpaces+")\n");
-
- if(target instanceof RequestResponseType.Interface &&
- value instanceof org.zoap.soap.meta.ResponseElement) {
-
- ((Element) value).setAppearanceSchema(((RequestResponseType.Interface)
target).
- getInterface().getInterfaceSchema());
-
- ((RequestResponseType.Interface)
target).getInterface().getInterfaceSchema().
- addElement((org.zoap.soap.meta.ResponseElement) value);
-
- ((org.zoap.soap.meta.ResponseType)
- ((org.zoap.soap.meta.ResponseElement)
value).getType()).setAssociatedMethod(
- ((RequestResponseType.Interface) target).getAssociatedMethod());
-
- }
-
- return target;
- }
-
- private static ResponseElement requestElement=new ResponseElement();
-
- public static ResponseElement getResponseElement() {
- return requestElement;
- }
-
-}
+/*
+ * $Id: ResponseElement.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.Environment;
+
+import org.zoap.xml.Element;
+import org.zoap.xml.Schema;
+
+import java.util.Map;
+
+/**
+ * Meta-Meta Element that describes scl:contract appearances
+ */
+
+/**
+ * Meta-Meta Element that describes scl:contract appearances
+ */
+
+public class ResponseElement extends Element {
+
+ private ResponseElement() {
+ setAppearanceName("response");
+ setType(ResponseType.getResponseType());
+ }
+
+ public Schema getAppearanceSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ public Object addElementContent(Object target, Object value, Map references,
Map nameSpaces) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
+ nameSpaces+")\n");
+
+ if(target instanceof RequestResponseType.Interface &&
+ value instanceof org.zoap.soap.meta.ResponseElement) {
+
+ ((Element) value).setAppearanceSchema(((RequestResponseType.Interface)
target).
+ getInterface().getInterfaceSchema());
+
+ ((RequestResponseType.Interface)
target).getInterface().getInterfaceSchema().
+ addElement((org.zoap.soap.meta.ResponseElement) value);
+
+ ((org.zoap.soap.meta.ResponseType)
+ ((org.zoap.soap.meta.ResponseElement)
value).getType()).setAssociatedMethod(
+ ((RequestResponseType.Interface) target).getAssociatedMethod());
+
+ }
+
+ return target;
+ }
+
+ private static ResponseElement requestElement=new ResponseElement();
+
+ public static ResponseElement getResponseElement() {
+ return requestElement;
+ }
+
+}
1.2 +79 -79 zoap/src/org/zoap/soap/meta/scl/ResponseType.java
Index: ResponseType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ResponseType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ResponseType.java 2000/08/10 21:07:20 1.1
+++ ResponseType.java 2000/12/04 12:36:15 1.2
@@ -1,79 +1,79 @@
-/*
- * $Id: ResponseType.java,v 1.1 2000/08/10 21:07:20 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.Environment;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-
-import org.zoap.xml.meta.ElementType;
-
-
-
-/**
- * Meta-Meta Type that describes the structure of xsd:Schema appearances.
- */
-
-public class ResponseType extends ComplexType {
-
- private ResponseType() {
- setTypeName("response");
- setAssociatedClass(org.zoap.soap.meta.ResponseElement.class);
- setSuperType(ElementType.getElementType());
- addAttribute(MessageRefAttribute.getMessageRefAttribute());
- }
-
- public Schema getTypeSchema() {
- return SCLSchema.getSCLSchema();
- }
-
- private static ResponseType responseType=new ResponseType();
-
- public static ResponseType getResponseType() {
- return responseType;
- }
-
-}
+/*
+ * $Id: ResponseType.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.Environment;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+
+import org.zoap.xml.meta.ElementType;
+
+
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:Schema appearances.
+ */
+
+public class ResponseType extends ComplexType {
+
+ private ResponseType() {
+ setTypeName("response");
+ setAssociatedClass(org.zoap.soap.meta.ResponseElement.class);
+ setSuperType(ElementType.getElementType());
+ addAttribute(MessageRefAttribute.getMessageRefAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return SCLSchema.getSCLSchema();
+ }
+
+ private static ResponseType responseType=new ResponseType();
+
+ public static ResponseType getResponseType() {
+ return responseType;
+ }
+
+}
1.2 +139 -135 zoap/src/org/zoap/soap/meta/scl/SCLBinding.java
Index: SCLBinding.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/SCLBinding.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SCLBinding.java 2000/08/10 21:07:20 1.1
+++ SCLBinding.java 2000/12/04 12:36:15 1.2
@@ -1,138 +1,148 @@
-/*
- * $Id: SCLBinding.java,v 1.1 2000/08/10 21:07:20 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.Environment;
-import org.zoap.soap.Envelope;
-import org.zoap.soap.MethodRequest;
-import org.zoap.soap.MethodResponse;
-
-import org.zoap.soap.meta.SoapBinding;
-
-import org.zoap.xml.meta.StringType;
-import org.zoap.xml.meta.XmlSchema;
-
-import org.zoap.xml.Binding;
-
-import org.zoap.xml.Schema;
-import org.zoap.xml.Element;
-import org.zoap.xml.Type;
-import org.zoap.xml.TypeException;
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.ElementException;
-
-import de.infor.ce.util.URN;
-
-import java.util.Map;
-import java.util.HashMap;
-import java.util.Properties;
-
-/**
- * An extension to SOAPBinding that also copes with the Microsoft Service
- * Description Language to be extended at runtime. Since we need a few
- * extensions to that language, it cannot be used directly.
- * <br>
- * @see <related>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class SCLBinding extends SoapBinding {
-
- /** register the additional soap schema which overrides some defaults */
- public SCLBinding() {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString()+"()\n");
-
- addSchema(XmlSchema.getXmlSchema());
- addSchema(SCLSchema.getSCLSchema());
-
- }
-
- /** we keep a static reference to a singleton */
- private static SCLBinding sclBinding;
-
- /** retrieve the singleton */
- public static SCLBinding getSCLBinding() {
- if(sclBinding==null)
- synchronized(SCLBinding.class) {
- if(sclBinding==null)
- sclBinding=new SCLBinding();
- }
-
- return sclBinding;
- }
-
-}
-
-/*
+/*
+ * $Id: SCLBinding.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.Environment;
+import org.zoap.soap.Envelope;
+import org.zoap.soap.MethodRequest;
+import org.zoap.soap.MethodResponse;
+
+import org.zoap.soap.meta.SoapBinding;
+
+import org.zoap.xml.meta.StringType;
+import org.zoap.xml.meta.XmlSchema;
+
+import org.zoap.xml.Binding;
+
+import org.zoap.xml.Schema;
+import org.zoap.xml.Element;
+import org.zoap.xml.Type;
+import org.zoap.xml.TypeException;
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.ElementException;
+
+import de.infor.ce.util.URN;
+
+import java.util.Map;
+import java.util.HashMap;
+import java.util.Properties;
+
+/**
+ * An extension to SOAPBinding that also copes with the Microsoft Service
+ * Description Language to be extended at runtime. Since we need a few
+ * extensions to that language, it cannot be used directly.
+ * <br>
+ * @see <related>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class SCLBinding extends SoapBinding {
+
+ /** register the additional soap schema which overrides some defaults */
+ public SCLBinding() {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+ Environment.out.print(toString()+"()\n");
+
+ addSchema(XmlSchema.getXmlSchema());
+ addSchema(SCLSchema.getSCLSchema());
+
+ }
+
+ /** we keep a static reference to a singleton */
+ private static SCLBinding sclBinding;
+
+ /** retrieve the singleton */
+ public static SCLBinding getSCLBinding() {
+ if(sclBinding==null)
+ synchronized(SCLBinding.class) {
+ if(sclBinding==null)
+ sclBinding=new SCLBinding();
+ }
+
+ return sclBinding;
+ }
+
+}
+
+/*
* $Log: SCLBinding.java,v $
- * Revision 1.1 2000/08/10 21:07:20 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:19 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:17 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:20 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.2.2.2 2000/07/07 15:50:02 jung
- * Request-Response Structure close to MS-SOAP
- *
- * removed a mega-bug in return element
- *
- * Revision 1.2.2.1 2000/07/07 12:42:40 jung
- * changed the method-request and response structure to be more
- * explicit instead of just serializable (such that MS-SOAP gets the
- * chance ot do something with that stuff).
- *
- */
+ * Revision 1.2 2000/12/04 12:36:15 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:20 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:19 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:17 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:20 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.2.2.2 2000/07/07 15:50:02 jung
+ * Request-Response Structure close to MS-SOAP
+ *
+ * removed a mega-bug in return element
+ *
+ * Revision 1.2.2.1 2000/07/07 12:42:40 jung
+ * changed the method-request and response structure to be more
+ * explicit instead of just serializable (such that MS-SOAP gets the
+ * chance ot do something with that stuff).
+ *
+ */
1.2 +127 -123 zoap/src/org/zoap/soap/meta/scl/SCLSchema.java
Index: SCLSchema.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/SCLSchema.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SCLSchema.java 2000/08/10 21:07:21 1.1
+++ SCLSchema.java 2000/12/04 12:36:15 1.2
@@ -1,126 +1,136 @@
-/*
- * $Id: SCLSchema.java,v 1.1 2000/08/10 21:07:21 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
- * conditions and the following disclaimer in the documentation and/or
other materials provided
- * with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any,
must include the following
- * acknowledgment: "This product includes software developed by infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- *
- * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.zoap.soap.meta.scl;
-
-import org.zoap.soap.Environment;
-import org.zoap.soap.Envelope;
-
-import org.zoap.xml.Schema;
-import org.zoap.xml.Type;
-import org.zoap.xml.Element;
-import org.zoap.xml.IllegalTypeException;
-
-import de.infor.ce.util.URN;
-
-/**
- * This is the schema that defines the basic SOAP types, such as envelope and
fault.
- *
- * @see <related>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class SCLSchema extends Schema {
-
- /** construct a new soap schema */
- public SCLSchema() {
- setUrn(new URN(new String[] {"http://schemas.xmlsoap.org/scl/"}));
- }
-
-
- private static SCLSchema sclSchema=new SCLSchema();
-
- static{
- sclSchema.addElement(ContractElement.getContractElement());
- }
-
- public static SCLSchema getSCLSchema() {
- return sclSchema;
- }
-
-}
-
-/*
+/*
+ * $Id: SCLSchema.java,v 1.2 2000/12/04 12:36:15 jung Exp $
+ * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * License Statement
+ *
+ * Redistribution and use of this software and associated documentation
("Software"), with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain copyright statements and
notices.
+ * Redistributions must also contain a copy of this document.
+ *
+ * 2. Redistributions in binary form must reproduce the attached copyright
notice, this list of
+ * conditions and the following disclaimer in the documentation and/or
other materials provided
+ * with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any,
must include the following
+ * acknowledgment: "This product includes software developed by infor:
business solutions AG
+ * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "infor" must not be used to endorse or promote products
derived from this
+ * Software without prior written permission of infor: business solutions
AG.
+ * For written permission, please contact [EMAIL PROTECTED]
+ *
+ * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
+ * in their names without prior written permission of infor: business
solutions AG. infor
+ * is a registered trademark of infor:business solutions AG.
+ *
+ * Disclaimer
+ *
+ * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS
IS" AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ *
+ * IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE
FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package org.zoap.soap.meta.scl;
+
+import org.zoap.soap.Environment;
+import org.zoap.soap.Envelope;
+
+import org.zoap.xml.Schema;
+import org.zoap.xml.Type;
+import org.zoap.xml.Element;
+import org.zoap.xml.IllegalTypeException;
+
+import de.infor.ce.util.URN;
+
+/**
+ * This is the schema that defines the basic SOAP types, such as envelope and
fault.
+ *
+ * @see <related>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class SCLSchema extends Schema {
+
+ /** construct a new soap schema */
+ public SCLSchema() {
+ setUrn(new URN(new String[] {"http://schemas.xmlsoap.org/scl/"}));
+ }
+
+
+ private static SCLSchema sclSchema=new SCLSchema();
+
+ static{
+ sclSchema.addElement(ContractElement.getContractElement());
+ }
+
+ public static SCLSchema getSCLSchema() {
+ return sclSchema;
+ }
+
+}
+
+/*
* $Log: SCLSchema.java,v $
- * Revision 1.1 2000/08/10 21:07:21 jung
- * Initial revision
- *
- * Revision 1.1.2.1 2000/08/04 17:20:19 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:17 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:20 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.2 2000/07/06 16:55:06 jung
- * moved the default binding caches in order to make apartments
- * with different versions of the same class possible.
- *
- * Revision 1.1.1.1 2000/07/06 14:11:27 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- * Revision 1.1.1.1 2000/06/19 12:04:12 jung
- * imported ZOAPackage that should
- * go into a seperate Open Source project
- *
- * Revision 1.1.2.3 2000/06/14 12:39:05 jung
- * first RPC-functional version of the ZOAP package using a proxy and an
- * interceptor abstraction.
- *
- * Revision 1.1.2.2 2000/06/13 15:01:43 jung
- * SOAP support begins to run
- *
- * Revision 1.1.2.1 2000/06/08 17:15:47 jung
- * added initial soap service that uses the infor:X framework.
- *
- */
+ * Revision 1.2 2000/12/04 12:36:15 jung
+ * adopted to latest jboss container,
+ *
+ * added decimal and date
+ *
+ * removed some problems due to forward-referencing in meta-data
+ *
+ * added serialisation policy
+ *
+ * Revision 1.1.1.1 2000/08/10 21:07:21 jung
+ * Initial import.
+ *
+ *
+ * Revision 1.1.2.1 2000/08/04 17:20:19 jung
+ * close to beta stadium. Meta-Data import now works.
+ *
+ * Revision 1.1.2.1 2000/07/17 12:46:17 jung
+ * refactored package and meta-model
+ *
+ * Revision 1.1.2.1 2000/07/13 12:46:20 jung
+ * package renaming, most of the zoap stuff now under org.zoap
+ * util and http stay infor.ce, containerInvoker etc move to org.jboss
+ *
+ * changed the makefile, adopted most of the licenses
+ *
+ * Revision 1.2 2000/07/06 16:55:06 jung
+ * moved the default binding caches in order to make apartments
+ * with different versions of the same class possible.
+ *
+ * Revision 1.1.1.1 2000/07/06 14:11:27 jung
+ * Import of a pre beta version of ZOAP source with a new directory structure,
+ * ant-based make, apache-kind of license, etc.
+ *
+ * jars are coming later because of cvs-history reasons.
+ *
+ * Revision 1.1.1.1 2000/06/19 12:04:12 jung
+ * imported ZOAPackage that should
+ * go into a seperate Open Source project
+ *
+ * Revision 1.1.2.3 2000/06/14 12:39:05 jung
+ * first RPC-functional version of the ZOAP package using a proxy and an
+ * interceptor abstraction.
+ *
+ * Revision 1.1.2.2 2000/06/13 15:01:43 jung
+ * SOAP support begins to run
+ *
+ * Revision 1.1.2.1 2000/06/08 17:15:47 jung
+ * added initial soap service that uses the infor:X framework.
+ *
+ */
1.2 +92 -92 zoap/src/org/zoap/soap/meta/scl/scl.dfPackage
Index: scl.dfPackage
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/scl.dfPackage,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- scl.dfPackage 2000/08/10 21:07:20 1.1
+++ scl.dfPackage 2000/12/04 12:36:15 1.2
@@ -1,92 +1,92 @@
-package id35v73cbhi562acbhkttei;
-
-/**
-@version 2.0
-@physicalPackage
-@__modelType diagram
-*/
-class diagram {
-/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.RequestResponseType:oiref><oihard>
-@__modelType reference
-*/
-class reference {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.SCLSchema:oiref><oihard>
-@__modelType reference
-*/
-class reference43 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.BindingElement:oiref><oihard>
-@__modelType reference
-*/
-class reference44 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.ResponseType:oiref><oihard>
-@__modelType reference
-*/
-class reference45 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.RequestElement:oiref><oihard>
-@__modelType reference
-*/
-class reference46 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.SCLBinding:oiref><oihard>
-@__modelType reference
-*/
-class reference47 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.ContractElement:oiref><oihard>
-@__modelType reference
-*/
-class reference48 {
-}/**
-@__ref
<oiref:java#Class#org.zoap.soap.meta.scl.RequestResponseElement:oiref><oihard>
-@__modelType reference
-*/
-class reference49 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.ContractType:oiref><oihard>
-@__modelType reference
-*/
-class reference50 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.RequestType:oiref><oihard>
-@__modelType reference
-*/
-class reference51 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.BindingType:oiref><oihard>
-@__modelType reference
-*/
-class reference52 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.ResponseElement:oiref><oihard>
-@__modelType reference
-*/
-class reference53 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.MessageRefAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference54 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.scl.MessageElement:oiref><oihard>
-@__modelType reference
-*/
-class reference55 {
-}}/**
-@__tags
-@shapeType ClassDiagram
-*/
-class __tags {
-}/**
-@__options
-*/
-class __options {
-}/**
-@__positions
-*/
-class __positions {
-}
\ No newline at end of file
+package id35v73cbhi562acbhkttei;
+
+/**
+@version 2.0
+@physicalPackage
+@__modelType diagram
+*/
+class diagram {
+/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.RequestResponseType:oiref><oihard>
+@__modelType reference
+*/
+class reference {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.SCLSchema:oiref><oihard>
+@__modelType reference
+*/
+class reference43 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.BindingElement:oiref><oihard>
+@__modelType reference
+*/
+class reference44 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.ResponseType:oiref><oihard>
+@__modelType reference
+*/
+class reference45 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.RequestElement:oiref><oihard>
+@__modelType reference
+*/
+class reference46 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.SCLBinding:oiref><oihard>
+@__modelType reference
+*/
+class reference47 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.ContractElement:oiref><oihard>
+@__modelType reference
+*/
+class reference48 {
+}/**
+@__ref
<oiref:java#Class#org.zoap.soap.meta.scl.RequestResponseElement:oiref><oihard>
+@__modelType reference
+*/
+class reference49 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.ContractType:oiref><oihard>
+@__modelType reference
+*/
+class reference50 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.RequestType:oiref><oihard>
+@__modelType reference
+*/
+class reference51 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.BindingType:oiref><oihard>
+@__modelType reference
+*/
+class reference52 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.ResponseElement:oiref><oihard>
+@__modelType reference
+*/
+class reference53 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.MessageRefAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference54 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.scl.MessageElement:oiref><oihard>
+@__modelType reference
+*/
+class reference55 {
+}}/**
+@__tags
+@shapeType ClassDiagram
+*/
+class __tags {
+}/**
+@__options
+*/
+class __options {
+}/**
+@__positions
+*/
+class __positions {
+}