User: jung
Date: 01/01/03 05:54:29
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
Log:
exception redesign. Improved null-pointer treatment. coherent environment and
logging facilities.
LGPL references.
Revision Changes Path
1.3 +40 -66 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ArgumentType.java 2000/12/04 12:36:11 1.2
+++ ArgumentType.java 2001/01/03 13:54:27 1.3
@@ -1,45 +1,22 @@
-/*
- * $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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/ArgumentType.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.zoap.soap.meta.builtin;
@@ -48,35 +25,32 @@
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.
- */
+/** 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;
- }
+ 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.4 +53 -79
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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AssociatedInterfaceAttribute.java 2001/01/03 10:23:45 1.3
+++ AssociatedInterfaceAttribute.java 2001/01/03 13:54:27 1.4
@@ -1,45 +1,22 @@
-/*
- * $Id: AssociatedInterfaceAttribute.java,v 1.3 2001/01/03 10:23:45 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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/AssociatedInterfaceAttribute.java,v
$
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.zoap.soap.meta.builtin;
@@ -52,50 +29,47 @@
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
- */
+/** 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(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;
- }
+ 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 (target instanceof BindingType.Interface) {
+ try {
+ ((BindingType.Interface)
target).setAssociatedInterface(Class.forName((String)
+ value, true,
Thread.currentThread().getContextClassLoader()));
+ } catch (ClassNotFoundException e) {
+ throw new AttributeException(toString() +
".setAttributeContent(" + target +
+ "," + value + "," + references + "," + nameSpaces +
"): encountered " + e.toString() + " while trying to set associated interface.", e);
+ }
+ }
+
+
+ return target;
+ }
+
+ private static AssociatedInterfaceAttribute associatedInterfaceAttribute =
+ new AssociatedInterfaceAttribute();
+
+ public static AssociatedInterfaceAttribute getAssociatedInterfaceAttribute() {
+ return associatedInterfaceAttribute;
+ }
}
1.4 +42 -67
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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AssociatedMethodAttribute.java 2001/01/03 10:23:45 1.3
+++ AssociatedMethodAttribute.java 2001/01/03 13:54:27 1.4
@@ -1,47 +1,25 @@
-/*
- * $Id: AssociatedMethodAttribute.java,v 1.3 2001/01/03 10:23:45 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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/AssociatedMethodAttribute.java,v
$
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta.builtin;
import org.zoap.soap.meta.scl.RequestResponseType;
@@ -52,47 +30,44 @@
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
- */
+/** 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());
- }
+ 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;
- }
+ // 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 {
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
+ throws AttributeException {
- if(target instanceof RequestResponseType.Interface)
- ((RequestResponseType.Interface) target).setMethodName((String) value);
+ if (target instanceof RequestResponseType.Interface)
+ ((RequestResponseType.Interface)
target).setMethodName((String)value);
- return target;
- }
+ return target;
+ }
- private static AssociatedMethodAttribute associatedMethodAttribute=
- new AssociatedMethodAttribute();
+ private static AssociatedMethodAttribute associatedMethodAttribute =
+ new AssociatedMethodAttribute();
- public static AssociatedMethodAttribute getAssociatedMethodAttribute() {
- return associatedMethodAttribute;
- }
+ public static AssociatedMethodAttribute getAssociatedMethodAttribute() {
+ return associatedMethodAttribute;
+ }
}
1.3 +158 -215 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultBinding.java 2000/12/04 12:36:11 1.2
+++ DefaultBinding.java 2001/01/03 13:54:27 1.3
@@ -1,47 +1,25 @@
-/*
- * $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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/DefaultBinding.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta.builtin;
import org.zoap.soap.Environment;
@@ -77,260 +55,216 @@
/**
* SoapBinding overrides the default databinding of infor:XML to introduce
SOAP-related
- * schemas, elements, attributes and types.
- * <br>
+ * schemas, elements, attributes and types. <br>
* @see <related>
* @author $Author: jung $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class DefaultBinding extends SoapBinding {
+
+ private org.zoap.xml.meta.builtin.DefaultBinding objectBinding;
- private org.zoap.xml.meta.builtin.DefaultBinding objectBinding;
+ /** register the additional soap schema which overrides some defaults */
+ public DefaultBinding() {
- /** 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
- */
+ }
+
+ /**
+ * 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) {
- public Schema getSchema(URN urn) {
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.println(toString()+".getSchema("+urn+")");
- Schema result=super.getSchema(urn);
+ Schema result = super.getSchema(urn);
- if(result==null) {
+ if (result == null) {
- try{
- Class forClass=
- Environment.getClassForUrn(urn);
+ try {
+ Class forClass =
+ Environment.getClassForUrn(urn);
- return getInterfaceSchema(forClass);
+ return getInterfaceSchema(forClass);
- } catch(ClassNotFoundException e) {
+ } catch (ClassNotFoundException e) {
- if(objectBinding==null)
- objectBinding=new org.zoap.xml.meta.builtin.DefaultBinding();
+ if (objectBinding == null)
+ objectBinding = new
org.zoap.xml.meta.builtin.DefaultBinding();
- return objectBinding.getSchema(urn);
+ return objectBinding.getSchema(urn);
- }
+ }
- } else
- return result;
- }
+ } 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.
- */
+ /**
+ * 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) {
+ 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);
+ Element result = super.findElementCompatibleTo(object, clazz);
- if(result==null) {
+ if (result == null) {
- if(object instanceof MethodRequest) {
+ if (object instanceof MethodRequest) {
- return getInterfaceSchema(((MethodRequest)
object).getMethod().getDeclaringClass()).
- findElementCompatibleTo(object,MethodRequest.class);
+ return
getInterfaceSchema(((MethodRequest)object).getMethod().getDeclaringClass()).
+ findElementCompatibleTo(object, MethodRequest.class);
- } else if(object instanceof MethodResponse) {
+ } else if (object instanceof MethodResponse) {
- return getInterfaceSchema(((MethodResponse)
object).getMethod().getDeclaringClass()).
- findElementCompatibleTo(object,MethodResponse.class);
+ return
getInterfaceSchema(((MethodResponse)object).getMethod().getDeclaringClass()).
+ findElementCompatibleTo(object, MethodResponse.class);
- } else {
+ } else {
- if(objectBinding==null)
- objectBinding=new org.zoap.xml.meta.builtin.DefaultBinding();
+ if (objectBinding == null)
+ objectBinding = new
org.zoap.xml.meta.builtin.DefaultBinding();
- return objectBinding.findElementCompatibleTo(object,clazz);
+ return objectBinding.findElementCompatibleTo(object,
clazz);
- }
- } else
- return result;
+ }
+ } else
+ return result;
- }
+ }
- public Type findTypeCompatibleTo(Object object, Class clazz) {
+ 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;
- }
+ Element element = findElementCompatibleTo(object, clazz);
- public Schema getInterfaceSchema(Class forClass) {
+ if (element != null)
+ return element.getType();
+ else
+ return null;
+ }
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString()+".getInterfaceSchema("+forClass+")\n");
+ public Schema getInterfaceSchema(Class forClass) {
- Schema result=(Schema) classInterfaceSchemaMap.get(forClass);
- if(result==null)
- synchronized(classInterfaceSchemaMap) {
+ Schema result = (Schema)classInterfaceSchemaMap.get(forClass);
- result=(Schema) classInterfaceSchemaMap.get(forClass);
+ if (result == null)
- if(result==null) {
+ synchronized(classInterfaceSchemaMap) {
- result=new Schema();
+ result = (Schema)classInterfaceSchemaMap.get(forClass);
- result.setUrn(new URN(Environment.INTERNAL_URN.toString()+
- org.zoap.xml.Environment.getNameSpaceForClass(forClass)));
+ if (result == null) {
- addSchema(result);
+ result = new Schema();
- Method[] methods=forClass.getMethods();
+ result.setUrn(
+ new
URN(Environment.INTERNAL_URN.toString() +
+
org.zoap.xml.Environment.getNameSpaceForClass(forClass)));
- for(int count=0;count<methods.length;count++) {
+ addSchema(result);
- RequestElement requestElement=new RequestElement();
- ResponseElement responseElement=new ResponseElement();
+ Method[] methods = forClass.getMethods();
- // extract our name suffix
-
requestElement.setAppearanceName(methods[count].getName()+"-"+count+"-Request");
-
responseElement.setAppearanceName(methods[count].getName()+"-"+count+"-Response");
+ for (int count = 0; count < methods.length;
count++) {
- // we build up a nice schema for the package of the class
- requestElement.setAppearanceSchema(result);
- responseElement.setAppearanceSchema(result);
+ RequestElement requestElement = new
RequestElement();
+ ResponseElement responseElement = new
ResponseElement();
- // create a new responsetype
- RequestType requestType=new RequestType();
- ResponseType responseType=new ResponseType();
+ // extract our name suffix
+
requestElement.setAppearanceName(methods[count].getName() + "-" + count + "-Request");
+
responseElement.setAppearanceName(methods[count].getName() + "-" + count +
"-Response");
- // 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
+
requestElement.setAppearanceSchema(result);
+
responseElement.setAppearanceSchema(result);
- // we build up a nice schema for the package of the class
- requestType.setTypeSchema(result);
- responseType.setTypeSchema(result);
+ // create a new responsetype
+ RequestType requestType = new
RequestType();
+ ResponseType responseType = new
ResponseType();
- // we set the method name
- requestType.setAssociatedMethod(methods[count]);
- responseType.setAssociatedMethod(methods[count]);
+ // extract our name suffix
+
requestType.setTypeName(methods[count].getName() + "-" + count + "-Request");
+
responseType.setTypeName(methods[count].getName() + "-" + count + "-Response");
- // and we determine the allowed "elements"
- Class[] argClasses=methods[count].getParameterTypes();
+ // we build up a nice schema for the
package of the class
+ requestType.setTypeSchema(result);
+ responseType.setTypeSchema(result);
- 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
+ // we set the method name
+
requestType.setAssociatedMethod(methods[count]);
+
responseType.setAssociatedMethod(methods[count]);
- // and we determine the allowed "elements"
- Class returnClass=methods[count].getReturnType();
+ // and we determine the allowed
"elements"
+ Class[] argClasses =
methods[count].getParameterTypes();
- 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
+ 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
- requestElement.setType(requestType);
- responseElement.setType(responseType);
+ // and we determine the allowed
"elements"
+ Class returnClass =
methods[count].getReturnType();
- result.addElement(requestElement);
- result.addElement(responseElement);
+ 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
- } // for
+ requestElement.setType(requestType);
+ responseElement.setType(responseType);
- addSchema(result);
+ result.addElement(requestElement);
+ result.addElement(responseElement);
- } // if
- } // sync
+ } // for
- return result;
- }
+ addSchema(result);
- /** we keep a static reference to a singleton */
- private static DefaultBinding defaultBinding;
+ } // if
+ } // sync
- /** retrieve the singleton */
- public static DefaultBinding getDefaultBinding() {
- if(defaultBinding==null)
- synchronized(DefaultBinding.class) {
- if(defaultBinding==null)
- defaultBinding=new DefaultBinding();
- }
+ return result;
+ }
- return defaultBinding;
- }
+ /** we keep a static reference to a singleton */
+ private static DefaultBinding defaultBinding;
- private static Map classInterfaceSchemaMap=new HashMap();
+ /** 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.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.3 +40 -95 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultMetaBinding.java 2000/12/04 12:36:11 1.2
+++ DefaultMetaBinding.java 2001/01/03 13:54:28 1.3
@@ -1,45 +1,22 @@
-/*
- * $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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/DefaultMetaBinding.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.zoap.soap.meta.builtin;
@@ -69,78 +46,37 @@
import java.util.Properties;
/**
- * An extension to SCLBinding that also copes with the Microsoft Service
- * Description Language to be extended at runtime.
- * <br>
+ * 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 $
+ * @version $Revision: 1.3 $
*/
public class DefaultMetaBinding extends SCLBinding {
- /** register the additional soap schema which overrides some defaults */
- public DefaultMetaBinding() {
+ /** 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());
+ 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;
- }
+ /** 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.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.3 +20 -43 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- InterfaceType.java 2000/12/04 12:36:11 1.2
+++ InterfaceType.java 2001/01/03 13:54:28 1.3
@@ -1,54 +1,31 @@
-/*
- * $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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/InterfaceType.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
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;
1.3 +41 -66
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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MethodRequestResponseType.java 2000/12/04 12:36:11 1.2
+++ MethodRequestResponseType.java 2001/01/03 13:54:28 1.3
@@ -1,45 +1,22 @@
-/*
- * $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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/MethodRequestResponseType.java,v
$
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.zoap.soap.meta.builtin;
@@ -48,33 +25,31 @@
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.
- */
+
+/** 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;
- }
+ 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.4 +42 -68 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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PositionAttribute.java 2001/01/03 10:23:45 1.3
+++ PositionAttribute.java 2001/01/03 13:54:28 1.4
@@ -1,47 +1,25 @@
-/*
- * $Id: PositionAttribute.java,v 1.3 2001/01/03 10:23:45 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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/PositionAttribute.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta.builtin;
import org.zoap.soap.meta.scl.BindingType;
@@ -54,47 +32,43 @@
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
- */
+/** 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());
- }
+ 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;
- }
+ // 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 {
+ public Object setAttributeContent(Object target, Object value, Map references,
Map nameSpaces)
+ throws AttributeException {
- if(target instanceof ArgumentElement && value instanceof Integer) {
- ((ArgumentElement) target).setArity(((Integer) value).intValue());
- }
+ if (target instanceof ArgumentElement && value instanceof Integer) {
+
((ArgumentElement)target).setArity(((Integer)value).intValue());
+ }
- return target;
- }
+ return target;
+ }
- private static PositionAttribute positionAttribute=
- new PositionAttribute();
+ private static PositionAttribute positionAttribute =
+ new PositionAttribute();
- public static PositionAttribute getPositionAttribute() {
- return positionAttribute;
- }
+ public static PositionAttribute getPositionAttribute() {
+ return positionAttribute;
+ }
}
1.3 +40 -65 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ReturnType.java 2000/12/04 12:36:11 1.2
+++ ReturnType.java 2001/01/03 13:54:28 1.3
@@ -1,81 +1,56 @@
-/*
- * $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.
+/*
+ * $Source:
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/builtin/ReturnType.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
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.
- */
+/** 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;
- }
+ 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;
+ }
}