User: jung    
  Date: 01/01/03 05:54:33

  Modified:    src/org/zoap/soap/meta/scl BindingElement.java
                        BindingType.java ContractElement.java
                        ContractType.java MessageElement.java
                        MessageRefAttribute.java RequestElement.java
                        RequestResponseElement.java
                        RequestResponseType.java RequestType.java
                        ResponseElement.java SCLBinding.java
  Log:
  exception redesign. Improved null-pointer treatment. coherent environment and 
logging facilities.
  LGPL references.
  
  Revision  Changes    Path
  1.3       +39 -65    zoap/src/org/zoap/soap/meta/scl/BindingElement.java
  
  Index: BindingElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/BindingElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BindingElement.java       2000/12/04 12:36:14     1.2
  +++ BindingElement.java       2001/01/03 13:54:30     1.3
  @@ -1,47 +1,25 @@
  -/*
  - *   $Id: BindingElement.java,v 1.2 2000/12/04 12:36:14 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/BindingElement.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.scl;
   
   import org.zoap.soap.Environment;
  @@ -51,38 +29,34 @@
   
   import java.util.Map;
   
  -/**
  - * Meta-Meta Element that describes scl:contract appearances
  - */
  +/** Meta-Meta Element that describes scl:contract appearances */
   
   public class BindingElement extends Element {
  +
  +     private BindingElement() {
  +             setAppearanceName("binding");
  +             setType(BindingType.getBindingType());
  +     }
   
  -    private BindingElement() {
  -        setAppearanceName("binding");
  -        setType(BindingType.getBindingType());
  -    }
  +     public Schema getAppearanceSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
   
  -    public Schema getAppearanceSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  +     public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
   
  -    public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
   
  -      if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -        
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
  -          nameSpaces+")\n");
   
  -      if(target instanceof Schema && value instanceof BindingType.Interface) {
  -        ((BindingType.Interface) value).setInterfaceSchema((Schema) target);
  -      }
  +             if (target instanceof Schema && value instanceof 
BindingType.Interface) {
  +                     ((BindingType.Interface) 
value).setInterfaceSchema((Schema)target);
  +             }
   
  -      return target;
  -    }
  +             return target;
  +     }
   
  -    private static BindingElement bindingElement=new BindingElement();
  +     private static BindingElement bindingElement = new BindingElement();
   
  -    public static BindingElement getBindingElement() {
  -            return bindingElement;
  -    }
  +     public static BindingElement getBindingElement() {
  +             return bindingElement;
  +     }
   
   }
  
  
  
  1.3       +57 -81    zoap/src/org/zoap/soap/meta/scl/BindingType.java
  
  Index: BindingType.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/BindingType.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BindingType.java  2000/12/04 12:36:14     1.2
  +++ BindingType.java  2001/01/03 13:54:30     1.3
  @@ -1,108 +1,84 @@
  -/*
  - *   $Id: BindingType.java,v 1.2 2000/12/04 12:36:14 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/BindingType.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.scl;
   
   import org.zoap.xml.ComplexType;
   import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
   
   
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:Schema appearances.
  - */
  +/** Meta-Meta Type that describes the structure of xsd:Schema appearances. */
   
   public class BindingType extends ComplexType {
  +
  +     public static class Interface {
   
  -    public static class Interface {
  +             Class associatedInterface;
  +             Schema interfaceSchema;
  +             Schema superSchema;
   
  -      Class associatedInterface;
  -      Schema interfaceSchema;
  -      Schema superSchema;
  +             public void setAssociatedInterface(Class associatedInterface) {
  +                     this.associatedInterface = associatedInterface;
  +             }
   
  -      public void setAssociatedInterface(Class associatedInterface) {
  -        this.associatedInterface=associatedInterface;
  -      }
  +             public Class getAssociatedInterface() {
  +                     return associatedInterface;
  +             }
   
  -      public Class getAssociatedInterface() {
  -        return associatedInterface;
  -      }
  +             public Schema getInterfaceSchema() {
  +                     return interfaceSchema;
  +             }
   
  -      public Schema getInterfaceSchema() {
  -        return interfaceSchema;
  -      }
  +             public void setInterfaceSchema(Schema schema) {
  +                     interfaceSchema = schema;
  +             }
   
  -      public void setInterfaceSchema(Schema schema) {
  -        interfaceSchema=schema;
  -      }
  +             public Schema getSuperSchema() {
  +                     return superSchema;
  +             }
   
  -      public Schema getSuperSchema() {
  -        return superSchema;
  -      }
  +             public void setSuperSchema(Schema superSchema) {
  +                     this.superSchema = superSchema;
  +             }
   
  -      public void setSuperSchema(Schema superSchema) {
  -        this.superSchema=superSchema;
  -      }
   
   
  +     }
   
  -    }
   
  -    private BindingType() {
  -        setTypeName("binding");
  -        setAssociatedClass(Interface.class);
  -        addElement(RequestResponseElement.getRequestResponseElement());
  -    }
  +     private BindingType() {
  +             setTypeName("binding");
  +             setAssociatedClass(Interface.class);
  +             addElement(RequestResponseElement.getRequestResponseElement());
  +     }
   
  -    public Schema getTypeSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  +     public Schema getTypeSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
   
  -    private static BindingType bindingType=new BindingType();
  +     private static BindingType bindingType = new BindingType();
   
  -    public static BindingType getBindingType() {
  -            return bindingType;
  -    }
  +     public static BindingType getBindingType() {
  +             return bindingType;
  +     }
   
   }
  
  
  
  1.3       +35 -60    zoap/src/org/zoap/soap/meta/scl/ContractElement.java
  
  Index: ContractElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ContractElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ContractElement.java      2000/12/04 12:36:14     1.2
  +++ ContractElement.java      2001/01/03 13:54:31     1.3
  @@ -1,72 +1,47 @@
  -/*
  - *   $Id: ContractElement.java,v 1.2 2000/12/04 12:36:14 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ContractElement.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.scl;
   
   import org.zoap.xml.Element;
   import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
   
  -/**
  - * Meta-Meta Element that describes scl:contract appearances
  - */
  +/** Meta-Meta Element that describes scl:contract appearances */
   
   public class ContractElement extends Element {
   
  -    private ContractElement() {
  -        setAppearanceName("contract");
  -        setType(ContractType.getContractType());
  -    }
  -
  -    public Schema getAppearanceSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  -
  -    private static ContractElement contractElement=new ContractElement();
  -
  -    public static ContractElement getContractElement() {
  -            return contractElement;
  -    }
  +     private ContractElement() {
  +             setAppearanceName("contract");
  +             setType(ContractType.getContractType());
  +     }
  +
  +     public Schema getAppearanceSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
  +
  +     private static ContractElement contractElement = new ContractElement();
  +
  +     public static ContractElement getContractElement() {
  +             return contractElement;
  +     }
   
   }
  
  
  
  1.3       +38 -63    zoap/src/org/zoap/soap/meta/scl/ContractType.java
  
  Index: ContractType.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ContractType.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ContractType.java 2000/12/04 12:36:14     1.2
  +++ ContractType.java 2001/01/03 13:54:31     1.3
  @@ -1,77 +1,52 @@
  -/*
  - *   $Id: ContractType.java,v 1.2 2000/12/04 12:36:14 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ContractType.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.scl;
   
   import org.zoap.xml.ComplexType;
   import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
   
   import org.zoap.xml.meta.SchemaType;
   
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:Schema appearances.
  - */
  +/** Meta-Meta Type that describes the structure of xsd:Schema appearances. */
   
   public class ContractType extends ComplexType {
   
  -    private ContractType() {
  -        setTypeName("contract");
  -        setAssociatedClass(Schema.class);
  -        setSuperType(SchemaType.getSchemaType());
  -        addElement(BindingElement.getBindingElement());
  -        addElement(MessageElement.getMessageElement());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  -
  -    private static ContractType contractType=new ContractType();
  -
  -    public static ContractType getContractType() {
  -            return contractType;
  -    }
  +     private ContractType() {
  +             setTypeName("contract");
  +             setAssociatedClass(Schema.class);
  +             setSuperType(SchemaType.getSchemaType());
  +             addElement(BindingElement.getBindingElement());
  +             addElement(MessageElement.getMessageElement());
  +     }
  +
  +     public Schema getTypeSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
  +
  +     private static ContractType contractType = new ContractType();
  +
  +     public static ContractType getContractType() {
  +             return contractType;
  +     }
   
   }
  
  
  
  1.3       +56 -85    zoap/src/org/zoap/soap/meta/scl/MessageElement.java
  
  Index: MessageElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/MessageElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessageElement.java       2000/12/04 12:36:14     1.2
  +++ MessageElement.java       2001/01/03 13:54:31     1.3
  @@ -1,45 +1,22 @@
  -/*
  - *   $Id: MessageElement.java,v 1.2 2000/12/04 12:36:14 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/MessageElement.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.scl;
  @@ -57,51 +34,45 @@
   import java.util.Map;
   import java.util.Properties;
   
  -/**
  - * Meta-Meta Element that describes scl:contract appearances
  - */
  +/** Meta-Meta Element that describes scl:contract appearances */
   
   public class MessageElement extends Element {
   
  -    private MessageElement() {
  -        setAppearanceName("message");
  -        setType(ComplexTypeType.getComplexTypeType());
  -    }
  -
  -    public Schema getAppearanceSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -        // no output for now
  -    public Object[] getElementContents(Object target, boolean isNew, Properties 
references) {
  -      return null;
  -    }
  -
  -    public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
  -
  -      if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -        
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
  -          nameSpaces+")\n");
  -
  -      if(target instanceof Schema && value instanceof Type) {
  -        ((Type) value).setTypeSchema((Schema) target);
  -        ((Schema) target).addType((Type) value);
  -      } else if(target instanceof Element && value instanceof Type) {
  -        ((Type) value).setTypeSchema(((Element) target).getAppearanceSchema());
  -        ((Element) target).setType((Type) value);
  -      }
  -
  -      return target;
  -    }
  -
  -    private static MessageElement messageElement=new MessageElement();
  -
  -    public static MessageElement getMessageElement() {
  -            return messageElement;
  -    }
  +     private MessageElement() {
  +             setAppearanceName("message");
  +             setType(ComplexTypeType.getComplexTypeType());
  +     }
  +
  +     public Schema getAppearanceSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
  +
  +     public boolean isReferencable() {
  +             return true;
  +     }
  +
  +     // no output for now
  +     public Object[] getElementContents(Object target, boolean isNew, Properties 
references) {
  +             return null;
  +     }
  +
  +     public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
  +
  +             if (target instanceof Schema && value instanceof Type) {
  +                     ((Type)value).setTypeSchema((Schema)target);
  +                     ((Schema)target).addType((Type)value);
  +             } else if (target instanceof Element && value instanceof Type) {
  +                     
((Type)value).setTypeSchema(((Element)target).getAppearanceSchema());
  +                     ((Element)target).setType((Type)value);
  +             }
  +
  +             return target;
  +     }
  +
  +     private static MessageElement messageElement = new MessageElement();
  +
  +     public static MessageElement getMessageElement() {
  +             return messageElement;
  +     }
   
   }
  
  
  
  1.3       +141 -173  zoap/src/org/zoap/soap/meta/scl/MessageRefAttribute.java
  
  Index: MessageRefAttribute.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/MessageRefAttribute.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessageRefAttribute.java  2000/12/04 12:36:15     1.2
  +++ MessageRefAttribute.java  2001/01/03 13:54:31     1.3
  @@ -1,45 +1,22 @@
  -/*
  - *   $Id: MessageRefAttribute.java,v 1.2 2000/12/04 12:36:15 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/MessageRefAttribute.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.scl;
  @@ -55,7 +32,6 @@
   import org.zoap.xml.Element;
   import org.zoap.xml.SimpleType;
   import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Environment;
   
   import org.zoap.soap.meta.RequestType;
   import org.zoap.soap.meta.ResponseType;
  @@ -67,138 +43,130 @@
   import java.util.Map;
   
   
  -/**
  - * Meta-Meta Attribute xsd:type that will set the type of a given appearance
  - */
  +/** Meta-Meta Attribute xsd:type that will set the type of a given appearance */
   
   public class MessageRefAttribute extends Attribute {
  +
  +     /** Its a qname attribute */
  +
  +     private MessageRefAttribute() {
  +             setAppearanceName("messageRef");
  +             setType(QNameType.getQNameType());
  +             setAppearanceSchema(SCLSchema.getSCLSchema());
  +     }
  +
  +     /** read-access only */
  +     public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  +             return null;
  +     }
  +
  +     /**
  +      * The setAttributeContent method is able to lazily initiate types
  +      * not yet mentioned in the binding for enabling forward and cyclic referencing
  +      * There is currently a large problem with pre-initialising types
  +      * referenced in elements, since we cannot know in advance what concrete type 
this
  +      * will be. I hate those XML-suckers. Never thought about easy processing for 
their
  +      * shit. So we try to guess from the embedding type what the type will be
  +      */
  +
  +     public Object setAttributeContent(Object target, Object value, Map references, 
Map nameSpaces) {
  +
  +             // target appearance must be initialised in each case
  +
  +             if (target instanceof RequestElement) {
  +
  +                     // first we try to interpret the qname as prefix:type
  +                     Schema schema = (Schema)nameSpaces.
  +                     
get(org.zoap.xml.Environment.getNameSpacePrefix((String)value));
  +
  +                     Type type = null;
  +
  +                     // here it is?
  +                     if (schema != null) {
  +
  +                             // yes, then the second part of the qname must be a 
type
  +                             type = 
schema.getType(org.zoap.xml.Environment.getProperName((String)value));
  +
  +                             // its already initialised?
  +                             if (type == null) {
  +
  +                                     type = new RequestType();
  +                                     // register it in the right schema
  +                                     type.setTypeSchema(schema);
  +                                     // set the type name accordingly
  +                                     
type.setTypeName(org.zoap.xml.Environment.getProperName((String)value));
  +                                     // and add it prophilactically to the schema
  +                                     schema.addType(type);
  +                             }
  +
  +                     } else {
  +
  +                             // no, then we think that the name should be a local 
type
  +                             type = (Type)references.get(value);
  +
  +                             // its here
  +                             if (type == null) {
  +
  +                                     // no, sucking forward reference, we assume 
its a complex
  +                                     // type, but this must not be always true
  +                                     type = new RequestType();
  +
  +
  +                                     // schema is hopefully set later
  +
  +                                     // set the name to the given qname
  +                                     type.setTypeName((String)value);
  +                                     // register locally
  +                                     references.put(value, type);
  +                             }
  +                     }
  +
  +                     // next assign it to the element
  +                     ((Element)target).setType(type);
  +
  +             } else if (target instanceof ResponseElement) {
  +
  +                     // assume this is a qname
  +                     Schema schema = 
(Schema)nameSpaces.get(org.zoap.xml.Environment.getNameSpacePrefix((String)value));
  +
  +                     // that refers to this simpletype
  +                     Type type = null;
  +
  +                     if (schema != null) {
  +                             // indeed a qname, so look it up
  +                             type = (Type)
  +                             
schema.getType(org.zoap.xml.Environment.getProperName((String)value));
  +
  +                             // not yet initialized, we fake it
  +                             if (type == null) {
  +                                     type = new ResponseType();
  +                                     type.setTypeSchema(schema);
  +                                     
type.setTypeName(org.zoap.xml.Environment.getProperName((String)value));
  +                                     schema.addType(type);
  +                             }
  +
  +                     } else {
  +                             type = (Type)references.get(value);
  +
  +                             if (type == null) {
  +                                     type = new ResponseType();
  +                                     type.setTypeName((String)value);
  +                                     references.put(value, type);
  +                                     // schema is hopefully set later
  +                             }
  +                     }
  +
  +                     ((Element)target).setType(type);
  +             }
  +
  +             return target;
  +     }
  +
  +     private static MessageRefAttribute messageRefAttribute =
  +     new MessageRefAttribute();
   
  -  /**
  -   * Its a qname attribute
  -   */
  -
  -  private MessageRefAttribute() {
  -    setAppearanceName("messageRef");
  -    setType(QNameType.getQNameType());
  -    setAppearanceSchema(SCLSchema.getSCLSchema());
  -  }
  -
  -  /**
  -   * read-access only
  -   */
  -  public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  -      return null;
  -  }
  -
  -  /**
  -   * The setAttributeContent method is able to lazily initiate types
  -   * not yet mentioned in the binding for enabling forward and cyclic referencing
  -   *
  -   * There is currently a large problem with pre-initialising types
  -   * referenced in elements, since we cannot know in advance what concrete type this
  -   * will be. I hate those XML-suckers. Never thought about easy processing for 
their
  -   * shit. So we try to guess from the embedding type what the type will be
  -   *
  -   */
  -
  -  public Object setAttributeContent(Object target, Object value, Map references, 
Map nameSpaces) {
  -
  -    // target appearance must be initialised in each case
  -
  -    if(target instanceof RequestElement) {
  -
  -      // first we try to interpret the qname as prefix:type
  -      Schema schema=(Schema) nameSpaces.
  -        get(Environment.getNameSpacePrefix((String) value));
  -
  -      Type type=null;
  -
  -      // here it is?
  -      if(schema!=null) {
  -
  -         // yes, then the second part of the qname must be a type
  -         type=schema.getType(Environment.getProperName((String) value));
  -
  -         // its already initialised?
  -         if(type==null) {
  -
  -          type=new RequestType();
  -          // register it in the right schema
  -          type.setTypeSchema(schema);
  -          // set the type name accordingly
  -          type.setTypeName(Environment.getProperName((String) value));
  -          // and add it prophilactically to the schema
  -          schema.addType(type);
  -        }
  -
  -      } else {
  -
  -          // no, then we think that the name should be a local type
  -          type=(Type) references.get(value);
  -
  -          // its here
  -          if(type==null) {
  -
  -            // no, sucking forward reference, we assume its a complex
  -            // type, but this must not be always true
  -            type=new RequestType();
  -
  -
  -            // schema is hopefully set later
  -
  -            // set the name to the given qname
  -            type.setTypeName((String) value);
  -            // register locally
  -            references.put(value,type);
  -          }
  -      }
  -
  -      // next assign it to the element
  -      ((Element) target).setType(type);
  -
  -    } else if(target instanceof ResponseElement) {
  -
  -      // assume this is a qname
  -      Schema schema=(Schema) nameSpaces.get(Environment.getNameSpacePrefix((String) 
value));
  -
  -      // that refers to this simpletype
  -      Type type=null;
  -
  -      if(schema!=null) {
  -          // indeed a qname, so look it up
  -         type=(Type)
  -          schema.getType(Environment.getProperName((String) value));
  -
  -          // not yet initialized, we fake it
  -          if(type==null) {
  -            type=new ResponseType();
  -            type.setTypeSchema(schema);
  -            type.setTypeName(Environment.getProperName((String) value));
  -            schema.addType(type);
  -          }
  -
  -      } else {
  -        type=(Type) references.get(value);
  -
  -        if(type==null) {
  -            type=new ResponseType();
  -            type.setTypeName((String) value);
  -            references.put(value,type);
  -            // schema is hopefully set later
  -        }
  -      }
  -
  -      ((Element) target).setType(type);
  -    }
  -
  -    return target;
  -  }
  -
  -  private static MessageRefAttribute messageRefAttribute=
  -    new MessageRefAttribute();
  -
  -  public static MessageRefAttribute getMessageRefAttribute() {
  -    return messageRefAttribute;
  -  }
  +     public static MessageRefAttribute getMessageRefAttribute() {
  +             return messageRefAttribute;
  +     }
   
   }
  
  
  
  1.3       +44 -72    zoap/src/org/zoap/soap/meta/scl/RequestElement.java
  
  Index: RequestElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestElement.java       2000/12/04 12:36:15     1.2
  +++ RequestElement.java       2001/01/03 13:54:31     1.3
  @@ -1,45 +1,22 @@
  -/*
  - *   $Id: RequestElement.java,v 1.2 2000/12/04 12:36:15 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestElement.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.scl;
  @@ -51,48 +28,43 @@
   
   import java.util.Map;
   
  -/**
  - * Meta-Meta Element that describes scl:contract appearances
  - */
  +/** Meta-Meta Element that describes scl:contract appearances */
   
   public class RequestElement extends Element {
   
  -    private RequestElement() {
  -        setAppearanceName("request");
  -        setType(RequestType.getRequestType());
  -    }
  +     private RequestElement() {
  +             setAppearanceName("request");
  +             setType(RequestType.getRequestType());
  +     }
   
  -    public Schema getAppearanceSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  +     public Schema getAppearanceSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
   
  -    public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
  +     public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
   
  -      if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -        
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
  -          nameSpaces+")\n");
   
  -      if(target instanceof RequestResponseType.Interface &&
  -        value instanceof org.zoap.soap.meta.RequestElement) {
  +             if (target instanceof RequestResponseType.Interface &&
  +             value instanceof org.zoap.soap.meta.RequestElement) {
   
  -        ((Element) value).setAppearanceSchema( ((RequestResponseType.Interface) 
target).getInterface().
  -          getInterfaceSchema());
  +                     
((Element)value).setAppearanceSchema(((RequestResponseType.Interface) 
target).getInterface().
  +                     getInterfaceSchema());
   
  -        ((RequestResponseType.Interface) 
target).getInterface().getInterfaceSchema().
  -          addElement((org.zoap.soap.meta.RequestElement) value);
  +                     ((RequestResponseType.Interface) 
target).getInterface().getInterfaceSchema().
  +                     addElement((org.zoap.soap.meta.RequestElement) value);
   
  -        ((org.zoap.soap.meta.RequestType)
  -          ((org.zoap.soap.meta.RequestElement) 
value).getType()).setAssociatedMethod(
  -            ((RequestResponseType.Interface) target).getAssociatedMethod());
  -      }
  +                     ((org.zoap.soap.meta.RequestType)
  +                     ((org.zoap.soap.meta.RequestElement) 
value).getType()).setAssociatedMethod(
  +                     ((RequestResponseType.Interface) 
target).getAssociatedMethod());
  +             }
   
  -      return target;
  -    }
  +             return target;
  +     }
   
  -    private static RequestElement requestElement=new RequestElement();
  +     private static RequestElement requestElement = new RequestElement();
   
  -    public static RequestElement getRequestElement() {
  -            return requestElement;
  -    }
  +     public static RequestElement getRequestElement() {
  +             return requestElement;
  +     }
   
   }
  
  
  
  1.3       +38 -65    zoap/src/org/zoap/soap/meta/scl/RequestResponseElement.java
  
  Index: RequestResponseElement.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestResponseElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestResponseElement.java       2000/12/04 12:36:15     1.2
  +++ RequestResponseElement.java       2001/01/03 13:54:31     1.3
  @@ -1,47 +1,25 @@
  -/*
  - *   $Id: RequestResponseElement.java,v 1.2 2000/12/04 12:36:15 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestResponseElement.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.scl;
   
   import org.zoap.soap.Environment;
  @@ -51,38 +29,33 @@
   
   import java.util.Map;
   
  -/**
  - * Meta-Meta Element that describes scl:contract appearances
  - */
  +/** Meta-Meta Element that describes scl:contract appearances */
   
   public class RequestResponseElement extends Element {
   
  -    private RequestResponseElement() {
  -        setAppearanceName("requestResponse");
  -        setType(RequestResponseType.getRequestResponseType());
  -    }
  +     private RequestResponseElement() {
  +             setAppearanceName("requestResponse");
  +             setType(RequestResponseType.getRequestResponseType());
  +     }
   
  -    public Schema getAppearanceSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  +     public Schema getAppearanceSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
   
  -    public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
  +     public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
   
  -     if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -      
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
  -          nameSpaces+")\n");
   
  -      if(target instanceof BindingType.Interface && value instanceof 
RequestResponseType.Interface) {
  -        ((RequestResponseType.Interface) 
value).setInterface((BindingType.Interface) target);
  -      }
  +             if (target instanceof BindingType.Interface && value instanceof 
RequestResponseType.Interface) {
  +                     ((RequestResponseType.Interface) 
value).setInterface((BindingType.Interface) target);
  +             }
   
  -      return target;
  -    }
  +             return target;
  +     }
   
  -    private static RequestResponseElement requestResponseElement=new 
