User: jung
Date: 00/12/04 04:36:13
Modified: src/org/zoap/soap/meta/builtin ArgumentType.java
AssociatedInterfaceAttribute.java
AssociatedMethodAttribute.java DefaultBinding.java
DefaultMetaBinding.java InterfaceType.java
MethodRequestResponseType.java
PositionAttribute.java ReturnType.java
ZoapSchema.java builtin.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 +82 -82 zoap/src/org/zoap/soap/meta/builtin/ArgumentType.java
Index: ArgumentType.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/ArgumentType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ArgumentType.java 2000/08/10 21:07:12 1.1
+++ ArgumentType.java 2000/12/04 12:36:11 1.2
@@ -1,82 +1,82 @@
-/*
- * $Id: ArgumentType.java,v 1.1 2000/08/10 21:07:12 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.builtin;
-
-import org.zoap.soap.meta.ArgumentElement;
-
-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:complexType appearances.
- */
-
-public class ArgumentType extends ComplexType {
-
- private ArgumentType() {
- setTypeName("ArgumentType");
- setAssociatedClass(ArgumentElement.class);
- setSuperType(ElementType.getElementType());
- addAttribute(PositionAttribute.getPositionAttribute());
- }
-
- public Schema getTypeSchema() {
- return ZoapSchema.getZoapSchema();
- }
-
- public boolean isReferencable() {
- return true;
- }
-
- private static ArgumentType argumentType=new ArgumentType();
-
- public static ArgumentType getArgumentType() {
- return argumentType;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: ArgumentType.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+import org.zoap.soap.meta.ArgumentElement;
+
+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:complexType appearances.
+ */
+
+public class ArgumentType extends ComplexType {
+
+ private ArgumentType() {
+ setTypeName("ArgumentType");
+ setAssociatedClass(ArgumentElement.class);
+ setSuperType(ElementType.getElementType());
+ addAttribute(PositionAttribute.getPositionAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return ZoapSchema.getZoapSchema();
+ }
+
+ public boolean isReferencable() {
+ return true;
+ }
+
+ private static ArgumentType argumentType=new ArgumentType();
+
+ public static ArgumentType getArgumentType() {
+ return argumentType;
+ }
+
+}
1.2 +106 -106
zoap/src/org/zoap/soap/meta/builtin/AssociatedInterfaceAttribute.java
Index: AssociatedInterfaceAttribute.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/AssociatedInterfaceAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AssociatedInterfaceAttribute.java 2000/08/10 21:07:12 1.1
+++ AssociatedInterfaceAttribute.java 2000/12/04 12:36:11 1.2
@@ -1,106 +1,106 @@
-/*
- * $Id: AssociatedInterfaceAttribute.java,v 1.1 2000/08/10 21:07:12 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.builtin;
-
-import org.zoap.soap.meta.scl.BindingType;
-
-import org.zoap.xml.meta.StringType;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Type;
-import org.zoap.xml.AttributeException;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-
-/**
- * Meta-Meta Attribute zoap:associatedClass that should set the associated class of
a particular
- * type
- */
-
-public class AssociatedInterfaceAttribute extends Attribute {
-
- private AssociatedInterfaceAttribute() {
- setAppearanceName("associatedInterface");
- setType(StringType.getStringType());
- setAppearanceSchema(ZoapSchema.getZoapSchema());
- }
-
- // no output for now
- public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
- throws AttributeException {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
- Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
- references+","+nameSpaces+")");
-
- if(target instanceof BindingType.Interface) {
- try{
- ((BindingType.Interface)
target).setAssociatedInterface(Class.forName((String)
- value,true,Thread.currentThread().getContextClassLoader()));
- } catch(ClassNotFoundException e) {
- throw new AttributeException();
- }
- }
-
-
- return target;
- }
-
- private static AssociatedInterfaceAttribute associatedInterfaceAttribute=
- new AssociatedInterfaceAttribute();
-
- public static AssociatedInterfaceAttribute getAssociatedInterfaceAttribute() {
- return associatedInterfaceAttribute;
- }
-
-}
+/*
+ * $Id: AssociatedInterfaceAttribute.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+import org.zoap.soap.meta.scl.BindingType;
+
+import org.zoap.xml.meta.StringType;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Type;
+import org.zoap.xml.AttributeException;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+
+/**
+ * Meta-Meta Attribute zoap:associatedClass that should set the associated class of
a particular
+ * type
+ */
+
+public class AssociatedInterfaceAttribute extends Attribute {
+
+ private AssociatedInterfaceAttribute() {
+ setAppearanceName("associatedInterface");
+ setType(StringType.getStringType());
+ setAppearanceSchema(ZoapSchema.getZoapSchema());
+ }
+
+ // no output for now
+ public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
+ throws AttributeException {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+ Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
+ references+","+nameSpaces+")");
+
+ if(target instanceof BindingType.Interface) {
+ try{
+ ((BindingType.Interface)
target).setAssociatedInterface(Class.forName((String)
+ value,true,Thread.currentThread().getContextClassLoader()));
+ } catch(ClassNotFoundException e) {
+ throw new AttributeException();
+ }
+ }
+
+
+ return target;
+ }
+
+ private static AssociatedInterfaceAttribute associatedInterfaceAttribute=
+ new AssociatedInterfaceAttribute();
+
+ public static AssociatedInterfaceAttribute getAssociatedInterfaceAttribute() {
+ return associatedInterfaceAttribute;
+ }
+
+}
1.2 +100 -100
zoap/src/org/zoap/soap/meta/builtin/AssociatedMethodAttribute.java
Index: AssociatedMethodAttribute.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/AssociatedMethodAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AssociatedMethodAttribute.java 2000/08/10 21:07:12 1.1
+++ AssociatedMethodAttribute.java 2000/12/04 12:36:11 1.2
@@ -1,100 +1,100 @@
-/*
- * $Id: AssociatedMethodAttribute.java,v 1.1 2000/08/10 21:07:12 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.builtin;
-
-import org.zoap.soap.meta.scl.RequestResponseType;
-
-import org.zoap.xml.meta.StringType;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Type;
-import org.zoap.xml.AttributeException;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-import java.lang.reflect.Method;
-
-/**
- * Meta-Meta Attribute zoap:associatedClass that should set the associated class of
a particular
- * type
- */
-
-public class AssociatedMethodAttribute extends Attribute {
-
- private AssociatedMethodAttribute() {
- setAppearanceName("associatedMethod");
- setType(StringType.getStringType());
- setAppearanceSchema(ZoapSchema.getZoapSchema());
- }
-
- // no output for now
- public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
- throws AttributeException {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
- Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
- references+","+nameSpaces+")");
-
- if(target instanceof RequestResponseType.Interface)
- ((RequestResponseType.Interface) target).setMethodName((String) value);
-
- return target;
- }
-
- private static AssociatedMethodAttribute associatedMethodAttribute=
- new AssociatedMethodAttribute();
-
- public static AssociatedMethodAttribute getAssociatedMethodAttribute() {
- return associatedMethodAttribute;
- }
-
-}
+/*
+ * $Id: AssociatedMethodAttribute.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+import org.zoap.soap.meta.scl.RequestResponseType;
+
+import org.zoap.xml.meta.StringType;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Type;
+import org.zoap.xml.AttributeException;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+import java.lang.reflect.Method;
+
+/**
+ * Meta-Meta Attribute zoap:associatedClass that should set the associated class of
a particular
+ * type
+ */
+
+public class AssociatedMethodAttribute extends Attribute {
+
+ private AssociatedMethodAttribute() {
+ setAppearanceName("associatedMethod");
+ setType(StringType.getStringType());
+ setAppearanceSchema(ZoapSchema.getZoapSchema());
+ }
+
+ // no output for now
+ public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
+ throws AttributeException {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+ Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
+ references+","+nameSpaces+")");
+
+ if(target instanceof RequestResponseType.Interface)
+ ((RequestResponseType.Interface) target).setMethodName((String) value);
+
+ return target;
+ }
+
+ private static AssociatedMethodAttribute associatedMethodAttribute=
+ new AssociatedMethodAttribute();
+
+ public static AssociatedMethodAttribute getAssociatedMethodAttribute() {
+ return associatedMethodAttribute;
+ }
+
+}
1.2 +327 -323 zoap/src/org/zoap/soap/meta/builtin/DefaultBinding.java
Index: DefaultBinding.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/DefaultBinding.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DefaultBinding.java 2000/08/10 21:07:13 1.1
+++ DefaultBinding.java 2000/12/04 12:36:11 1.2
@@ -1,326 +1,336 @@
-/*
- * $Id: DefaultBinding.java,v 1.1 2000/08/10 21:07:13 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.builtin;
-
-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.ArgumentElement;
-import org.zoap.soap.meta.ReturnElement;
-import org.zoap.soap.meta.RequestElement;
-import org.zoap.soap.meta.ResponseElement;
-import org.zoap.soap.meta.RequestType;
-import org.zoap.soap.meta.ResponseType;
-
-import org.zoap.soap.meta.SoapBinding;
-
-import org.zoap.xml.meta.StringType;
-
-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;
-
-import java.lang.reflect.Method;
-
-/**
- * SoapBinding overrides the default databinding of infor:XML to introduce
SOAP-related
- * schemas, elements, attributes and types.
- * <br>
- * @see <related>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class DefaultBinding extends SoapBinding {
-
- private org.zoap.xml.meta.builtin.DefaultBinding objectBinding;
-
- /** register the additional soap schema which overrides some defaults */
- public DefaultBinding() {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString()+"()\n");
-
- }
-
- /**
- * looks up a @return Schema by its @arg urn. Here, the SOAP schema and
- * the default schemas.
- * @clientRole *
- * @supplierRole 1
- * @directed
- * @link association
- * @label registeredSchema
- */
- /*#SoapSchema soapSchema;*/
-
- public Schema getSchema(URN urn) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.println(toString()+".getSchema("+urn+")");
-
- Schema result=super.getSchema(urn);
-
- if(result==null) {
-
- try{
- Class forClass=
- Environment.getClassForUrn(urn);
-
- return getInterfaceSchema(forClass);
-
- } catch(ClassNotFoundException e) {
-
- if(objectBinding==null)
- objectBinding=new org.zoap.xml.meta.builtin.DefaultBinding();
-
- return objectBinding.getSchema(urn);
-
- }
-
- } else
- return result;
- }
-
- /**
- * method to lookup a @return Element in the registered schemas
- * whose type complies to the given Java @arg object. Since SOAP must
- * always use a non-empty envelope, this is quite straightforward.
- */
-
- public Element findElementCompatibleTo(Object object, Class clazz) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.println(toString()+".findElementCompatibleTo("+object+","+clazz+")");
-
- Element result=super.findElementCompatibleTo(object,clazz);
-
- if(result==null) {
-
- if(object instanceof MethodRequest) {
-
- return getInterfaceSchema(((MethodRequest)
object).getMethod().getDeclaringClass()).
- findElementCompatibleTo(object,MethodRequest.class);
-
- } else if(object instanceof MethodResponse) {
-
- return getInterfaceSchema(((MethodResponse)
object).getMethod().getDeclaringClass()).
- findElementCompatibleTo(object,MethodResponse.class);
-
- } else {
-
- if(objectBinding==null)
- objectBinding=new org.zoap.xml.meta.builtin.DefaultBinding();
-
- return objectBinding.findElementCompatibleTo(object,clazz);
-
- }
- } else
- return result;
-
- }
-
- public Type findTypeCompatibleTo(Object object, Class clazz) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".findTypeCompatibleTo("+object+","+clazz+")\n");
-
- Element element=findElementCompatibleTo(object,clazz);
-
- if(element!=null)
- return element.getType();
- else
- return null;
- }
-
- public Schema getInterfaceSchema(Class forClass) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString()+".getInterfaceSchema("+forClass+")\n");
-
- Schema result=(Schema) classInterfaceSchemaMap.get(forClass);
-
- if(result==null)
-
- synchronized(classInterfaceSchemaMap) {
-
- result=(Schema) classInterfaceSchemaMap.get(forClass);
-
- if(result==null) {
-
- result=new Schema();
-
- result.setUrn(new URN(Environment.INTERNAL_URN.toString()+
- org.zoap.xml.Environment.getNameSpaceForClass(forClass)));
-
- addSchema(result);
-
- Method[] methods=forClass.getMethods();
-
- for(int count=0;count<methods.length;count++) {
-
- RequestElement requestElement=new RequestElement();
- ResponseElement responseElement=new ResponseElement();
-
- // extract our name suffix
-
requestElement.setAppearanceName(methods[count].getName()+"-"+count+"-Request");
-
responseElement.setAppearanceName(methods[count].getName()+"-"+count+"-Response");
-
- // we build up a nice schema for the package of the class
- requestElement.setAppearanceSchema(result);
- responseElement.setAppearanceSchema(result);
-
- // create a new responsetype
- RequestType requestType=new RequestType();
- ResponseType responseType=new ResponseType();
-
- // extract our name suffix
-
requestType.setTypeName(methods[count].getName()+"-"+count+"-Request");
-
responseType.setTypeName(methods[count].getName()+"-"+count+"-Response");
-
- // we build up a nice schema for the package of the class
- requestType.setTypeSchema(result);
- responseType.setTypeSchema(result);
-
- // we set the method name
- requestType.setAssociatedMethod(methods[count]);
- responseType.setAssociatedMethod(methods[count]);
-
- // and we determine the allowed "elements"
- Class[] argClasses=methods[count].getParameterTypes();
-
- for(int count2=0;count2<argClasses.length;count2++) {
- ArgumentElement argument=new ArgumentElement();
- argument.setArity(count2);
- argument.setAppearanceSchema(result);
-
argument.setAppearanceName(methods[count].getName()+"-"+count+"-Argument-"+count2);
- argument.setType(findTypeCompatibleTo(null,argClasses[count2]));
- requestType.addElement(argument);
- } // for
-
- // and we determine the allowed "elements"
- Class returnClass=methods[count].getReturnType();
-
- if(returnClass!=void.class) {
- ReturnElement returnElement = new ReturnElement();
- returnElement.setAppearanceSchema(result);
- returnElement.setType(findTypeCompatibleTo(null,returnClass));
-
returnElement.setAppearanceName(methods[count].getName()+"-"+count+"-Return");
- responseType.addElement(returnElement);
- } //if
-
- requestElement.setType(requestType);
- responseElement.setType(responseType);
-
- result.addElement(requestElement);
- result.addElement(responseElement);
-
- } // for
-
- addSchema(result);
-
- } // if
- } // sync
-
- return result;
- }
-
- /** we keep a static reference to a singleton */
- private static DefaultBinding defaultBinding;
-
- /** retrieve the singleton */
- public static DefaultBinding getDefaultBinding() {
- if(defaultBinding==null)
- synchronized(DefaultBinding.class) {
- if(defaultBinding==null)
- defaultBinding=new DefaultBinding();
- }
-
- return defaultBinding;
- }
-
- private static Map classInterfaceSchemaMap=new HashMap();
-
-
-}
-/*
+/*
+ * $Id: DefaultBinding.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+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.ArgumentElement;
+import org.zoap.soap.meta.ReturnElement;
+import org.zoap.soap.meta.RequestElement;
+import org.zoap.soap.meta.ResponseElement;
+import org.zoap.soap.meta.RequestType;
+import org.zoap.soap.meta.ResponseType;
+
+import org.zoap.soap.meta.SoapBinding;
+
+import org.zoap.xml.meta.StringType;
+
+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;
+
+import java.lang.reflect.Method;
+
+/**
+ * SoapBinding overrides the default databinding of infor:XML to introduce
SOAP-related
+ * schemas, elements, attributes and types.
+ * <br>
+ * @see <related>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class DefaultBinding extends SoapBinding {
+
+ private org.zoap.xml.meta.builtin.DefaultBinding objectBinding;
+
+ /** register the additional soap schema which overrides some defaults */
+ public DefaultBinding() {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+ Environment.out.print(toString()+"()\n");
+
+ }
+
+ /**
+ * looks up a @return Schema by its @arg urn. Here, the SOAP schema and
+ * the default schemas.
+ * @clientRole *
+ * @supplierRole 1
+ * @directed
+ * @link association
+ * @label registeredSchema
+ */
+ /*#SoapSchema soapSchema;*/
+
+ public Schema getSchema(URN urn) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+ Environment.out.println(toString()+".getSchema("+urn+")");
+
+ Schema result=super.getSchema(urn);
+
+ if(result==null) {
+
+ try{
+ Class forClass=
+ Environment.getClassForUrn(urn);
+
+ return getInterfaceSchema(forClass);
+
+ } catch(ClassNotFoundException e) {
+
+ if(objectBinding==null)
+ objectBinding=new org.zoap.xml.meta.builtin.DefaultBinding();
+
+ return objectBinding.getSchema(urn);
+
+ }
+
+ } else
+ return result;
+ }
+
+ /**
+ * method to lookup a @return Element in the registered schemas
+ * whose type complies to the given Java @arg object. Since SOAP must
+ * always use a non-empty envelope, this is quite straightforward.
+ */
+
+ public Element findElementCompatibleTo(Object object, Class clazz) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+
Environment.out.println(toString()+".findElementCompatibleTo("+object+","+clazz+")");
+
+ Element result=super.findElementCompatibleTo(object,clazz);
+
+ if(result==null) {
+
+ if(object instanceof MethodRequest) {
+
+ return getInterfaceSchema(((MethodRequest)
object).getMethod().getDeclaringClass()).
+ findElementCompatibleTo(object,MethodRequest.class);
+
+ } else if(object instanceof MethodResponse) {
+
+ return getInterfaceSchema(((MethodResponse)
object).getMethod().getDeclaringClass()).
+ findElementCompatibleTo(object,MethodResponse.class);
+
+ } else {
+
+ if(objectBinding==null)
+ objectBinding=new org.zoap.xml.meta.builtin.DefaultBinding();
+
+ return objectBinding.findElementCompatibleTo(object,clazz);
+
+ }
+ } else
+ return result;
+
+ }
+
+ public Type findTypeCompatibleTo(Object object, Class clazz) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+
Environment.out.print(toString()+".findTypeCompatibleTo("+object+","+clazz+")\n");
+
+ Element element=findElementCompatibleTo(object,clazz);
+
+ if(element!=null)
+ return element.getType();
+ else
+ return null;
+ }
+
+ public Schema getInterfaceSchema(Class forClass) {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+ Environment.out.print(toString()+".getInterfaceSchema("+forClass+")\n");
+
+ Schema result=(Schema) classInterfaceSchemaMap.get(forClass);
+
+ if(result==null)
+
+ synchronized(classInterfaceSchemaMap) {
+
+ result=(Schema) classInterfaceSchemaMap.get(forClass);
+
+ if(result==null) {
+
+ result=new Schema();
+
+ result.setUrn(new URN(Environment.INTERNAL_URN.toString()+
+ org.zoap.xml.Environment.getNameSpaceForClass(forClass)));
+
+ addSchema(result);
+
+ Method[] methods=forClass.getMethods();
+
+ for(int count=0;count<methods.length;count++) {
+
+ RequestElement requestElement=new RequestElement();
+ ResponseElement responseElement=new ResponseElement();
+
+ // extract our name suffix
+
requestElement.setAppearanceName(methods[count].getName()+"-"+count+"-Request");
+
responseElement.setAppearanceName(methods[count].getName()+"-"+count+"-Response");
+
+ // we build up a nice schema for the package of the class
+ requestElement.setAppearanceSchema(result);
+ responseElement.setAppearanceSchema(result);
+
+ // create a new responsetype
+ RequestType requestType=new RequestType();
+ ResponseType responseType=new ResponseType();
+
+ // extract our name suffix
+
requestType.setTypeName(methods[count].getName()+"-"+count+"-Request");
+
responseType.setTypeName(methods[count].getName()+"-"+count+"-Response");
+
+ // we build up a nice schema for the package of the class
+ requestType.setTypeSchema(result);
+ responseType.setTypeSchema(result);
+
+ // we set the method name
+ requestType.setAssociatedMethod(methods[count]);
+ responseType.setAssociatedMethod(methods[count]);
+
+ // and we determine the allowed "elements"
+ Class[] argClasses=methods[count].getParameterTypes();
+
+ for(int count2=0;count2<argClasses.length;count2++) {
+ ArgumentElement argument=new ArgumentElement();
+ argument.setArity(count2);
+ argument.setAppearanceSchema(result);
+
argument.setAppearanceName(methods[count].getName()+"-"+count+"-Argument-"+count2);
+ argument.setType(findTypeCompatibleTo(null,argClasses[count2]));
+ requestType.addElement(argument);
+ } // for
+
+ // and we determine the allowed "elements"
+ Class returnClass=methods[count].getReturnType();
+
+ if(returnClass!=void.class) {
+ ReturnElement returnElement = new ReturnElement();
+ returnElement.setAppearanceSchema(result);
+ returnElement.setType(findTypeCompatibleTo(null,returnClass));
+
returnElement.setAppearanceName(methods[count].getName()+"-"+count+"-Return");
+ responseType.addElement(returnElement);
+ } //if
+
+ requestElement.setType(requestType);
+ responseElement.setType(responseType);
+
+ result.addElement(requestElement);
+ result.addElement(responseElement);
+
+ } // for
+
+ addSchema(result);
+
+ } // if
+ } // sync
+
+ return result;
+ }
+
+ /** we keep a static reference to a singleton */
+ private static DefaultBinding defaultBinding;
+
+ /** retrieve the singleton */
+ public static DefaultBinding getDefaultBinding() {
+ if(defaultBinding==null)
+ synchronized(DefaultBinding.class) {
+ if(defaultBinding==null)
+ defaultBinding=new DefaultBinding();
+ }
+
+ return defaultBinding;
+ }
+
+ private static Map classInterfaceSchemaMap=new HashMap();
+
+
+}
+/*
* $Log: DefaultBinding.java,v $
- * Revision 1.1 2000/08/10 21:07:13 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:11 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:13 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 +137 -133 zoap/src/org/zoap/soap/meta/builtin/DefaultMetaBinding.java
Index: DefaultMetaBinding.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/DefaultMetaBinding.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DefaultMetaBinding.java 2000/08/10 21:07:14 1.1
+++ DefaultMetaBinding.java 2000/12/04 12:36:11 1.2
@@ -1,136 +1,146 @@
-/*
- * $Id: DefaultMetaBinding.java,v 1.1 2000/08/10 21:07: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.builtin;
-
-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.scl.SCLBinding;
-
-import org.zoap.xml.meta.StringType;
-
-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 SCLBinding that also copes with the Microsoft Service
- * Description Language to be extended at runtime.
- * <br>
- * @see <related>
- * @author $Author: jung $
- * @version $Revision: 1.1 $
- */
-
-public class DefaultMetaBinding extends SCLBinding {
-
- /** register the additional soap schema which overrides some defaults */
- public DefaultMetaBinding() {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString()+"()\n");
-
- addSchema(org.zoap.xml.meta.builtin.ZoapSchema.getZoapSchema());
- addSchema(ZoapSchema.getZoapSchema());
-
- }
-
- /** we keep a static reference to a singleton */
- private static DefaultMetaBinding defaultMetaBinding;
-
- /** retrieve the singleton */
- public static DefaultMetaBinding getDefaultMetaBinding() {
- if(defaultMetaBinding==null)
- synchronized(DefaultMetaBinding.class) {
- if(defaultMetaBinding==null)
- defaultMetaBinding=new DefaultMetaBinding();
- }
-
- return defaultMetaBinding;
- }
-
-}
-
-/*
+/*
+ * $Id: DefaultMetaBinding.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+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.scl.SCLBinding;
+
+import org.zoap.xml.meta.StringType;
+
+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 SCLBinding that also copes with the Microsoft Service
+ * Description Language to be extended at runtime.
+ * <br>
+ * @see <related>
+ * @author $Author: jung $
+ * @version $Revision: 1.2 $
+ */
+
+public class DefaultMetaBinding extends SCLBinding {
+
+ /** register the additional soap schema which overrides some defaults */
+ public DefaultMetaBinding() {
+
+ if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
+ Environment.out.print(toString()+"()\n");
+
+ addSchema(org.zoap.xml.meta.builtin.ZoapSchema.getZoapSchema());
+ addSchema(ZoapSchema.getZoapSchema());
+
+ }
+
+ /** we keep a static reference to a singleton */
+ private static DefaultMetaBinding defaultMetaBinding;
+
+ /** retrieve the singleton */
+ public static DefaultMetaBinding getDefaultMetaBinding() {
+ if(defaultMetaBinding==null)
+ synchronized(DefaultMetaBinding.class) {
+ if(defaultMetaBinding==null)
+ defaultMetaBinding=new DefaultMetaBinding();
+ }
+
+ return defaultMetaBinding;
+ }
+
+}
+
+/*
* $Log: DefaultMetaBinding.java,v $
- * Revision 1.1 2000/08/10 21:07:14 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:11 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:14 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 +82 -82 zoap/src/org/zoap/soap/meta/builtin/InterfaceType.java
Index: InterfaceType.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/InterfaceType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- InterfaceType.java 2000/08/10 21:07:14 1.1
+++ InterfaceType.java 2000/12/04 12:36:11 1.2
@@ -1,82 +1,82 @@
-/*
- * $Id: InterfaceType.java,v 1.1 2000/08/10 21:07: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.builtin;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Attribute;
-import org.zoap.xml.AttributeException;
-import org.zoap.xml.Environment;
-
-import org.zoap.xml.meta.StringType;
-
-import org.zoap.soap.meta.scl.BindingType;
-
-import java.util.Properties;
-import java.util.Map;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:Schema appearances.
- */
-
-public class InterfaceType extends ComplexType {
-
- private InterfaceType() {
- setTypeName("Interface");
- setAssociatedClass(BindingType.Interface.class);
- setSuperType(BindingType.getBindingType());
- addAttribute(AssociatedInterfaceAttribute.getAssociatedInterfaceAttribute());
- }
-
- public Schema getTypeSchema() {
- return ZoapSchema.getZoapSchema();
- }
-
- private static InterfaceType interfaceType=new InterfaceType();
-
- public static InterfaceType getInterfaceType() {
- return interfaceType;
- }
-}
+/*
+ * $Id: InterfaceType.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Attribute;
+import org.zoap.xml.AttributeException;
+import org.zoap.xml.Environment;
+
+import org.zoap.xml.meta.StringType;
+
+import org.zoap.soap.meta.scl.BindingType;
+
+import java.util.Properties;
+import java.util.Map;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:Schema appearances.
+ */
+
+public class InterfaceType extends ComplexType {
+
+ private InterfaceType() {
+ setTypeName("Interface");
+ setAssociatedClass(BindingType.Interface.class);
+ setSuperType(BindingType.getBindingType());
+ addAttribute(AssociatedInterfaceAttribute.getAssociatedInterfaceAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return ZoapSchema.getZoapSchema();
+ }
+
+ private static InterfaceType interfaceType=new InterfaceType();
+
+ public static InterfaceType getInterfaceType() {
+ return interfaceType;
+ }
+}
1.2 +80 -80
zoap/src/org/zoap/soap/meta/builtin/MethodRequestResponseType.java
Index: MethodRequestResponseType.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/MethodRequestResponseType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MethodRequestResponseType.java 2000/08/10 21:07:14 1.1
+++ MethodRequestResponseType.java 2000/12/04 12:36:11 1.2
@@ -1,80 +1,80 @@
-/*
- * $Id: MethodRequestResponseType.java,v 1.1 2000/08/10 21:07: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.builtin;
-
-import org.zoap.soap.meta.scl.RequestResponseType;
-
-import org.zoap.xml.ComplexType;
-import org.zoap.xml.Schema;
-import org.zoap.xml.Environment;
-
-/**
- * Meta-Meta Type that describes the structure of xsd:complexType appearances.
- */
-
-public class MethodRequestResponseType extends ComplexType {
-
- private MethodRequestResponseType() {
- setTypeName("MethodRequestResponseType");
- setAssociatedClass(RequestResponseType.Interface.class);
- setSuperType(RequestResponseType.getRequestResponseType());
- addAttribute(AssociatedMethodAttribute.getAssociatedMethodAttribute());
- }
-
- public Schema getTypeSchema() {
- return ZoapSchema.getZoapSchema();
- }
-
- public boolean isReferencable() {
- return true;
- }
-
- private static MethodRequestResponseType methodRequestResponseType=new
MethodRequestResponseType();
-
- public static MethodRequestResponseType getMethodRequestResponseType() {
- return methodRequestResponseType;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: MethodRequestResponseType.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+import org.zoap.soap.meta.scl.RequestResponseType;
+
+import org.zoap.xml.ComplexType;
+import org.zoap.xml.Schema;
+import org.zoap.xml.Environment;
+
+/**
+ * Meta-Meta Type that describes the structure of xsd:complexType appearances.
+ */
+
+public class MethodRequestResponseType extends ComplexType {
+
+ private MethodRequestResponseType() {
+ setTypeName("MethodRequestResponseType");
+ setAssociatedClass(RequestResponseType.Interface.class);
+ setSuperType(RequestResponseType.getRequestResponseType());
+ addAttribute(AssociatedMethodAttribute.getAssociatedMethodAttribute());
+ }
+
+ public Schema getTypeSchema() {
+ return ZoapSchema.getZoapSchema();
+ }
+
+ public boolean isReferencable() {
+ return true;
+ }
+
+ private static MethodRequestResponseType methodRequestResponseType=new
MethodRequestResponseType();
+
+ public static MethodRequestResponseType getMethodRequestResponseType() {
+ return methodRequestResponseType;
+ }
+
+}
1.2 +103 -103 zoap/src/org/zoap/soap/meta/builtin/PositionAttribute.java
Index: PositionAttribute.java
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/PositionAttribute.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PositionAttribute.java 2000/08/10 21:07:15 1.1
+++ PositionAttribute.java 2000/12/04 12:36:11 1.2
@@ -1,103 +1,103 @@
-/*
- * $Id: PositionAttribute.java,v 1.1 2000/08/10 21:07: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.builtin;
-
-import org.zoap.soap.meta.scl.BindingType;
-
-import org.zoap.soap.meta.ArgumentElement;
-
-import org.zoap.xml.meta.IntegerType;
-
-import org.zoap.xml.Attribute;
-import org.zoap.xml.Type;
-import org.zoap.xml.AttributeException;
-import org.zoap.xml.Appearance;
-import org.zoap.xml.Environment;
-
-import java.util.Properties;
-import java.util.Map;
-
-
-/**
- * Meta-Meta Attribute zoap:associatedClass that should set the associated class of
a particular
- * type
- */
-
-public class PositionAttribute extends Attribute {
-
- private PositionAttribute() {
- setAppearanceName("position");
- setType(IntegerType.getIntegerType());
- setAppearanceSchema(ZoapSchema.getZoapSchema());
- }
-
- // no output for now
- public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
- return null;
- }
-
- public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
- throws AttributeException {
-
- if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
- Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
- references+","+nameSpaces+")");
-
- if(target instanceof ArgumentElement && value instanceof Integer) {
- ((ArgumentElement) target).setArity(((Integer) value).intValue());
- }
-
-
- return target;
- }
-
- private static PositionAttribute positionAttribute=
- new PositionAttribute();
-
- public static PositionAttribute getPositionAttribute() {
- return positionAttribute;
- }
-
-}
+/*
+ * $Id: PositionAttribute.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+import org.zoap.soap.meta.scl.BindingType;
+
+import org.zoap.soap.meta.ArgumentElement;
+
+import org.zoap.xml.meta.IntegerType;
+
+import org.zoap.xml.Attribute;
+import org.zoap.xml.Type;
+import org.zoap.xml.AttributeException;
+import org.zoap.xml.Appearance;
+import org.zoap.xml.Environment;
+
+import java.util.Properties;
+import java.util.Map;
+
+
+/**
+ * Meta-Meta Attribute zoap:associatedClass that should set the associated class of
a particular
+ * type
+ */
+
+public class PositionAttribute extends Attribute {
+
+ private PositionAttribute() {
+ setAppearanceName("position");
+ setType(IntegerType.getIntegerType());
+ setAppearanceSchema(ZoapSchema.getZoapSchema());
+ }
+
+ // no output for now
+ public Object getAttributeContent(Object object, boolean isNew, Properties
references) {
+ return null;
+ }
+
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
+ throws AttributeException {
+
+ if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
+ Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
+ references+","+nameSpaces+")");
+
+ if(target instanceof ArgumentElement && value instanceof Integer) {
+ ((ArgumentElement) target).setArity(((Integer) value).intValue());
+ }
+
+
+ return target;
+ }
+
+ private static PositionAttribute positionAttribute=
+ new PositionAttribute();
+
+ public static PositionAttribute getPositionAttribute() {
+ return positionAttribute;
+ }
+
+}
1.2 +81 -81 zoap/src/org/zoap/soap/meta/builtin/ReturnType.java
Index: ReturnType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/ReturnType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ReturnType.java 2000/08/10 21:07:15 1.1
+++ ReturnType.java 2000/12/04 12:36:11 1.2
@@ -1,81 +1,81 @@
-/*
- * $Id: ReturnType.java,v 1.1 2000/08/10 21:07: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.builtin;
-
-import org.zoap.soap.meta.ReturnElement;
-
-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:complexType appearances.
- */
-
-public class ReturnType extends ComplexType {
-
- private ReturnType() {
- setTypeName("ReturnType");
- setAssociatedClass(ReturnElement.class);
- setSuperType(ElementType.getElementType());
- }
-
- public Schema getTypeSchema() {
- return ZoapSchema.getZoapSchema();
- }
-
- public boolean isReferencable() {
- return true;
- }
-
- private static ReturnType returnType=new ReturnType();
-
- public static ReturnType getReturnType() {
- return returnType;
- }
-
-}
\ No newline at end of file
+/*
+ * $Id: ReturnType.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+import org.zoap.soap.meta.ReturnElement;
+
+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:complexType appearances.
+ */
+
+public class ReturnType extends ComplexType {
+
+ private ReturnType() {
+ setTypeName("ReturnType");
+ setAssociatedClass(ReturnElement.class);
+ setSuperType(ElementType.getElementType());
+ }
+
+ public Schema getTypeSchema() {
+ return ZoapSchema.getZoapSchema();
+ }
+
+ public boolean isReferencable() {
+ return true;
+ }
+
+ private static ReturnType returnType=new ReturnType();
+
+ public static ReturnType getReturnType() {
+ return returnType;
+ }
+
+}
1.2 +130 -126 zoap/src/org/zoap/soap/meta/builtin/ZoapSchema.java
Index: ZoapSchema.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/ZoapSchema.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ZoapSchema.java 2000/08/10 21:07:15 1.1
+++ ZoapSchema.java 2000/12/04 12:36:11 1.2
@@ -1,129 +1,139 @@
-/*
- * $Id: ZoapSchema.java,v 1.1 2000/08/10 21:07: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.builtin;
-
-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 ZoapSchema extends Schema {
-
- /** construct a new soap schema */
- public ZoapSchema() {
- setUrn(new URN(new String[] {"http://soap.zoap.org/"}));
- }
-
-
- private static ZoapSchema zoapSchema=new ZoapSchema();
-
- static{
- zoapSchema.addType(InterfaceType.getInterfaceType());
- zoapSchema.addType(MethodRequestResponseType.getMethodRequestResponseType());
- zoapSchema.addType(ReturnType.getReturnType());
- zoapSchema.addType(ArgumentType.getArgumentType());
- }
-
- public static ZoapSchema getZoapSchema() {
- return zoapSchema;
- }
-
-}
-
-/*
+/*
+ * $Id: ZoapSchema.java,v 1.2 2000/12/04 12:36:11 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.builtin;
+
+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 ZoapSchema extends Schema {
+
+ /** construct a new soap schema */
+ public ZoapSchema() {
+ setUrn(new URN(new String[] {"http://soap.zoap.org/"}));
+ }
+
+
+ private static ZoapSchema zoapSchema=new ZoapSchema();
+
+ static{
+ zoapSchema.addType(InterfaceType.getInterfaceType());
+ zoapSchema.addType(MethodRequestResponseType.getMethodRequestResponseType());
+ zoapSchema.addType(ReturnType.getReturnType());
+ zoapSchema.addType(ArgumentType.getArgumentType());
+ }
+
+ public static ZoapSchema getZoapSchema() {
+ return zoapSchema;
+ }
+
+}
+
+/*
* $Log: ZoapSchema.java,v $
- * Revision 1.1 2000/08/10 21:07:15 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:11 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:15 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 +77 -77 zoap/src/org/zoap/soap/meta/builtin/builtin.dfPackage
Index: builtin.dfPackage
===================================================================
RCS file:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/builtin.dfPackage,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- builtin.dfPackage 2000/08/10 21:07:13 1.1
+++ builtin.dfPackage 2000/12/04 12:36:11 1.2
@@ -1,77 +1,77 @@
-package idd1uocbhi562acbhkttca;
-
-/**
-@version 2.0
-@physicalPackage
-@__modelType diagram
-*/
-class diagram {
-/**
-@__ref
<oiref:java#Class#org.zoap.soap.meta.builtin.AssociatedMethodAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.InterfaceType:oiref><oihard>
-@__modelType reference
-*/
-class reference21 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.ZoapSchema:oiref><oihard>
-@__modelType reference
-*/
-class reference22 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.ArgumentType:oiref><oihard>
-@__modelType reference
-*/
-class reference23 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.DefaultBinding:oiref><oihard>
-@__modelType reference
-*/
-class reference25 {
-}/**
-@__ref
<oiref:java#Class#org.zoap.soap.meta.builtin.DefaultMetaBinding:oiref><oihard>
-@__modelType reference
-*/
-class reference26 {
-}/**
-@__ref
<oiref:java#Class#org.zoap.soap.meta.builtin.AssociatedInterfaceAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference27 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.ReturnType:oiref><oihard>
-@__modelType reference
-*/
-class reference28 {
-}/**
-@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.PositionAttribute:oiref><oihard>
-@__modelType reference
-*/
-class reference29 {
-}/**
-@__ref
<oiref:java#Class#org.zoap.soap.meta.builtin.MethodRequestResponseType:oiref><oihard>
-@__modelType reference
-*/
-class reference30 {
-}/**
-@__ref <oiref:design#Class#idd1uocbhi562acbhkttca.diagram:oiref><oihard>
-@__modelType reference
-*/
-class reference1 {
-}}/**
-@__tags
-@shapeType ClassDiagram
-*/
-class __tags {
-}/**
-@__options
-*/
-class __options {
-}/**
-@__positions
-*/
-class __positions {
-}
\ No newline at end of file
+package idd1uocbhi562acbhkttca;
+
+/**
+@version 2.0
+@physicalPackage
+@__modelType diagram
+*/
+class diagram {
+/**
+@__ref
<oiref:java#Class#org.zoap.soap.meta.builtin.AssociatedMethodAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.InterfaceType:oiref><oihard>
+@__modelType reference
+*/
+class reference21 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.ZoapSchema:oiref><oihard>
+@__modelType reference
+*/
+class reference22 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.ArgumentType:oiref><oihard>
+@__modelType reference
+*/
+class reference23 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.DefaultBinding:oiref><oihard>
+@__modelType reference
+*/
+class reference25 {
+}/**
+@__ref
<oiref:java#Class#org.zoap.soap.meta.builtin.DefaultMetaBinding:oiref><oihard>
+@__modelType reference
+*/
+class reference26 {
+}/**
+@__ref
<oiref:java#Class#org.zoap.soap.meta.builtin.AssociatedInterfaceAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference27 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.ReturnType:oiref><oihard>
+@__modelType reference
+*/
+class reference28 {
+}/**
+@__ref <oiref:java#Class#org.zoap.soap.meta.builtin.PositionAttribute:oiref><oihard>
+@__modelType reference
+*/
+class reference29 {
+}/**
+@__ref
<oiref:java#Class#org.zoap.soap.meta.builtin.MethodRequestResponseType:oiref><oihard>
+@__modelType reference
+*/
+class reference30 {
+}/**
+@__ref <oiref:design#Class#idd1uocbhi562acbhkttca.diagram:oiref><oihard>
+@__modelType reference
+*/
+class reference1 {
+}}/**
+@__tags
+@shapeType ClassDiagram
+*/
+class __tags {
+}/**
+@__options
+*/
+class __options {
+}/**
+@__positions
+*/
+class __positions {
+}