RequestResponseElement();
  +     private static RequestResponseElement requestResponseElement = new 
RequestResponseElement();
   
  -    public static RequestResponseElement getRequestResponseElement() {
  -            return requestResponseElement;
  -    }
  +     public static RequestResponseElement getRequestResponseElement() {
  +             return requestResponseElement;
  +     }
   
   }
  
  
  
  1.3       +62 -86    zoap/src/org/zoap/soap/meta/scl/RequestResponseType.java
  
  Index: RequestResponseType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestResponseType.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestResponseType.java  2000/12/04 12:36:15     1.2
  +++ RequestResponseType.java  2001/01/03 13:54:31     1.3
  @@ -1,118 +1,94 @@
  -/*
  - *   $Id: RequestResponseType.java,v 1.2 2000/12/04 12:36:15 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestResponseType.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.scl;
   
   import org.zoap.xml.ComplexType;
   import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
   
   import java.lang.reflect.Method;
   
   
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:Schema appearances.
  - */
  +/** Meta-Meta Type that describes the structure of xsd:Schema appearances. */
   
   public class RequestResponseType extends ComplexType {
  +
  +     public static class Interface {
   
  -    public static class Interface {
  +             org.zoap.soap.meta.scl.BindingType.Interface inter;
  +             String methodName;
   
  -      org.zoap.soap.meta.scl.BindingType.Interface inter;
  -      String methodName;
  +             Method associatedMethod;
   
  -      Method associatedMethod;
  +             public void setInterface(BindingType.Interface inter) {
   
  -      public void setInterface(BindingType.Interface inter) {
  +                     this.inter = inter;
  +             }
   
  -        this.inter=inter;
  -      }
  +             public BindingType.Interface getInterface() {
  +                     return inter;
  +             }
   
  -      public BindingType.Interface getInterface() {
  -        return inter;
  -      }
  +             public Method getAssociatedMethod() {
   
  -      public Method getAssociatedMethod() {
  +                     if (associatedMethod == null) {
  +                             Method[] methods = 
getInterface().getAssociatedInterface().
  +                             getDeclaredMethods();
   
  -        if(associatedMethod==null) {
  -           Method[] methods=getInterface().getAssociatedInterface().
  -            getDeclaredMethods();
  +                             int count;
   
  -          int count;
  +                             for (count = 0; count < methods.length; count++)
  +                                     if 
(methods[count].toString().equals(methodName))
  +                                             break;
   
  -          for(count=0;count<methods.length;count++)
  -            if(methods[count].toString().equals(methodName))
  -              break;
  +                             if (count < methods.length)
  +                                     associatedMethod = methods[count];
  +                     }
   
  -          if(count<methods.length)
  -            associatedMethod=methods[count];
  -        }
  +                     return associatedMethod;
  +             }
   
  -        return associatedMethod;
  -      }
  +             public void setMethodName(String methodName) {
  +                     this.methodName = methodName;
  +             }
   
  -      public void setMethodName(String methodName) {
  -        this.methodName=methodName;
  -      }
  +     }
   
  -    }
   
  -    private RequestResponseType() {
  -        setTypeName("requestResponse");
  -        setAssociatedClass(Interface.class);
  -        addElement(RequestElement.getRequestElement());
  -        addElement(ResponseElement.getResponseElement());
  -    }
  +     private RequestResponseType() {
  +             setTypeName("requestResponse");
  +             setAssociatedClass(Interface.class);
  +             addElement(RequestElement.getRequestElement());
  +             addElement(ResponseElement.getResponseElement());
  +     }
   
  -    public Schema getTypeSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  +     public Schema getTypeSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
   
  -    private static RequestResponseType requestResponseType=new 
RequestResponseType();
  +     private static RequestResponseType requestResponseType = new 
RequestResponseType();
   
  -    public static RequestResponseType getRequestResponseType() {
  -            return requestResponseType;
  -    }
  +     public static RequestResponseType getRequestResponseType() {
  +             return requestResponseType;
  +     }
   
   }
  
  
  
  1.3       +38 -62    zoap/src/org/zoap/soap/meta/scl/RequestType.java
  
  Index: RequestType.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestType.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RequestType.java  2000/12/04 12:36:15     1.2
  +++ RequestType.java  2001/01/03 13:54:31     1.3
  @@ -1,76 +1,52 @@
  -/*
  - *   $Id: RequestType.java,v 1.2 2000/12/04 12:36:15 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/RequestType.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.scl;
   
   import org.zoap.xml.ComplexType;
   import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  +
   
   import org.zoap.xml.meta.ElementType;
   
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:Schema appearances.
  - */
  +/** Meta-Meta Type that describes the structure of xsd:Schema appearances. */
   
   public class RequestType extends ComplexType {
   
  -    private RequestType() {
  -        setTypeName("request");
  -        setAssociatedClass(org.zoap.soap.meta.RequestElement.class);
  -        setSuperType(ElementType.getElementType());
  -        addAttribute(MessageRefAttribute.getMessageRefAttribute());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  -
  -    private static RequestType requestType=new RequestType();
  -
  -    public static RequestType getRequestType() {
  -            return requestType;
  -    }
  +     private RequestType() {
  +             setTypeName("request");
  +             setAssociatedClass(org.zoap.soap.meta.RequestElement.class);
  +             setSuperType(ElementType.getElementType());
  +             addAttribute(MessageRefAttribute.getMessageRefAttribute());
  +     }
  +
  +     public Schema getTypeSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
  +
  +     private static RequestType requestType = new RequestType();
  +
  +     public static RequestType getRequestType() {
  +             return requestType;
  +     }
   
   }
  
  
  
  1.3       +45 -75    zoap/src/org/zoap/soap/meta/scl/ResponseElement.java
  
  Index: ResponseElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ResponseElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ResponseElement.java      2000/12/04 12:36:15     1.2
  +++ ResponseElement.java      2001/01/03 13:54:31     1.3
  @@ -1,45 +1,22 @@
  -/*
  - *   $Id: ResponseElement.java,v 1.2 2000/12/04 12:36:15 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: 
/products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/ResponseElement.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.scl;
  @@ -51,53 +28,46 @@
   
   import java.util.Map;
   
  -/**
  - * Meta-Meta Element that describes scl:contract appearances
  - */
  +/** Meta-Meta Element that describes scl:contract appearances */
   
  -/**
  - * Meta-Meta Element that describes scl:contract appearances
  - */
  +/** Meta-Meta Element that describes scl:contract appearances */
   
   public class ResponseElement extends Element {
   
  -    private ResponseElement() {
  -        setAppearanceName("response");
  -        setType(ResponseType.getResponseType());
  -    }
  +     private ResponseElement() {
  +             setAppearanceName("response");
  +             setType(ResponseType.getResponseType());
  +     }
   
  -    public Schema getAppearanceSchema() {
  -        return SCLSchema.getSCLSchema();
  -    }
  +     public Schema getAppearanceSchema() {
  +             return SCLSchema.getSCLSchema();
  +     }
   
  -    public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
  +     public Object addElementContent(Object target, Object value, Map references, 
Map nameSpaces) {
   
  -      if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -        
Environment.out.print(toString()+".addElementContent("+target+","+value+","+references+","+
  -          nameSpaces+")\n");
   
  -      if(target instanceof RequestResponseType.Interface &&
  -        value instanceof org.zoap.soap.meta.ResponseElement) {
  +             if (target instanceof RequestResponseType.Interface &&
  +             value instanceof org.zoap.soap.meta.ResponseElement) {
   
  -        ((Element) value).setAppearanceSchema(((RequestResponseType.Interface) 
target).
  -          getInterface().getInterfaceSchema());
  +                     
((Element)value).setAppearanceSchema(((RequestResponseType.Interface) target).
  +                     getInterface().getInterfaceSchema());
   
  -        ((RequestResponseType.Interface) 
target).getInterface().getInterfaceSchema().
  -          addElement((org.zoap.soap.meta.ResponseElement) value);
  +                     ((RequestResponseType.Interface) 
target).getInterface().getInterfaceSchema().
  +                     addElement((org.zoap.soap.meta.ResponseElement) value);
   
  -        ((org.zoap.soap.meta.ResponseType)
  -          ((org.zoap.soap.meta.ResponseElement) 
value).getType()).setAssociatedMethod(
  -            ((RequestResponseType.Interface) target).getAssociatedMethod());
  +                     ((org.zoap.soap.meta.ResponseType)
  +                     ((org.zoap.soap.meta.ResponseElement) 
value).getType()).setAssociatedMethod(
  +                     ((RequestResponseType.Interface) 
target).getAssociatedMethod());
   
  -      }
  +             }
   
  -      return target;
  -    }
  +             return target;
  +     }
   
  -    private static ResponseElement requestElement=new ResponseElement();
  +     private static ResponseElement requestElement = new ResponseElement();
   
  -    public static ResponseElement getResponseElement() {
  -            return requestElement;
  -    }
  +     public static ResponseElement getResponseElement() {
  +             return requestElement;
  +     }
   
   }
  
  
  
  1.3       +39 -94    zoap/src/org/zoap/soap/meta/scl/SCLBinding.java
  
  Index: SCLBinding.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/SCLBinding.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SCLBinding.java   2000/12/04 12:36:15     1.2
  +++ SCLBinding.java   2001/01/03 13:54:31     1.3
  @@ -1,47 +1,25 @@
  -/*
  - *   $Id: SCLBinding.java,v 1.2 2000/12/04 12:36:15 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*   
  + * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/scl/SCLBinding.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.scl;
   
   import org.zoap.soap.Environment;
  @@ -72,77 +50,35 @@
   /**
    * An extension to SOAPBinding that also copes with the Microsoft Service
    * Description Language to be extended at runtime. Since we need a few
  - * extensions to that language, it cannot be used directly.
  - * <br>
  + * extensions to that language, it cannot be used directly. <br>
    * @see <related>
    * @author $Author: jung $
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   
   public class SCLBinding extends SoapBinding {
   
  -  /** register the additional soap schema which overrides some defaults */
  -  public SCLBinding() {
  +     /** register the additional soap schema which overrides some defaults */
  +     public SCLBinding() {
   
  -    if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
  -        Environment.out.print(toString()+"()\n");
  +             addSchema(XmlSchema.getXmlSchema());
  +             addSchema(SCLSchema.getSCLSchema());
   
  -    addSchema(XmlSchema.getXmlSchema());
  -    addSchema(SCLSchema.getSCLSchema());
  +     }
   
  -  }
  -
  -  /** we keep a static reference to a singleton */
  -  private static SCLBinding sclBinding;
  -
  -  /** retrieve the singleton */
  -  public static SCLBinding getSCLBinding() {
  -    if(sclBinding==null)
  -        synchronized(SCLBinding.class) {
  -            if(sclBinding==null)
  -                sclBinding=new SCLBinding();
  -    }
  +     /** we keep a static reference to a singleton */
  +     private static SCLBinding sclBinding;
  +
  +     /** retrieve the singleton */
  +     public static SCLBinding getSCLBinding() {
  +             if (sclBinding == null)
  +                     synchronized(SCLBinding.class) {
  +                             if (sclBinding == null)
  +                                     sclBinding = new SCLBinding();
  +                     }
   
  -    return sclBinding;
  -  }
  +             return sclBinding;
  +     }
   
   }
   
  -/*
  - *   $Log: SCLBinding.java,v $
  - *   Revision 1.2  2000/12/04 12:36:15  jung
  - *   adopted to latest jboss container,
  - *   
  - *   added decimal and date
  - *   
  - *   removed some problems due to forward-referencing in meta-data
  - *   
  - *   added serialisation policy
  - *   
  - *   Revision 1.1.1.1  2000/08/10 21:07:20  jung
  - *   Initial import.
  - *   
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:19  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:17  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:20  jung
  - *   package renaming, most of the zoap stuff now under org.zoap
  - *   util and http stay infor.ce, containerInvoker etc move to org.jboss
  - *
  - *   changed the makefile, adopted most of the licenses
  - *
  - *   Revision 1.2.2.2  2000/07/07 15:50:02  jung
  - *   Request-Response Structure close to MS-SOAP
  - *
  - *   removed a mega-bug in return element
  - *
  - *   Revision 1.2.2.1  2000/07/07 12:42:40  jung
  - *   changed the method-request and response structure to be more
  - *   explicit instead of just serializable (such that MS-SOAP gets the
  - *   chance ot do something with that stuff).
  - *
  - */
  
  
  

Reply via email to