User: jung    
  Date: 00/12/04 04:36:44

  Modified:    src/org/zoap/xml/meta/builtin AssociatedClassAttribute.java
                        BooleanElement.java ByteElement.java
                        CharacterElement.java CharacterType.java
                        ClassElement.java ClassElementType.java
                        ClassType.java ClassTypeAttribute.java
                        ClassTypeType.java CollectionElement.java
                        CollectionElementType.java CollectionType.java
                        CollectionTypeAttribute.java
                        CollectionTypeType.java ComplexTypeType.java
                        DefaultBinding.java DefaultMetaBinding.java
                        DoubleElement.java FieldAttribute.java
                        FieldAttributeType.java FieldElement.java
                        FieldElementType.java FieldNameAttribute.java
                        FloatElement.java IntegerElement.java
                        LongElement.java NameAttribute.java
                        NameAttributeType.java PrimitiveElement.java
                        RefAttribute.java RefAttributeType.java
                        ShortElement.java SimpleTypeType.java
                        StringElement.java The ZOAP Meta Model.dfClass
                        ZoapSchema.java builtin.dfPackage
  Added:       src/org/zoap/xml/meta/builtin DateElement.java DateType.java
                        DecimalElement.java
  Log:
  adopted to latest jboss container,
  
  added decimal and date
  
  removed some problems due to forward-referencing in meta-data
  
  added serialisation policy
  
  Revision  Changes    Path
  1.2       +114 -114  zoap/src/org/zoap/xml/meta/builtin/AssociatedClassAttribute.java
  
  Index: AssociatedClassAttribute.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/AssociatedClassAttribute.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AssociatedClassAttribute.java     2000/08/10 21:07:58     1.1
  +++ AssociatedClassAttribute.java     2000/12/04 12:36:35     1.2
  @@ -1,114 +1,114 @@
  -/*
  - *   $Id: AssociatedClassAttribute.java,v 1.1 2000/08/10 21:07:58 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.StringType;
  -
  -import org.zoap.xml.Attribute;
  -import org.zoap.xml.Type;
  -import org.zoap.xml.AttributeException;
  -import org.zoap.xml.Appearance;
  -import org.zoap.xml.Environment;
  -
  -import java.util.Properties;
  -import java.util.Map;
  -
  -
  -/**
  - * Meta-Meta Attribute zoap:associatedClass that should set the associated class of 
a particular
  - * type
  - */
  -
  -public class AssociatedClassAttribute extends Attribute {
  -
  -  private AssociatedClassAttribute() {
  -    setAppearanceName("associatedClass");
  -    setType(StringType.getStringType());
  -    setAppearanceSchema(ZoapSchema.getZoapSchema());
  -  }
  -
  -  // no output for now
  -  public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  -      return null;
  -  }
  -
  -  public Object setAttributeContent(Object target, Object value, Map references, 
Map nameSpaces)
  -    throws AttributeException {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
  -        references+","+nameSpaces+")");
  -
  -    if(target instanceof FieldElement) {
  -      try{
  -        ((FieldElement) target).setAssociatedClass(Class.forName((String) 
value,true,Thread.currentThread().getContextClassLoader()));
  -      } catch(ClassNotFoundException e) {
  -        throw new AttributeException();
  -      }
  -    } else if(target instanceof FieldAttribute) {
  -      try{
  -        ((FieldAttribute) target).setAssociatedClass(Class.forName((String) 
value,true,Thread.currentThread().getContextClassLoader()));
  -      } catch(ClassNotFoundException e) {
  -        throw new AttributeException();
  -      }
  -    } else if(target instanceof Type) {
  -      try{
  -        ((Type) target).setAssociatedClass(Class.forName((String) 
value,true,Thread.currentThread().getContextClassLoader()));
  -      } catch(ClassNotFoundException e) {
  -        throw new AttributeException();
  -      }
  -    }
  -
  -    return target;
  -  }
  -
  -  private static AssociatedClassAttribute associatedClassAttribute=
  -    new AssociatedClassAttribute();
  -
  -  public static AssociatedClassAttribute getAssociatedClassAttribute() {
  -    return associatedClassAttribute;
  -  }
  -
  -}
  +/*
  + *   $Id: AssociatedClassAttribute.java,v 1.2 2000/12/04 12:36:35 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.StringType;
  +
  +import org.zoap.xml.Attribute;
  +import org.zoap.xml.Type;
  +import org.zoap.xml.AttributeException;
  +import org.zoap.xml.Appearance;
  +import org.zoap.xml.Environment;
  +
  +import java.util.Properties;
  +import java.util.Map;
  +
  +
  +/**
  + * Meta-Meta Attribute zoap:associatedClass that should set the associated class of 
a particular
  + * type
  + */
  +
  +public class AssociatedClassAttribute extends Attribute {
  +
  +  private AssociatedClassAttribute() {
  +    setAppearanceName("associatedClass");
  +    setType(StringType.getStringType());
  +    setAppearanceSchema(ZoapSchema.getZoapSchema());
  +  }
  +
  +  // no output for now
  +  public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  +      return null;
  +  }
  +
  +  public Object setAttributeContent(Object target, Object value, Map references, 
Map nameSpaces)
  +    throws AttributeException {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
  +        references+","+nameSpaces+")");
  +
  +    if(target instanceof FieldElement) {
  +      try{
  +        ((FieldElement) target).setAssociatedClass(Class.forName((String) 
value,true,Thread.currentThread().getContextClassLoader()));
  +      } catch(ClassNotFoundException e) {
  +        throw new AttributeException();
  +      }
  +    } else if(target instanceof FieldAttribute) {
  +      try{
  +        ((FieldAttribute) target).setAssociatedClass(Class.forName((String) 
value,true,Thread.currentThread().getContextClassLoader()));
  +      } catch(ClassNotFoundException e) {
  +        throw new AttributeException();
  +      }
  +    } else if(target instanceof Type) {
  +      try{
  +        ((Type) target).setAssociatedClass(Class.forName((String) 
value,true,Thread.currentThread().getContextClassLoader()));
  +      } catch(ClassNotFoundException e) {
  +        throw new AttributeException();
  +      }
  +    }
  +
  +    return target;
  +  }
  +
  +  private static AssociatedClassAttribute associatedClassAttribute=
  +    new AssociatedClassAttribute();
  +
  +  public static AssociatedClassAttribute getAssociatedClassAttribute() {
  +    return associatedClassAttribute;
  +  }
  +
  +}
  
  
  
  1.2       +114 -110  zoap/src/org/zoap/xml/meta/builtin/BooleanElement.java
  
  Index: BooleanElement.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/BooleanElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BooleanElement.java       2000/08/10 21:07:58     1.1
  +++ BooleanElement.java       2000/12/04 12:36:36     1.2
  @@ -1,113 +1,123 @@
  -/*
  - *   $Id: BooleanElement.java,v 1.1 2000/08/10 21:07:58 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.BooleanType;
  -
  -import org.zoap.xml.Environment;
  -
  -/**
  - * XML element around java.lang.Boolean. Implemented as a singleton
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class BooleanElement extends PrimitiveElement {
  -
  -    /** constructor cannot be faked anymore */
  -    private BooleanElement() {
  -
  -        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -          Environment.out.print(toString()+"()\n");
  -
  -        setType(BooleanType.getBooleanType());
  -        setAppearanceName("boolean");
  -    }
  -
  -    /**
  -     *  static reference, non-lazy since usage of this class is equivalent with
  -     *  instantiation
  -     */
  -
  -    private static BooleanElement booleanElement=new BooleanElement();
  -
  -    /** global access */
  -    public static BooleanElement getBooleanElement() {
  -
  -       /* if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -          Environment.out.print(BooleanElement.class.toString()+
  -            ".getBooleanElement()"+booleanElement+"\n");
  -        */
  -
  -       return booleanElement;
  -    }
  -
  -}
  -
  -/*
  +/*
  + *   $Id: BooleanElement.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.BooleanType;
  +
  +import org.zoap.xml.Environment;
  +
  +/**
  + * XML element around java.lang.Boolean. Implemented as a singleton
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class BooleanElement extends PrimitiveElement {
  +
  +    /** constructor cannot be faked anymore */
  +    private BooleanElement() {
  +
  +        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +          Environment.out.print(toString()+"()\n");
  +
  +        setType(BooleanType.getBooleanType());
  +        setAppearanceName("boolean");
  +    }
  +
  +    /**
  +     *  static reference, non-lazy since usage of this class is equivalent with
  +     *  instantiation
  +     */
  +
  +    private static BooleanElement booleanElement=new BooleanElement();
  +
  +    /** global access */
  +    public static BooleanElement getBooleanElement() {
  +
  +       /* if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +          Environment.out.print(BooleanElement.class.toString()+
  +            ".getBooleanElement()"+booleanElement+"\n");
  +        */
  +
  +       return booleanElement;
  +    }
  +
  +}
  +
  +/*
    *   $Log: BooleanElement.java,v $
  - *   Revision 1.1  2000/08/10 21:07:58  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:28  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:36  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:58  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:28  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +110 -106  zoap/src/org/zoap/xml/meta/builtin/ByteElement.java
  
  Index: ByteElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ByteElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ByteElement.java  2000/08/10 21:08:00     1.1
  +++ ByteElement.java  2000/12/04 12:36:36     1.2
  @@ -1,109 +1,119 @@
  -/*
  - *   $Id: ByteElement.java,v 1.1 2000/08/10 21:08:00 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.meta.ByteType;
  -
  -/**
  - * XML wrapper around java.lang.Byte. Implemented as a singleton
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class ByteElement extends PrimitiveElement {
  -
  -    /** constructor cannot be faked anymore */
  -    private ByteElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -        setType(ByteType.getByteType());
  -        setAppearanceName("byte");
  -    }
  -
  -    /**
  -     *  static reference, non-lazy since usage of this class is equivalent with
  -     *  instantiation
  -     */
  -
  -    private static ByteElement byteElement=new ByteElement();
  -
  -    /** global access */
  -    public static ByteElement getByteElement() {
  -      return byteElement;
  -    }
  -
  -}
  -
  -
  -
  -
  -/*
  +/*
  + *   $Id: ByteElement.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.meta.ByteType;
  +
  +/**
  + * XML wrapper around java.lang.Byte. Implemented as a singleton
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class ByteElement extends PrimitiveElement {
  +
  +    /** constructor cannot be faked anymore */
  +    private ByteElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +        setType(ByteType.getByteType());
  +        setAppearanceName("byte");
  +    }
  +
  +    /**
  +     *  static reference, non-lazy since usage of this class is equivalent with
  +     *  instantiation
  +     */
  +
  +    private static ByteElement byteElement=new ByteElement();
  +
  +    /** global access */
  +    public static ByteElement getByteElement() {
  +      return byteElement;
  +    }
  +
  +}
  +
  +
  +
  +
  +/*
    *   $Log: ByteElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:00  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:28  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:36  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:08:00  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:28  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +106 -102  zoap/src/org/zoap/xml/meta/builtin/CharacterElement.java
  
  Index: CharacterElement.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/CharacterElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CharacterElement.java     2000/08/10 21:08:01     1.1
  +++ CharacterElement.java     2000/12/04 12:36:36     1.2
  @@ -1,105 +1,115 @@
  -/*
  - *   $Id: CharacterElement.java,v 1.1 2000/08/10 21:08:01 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -
  -public class CharacterElement extends PrimitiveElement {
  -
  -    /** constructor cant be faked */
  -    private CharacterElement() {
  -
  -        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -          Environment.out.print(toString()+"()\n");
  -
  -        setType(CharacterType.getCharacterType());
  -        setAppearanceName("character");
  -    }
  -
  -    private static CharacterElement charElement=new CharacterElement();
  -
  -    public static CharacterElement getCharacterElement() {
  -
  -        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -          
Environment.out.print(CharacterElement.class.toString()+".getCharacterElement()\n");
  -
  -        return charElement;
  -    }
  -}
  -
  -
  -
  -/*
  +/*
  + *   $Id: CharacterElement.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +
  +public class CharacterElement extends PrimitiveElement {
  +
  +    /** constructor cant be faked */
  +    private CharacterElement() {
  +
  +        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +          Environment.out.print(toString()+"()\n");
  +
  +        setType(CharacterType.getCharacterType());
  +        setAppearanceName("character");
  +    }
  +
  +    private static CharacterElement charElement=new CharacterElement();
  +
  +    public static CharacterElement getCharacterElement() {
  +
  +        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +          
Environment.out.print(CharacterElement.class.toString()+".getCharacterElement()\n");
  +
  +        return charElement;
  +    }
  +}
  +
  +
  +
  +/*
    *   $Log: CharacterElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:01  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.2  2000/07/20 14:35:27  jung
  - *   some refactoring inside infor:xml
  - *
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1.2.1  2000/07/11 08:08:35  jung
  - *   added functionality to store retrieve a part of a types elements
  - *   within "ignored" strings. Useful for writing generic handlers that
  - *   just process a part of the XML and transfer the rest.
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:36  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:08:01  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.2  2000/07/20 14:35:27  jung
  + *   some refactoring inside infor:xml
  + *
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1.2.1  2000/07/11 08:08:35  jung
  + *   added functionality to store retrieve a part of a types elements
  + *   within "ignored" strings. Useful for writing generic handlers that
  + *   just process a part of the XML and transfer the rest.
  + *
  + *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +137 -133  zoap/src/org/zoap/xml/meta/builtin/CharacterType.java
  
  Index: CharacterType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/CharacterType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CharacterType.java        2000/08/10 21:08:01     1.1
  +++ CharacterType.java        2000/12/04 12:36:36     1.2
  @@ -1,136 +1,146 @@
  -/*
  - *   $Id: CharacterType.java,v 1.1 2000/08/10 21:08:01 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.SimpleType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.TypeException;
  -
  -import java.util.Map;
  -
  -public class CharacterType extends SimpleType {
  -
  -    /** constructor cant be faked */
  -    private CharacterType() {
  -        setAssociatedClass(Character.class);
  -        setTypeName("character");
  -    }
  -
  -    public Schema getTypeSchema() {
  -      return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public Object newInstance(Map attributes, Map references, Map nameSpaces) {
  -      return null;
  -    }
  -
  -    /** return a usable and printable representation of the Character @arg object */
  -    public String getContent(Object object) throws TypeException {
  -
  -        if(object!=null && !Character.isLetter(((Character) object).charValue()))
  -          throw new TypeException();
  -
  -        if(object!=null)
  -          return object.toString();
  -
  -        return null;
  -    }
  -
  -    /** create a character from the given string */
  -    public Object setContent(Object target,String body, String verboseElements,Map 
references,Map nameSpaces)
  -      throws TypeException {
  -
  -        if(body!=null)
  -          if(body.length()==1)
  -              return new Character(body.charAt(0));
  -
  -        throw new TypeException();
  -    }
  -
  -    public boolean isStateless() {
  -      return true;
  -    }
  -
  -    private static CharacterType charType=new CharacterType();
  -
  -    public static CharacterType getCharacterType() {
  -        return charType;
  -    }
  -}
  -
  -
  -
  -/*
  +/*
  + *   $Id: CharacterType.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.SimpleType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.TypeException;
  +
  +import java.util.Map;
  +
  +public class CharacterType extends SimpleType {
  +
  +    /** constructor cant be faked */
  +    private CharacterType() {
  +        setAssociatedClass(Character.class);
  +        setTypeName("character");
  +    }
  +
  +    public Schema getTypeSchema() {
  +      return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public Object newInstance(Map attributes, Map references, Map nameSpaces) {
  +      return null;
  +    }
  +
  +    /** return a usable and printable representation of the Character @arg object */
  +    public String getContent(Object object) throws TypeException {
  +
  +        if(object!=null && !Character.isLetter(((Character) object).charValue()))
  +          throw new TypeException();
  +
  +        if(object!=null)
  +          return object.toString();
  +
  +        return null;
  +    }
  +
  +    /** create a character from the given string */
  +    public Object setContent(Object target,String body, String verboseElements,Map 
references,Map nameSpaces)
  +      throws TypeException {
  +
  +        if(body!=null)
  +          if(body.length()==1)
  +              return new Character(body.charAt(0));
  +
  +        throw new TypeException();
  +    }
  +
  +    public boolean isStateless() {
  +      return true;
  +    }
  +
  +    private static CharacterType charType=new CharacterType();
  +
  +    public static CharacterType getCharacterType() {
  +        return charType;
  +    }
  +}
  +
  +
  +
  +/*
    *   $Log: CharacterType.java,v $
  - *   Revision 1.1  2000/08/10 21:08:01  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.2  2000/07/20 14:35:27  jung
  - *   some refactoring inside infor:xml
  - *
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1.2.1  2000/07/11 08:08:35  jung
  - *   added functionality to store retrieve a part of a types elements
  - *   within "ignored" strings. Useful for writing generic handlers that
  - *   just process a part of the XML and transfer the rest.
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:36  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:08:01  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.2  2000/07/20 14:35:27  jung
  + *   some refactoring inside infor:xml
  + *
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1.2.1  2000/07/11 08:08:35  jung
  + *   added functionality to store retrieve a part of a types elements
  + *   within "ignored" strings. Useful for writing generic handlers that
  + *   just process a part of the XML and transfer the rest.
  + *
  + *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +178 -174  zoap/src/org/zoap/xml/meta/builtin/ClassElement.java
  
  Index: ClassElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ClassElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassElement.java 2000/08/10 21:08:02     1.1
  +++ ClassElement.java 2000/12/04 12:36:36     1.2
  @@ -1,177 +1,187 @@
  -/*
  - *   $Id: ClassElement.java,v 1.1 2000/08/10 21:08:02 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.ElementException;
  -import org.zoap.xml.Element;
  -
  -import java.util.Map;
  -import java.util.Collection;
  -import java.util.Properties;
  -
  -
  -/**
  - * ClassElement is a container for single objects that appear either isolated or
  - * within a collection/an array.
  - */
  -
  -public class ClassElement extends Element {
  -
  -    /** constructor is empty */
  -    public ClassElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -    }
  -
  -    /**
  -     * the getElementContents method, find out whether we serialise an
  -     * object or an array/collection
  -     */
  -
  -    public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  -      throws ElementException {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        
Environment.out.print(toString()+".getElementContents("+object+","+isNew+","+references+")\n");
  -
  -      if(object!=null) {
  -        if(object.getClass().isArray()) {
  -          return (Object[]) object;
  -        } else if(Collection.class.isInstance(object)) {
  -          return ((Collection) object).toArray();
  -        } else {
  -          return new Object[] {object};
  -        }
  -      } else
  -        return null;
  -    }
  -
  -  /**
  -   * if you are a collection or an array, add the value to the incoming collection
  -   */
  -
  -  public Object addElementContent(Object object, Object value, Map references, Map 
nameSpaces) {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      
Environment.out.print(toString()+".addElementContent("+object+","+value+","+references+")\n");
  -
  -    if(object!=null) {
  -
  -      if(object.getClass().isArray()) {
  -
  -          // read out the length of the former array
  -          int length=java.lang.reflect.Array.getLength(object);
  -
  -          // now create a new array that increases the size by one
  -          Object newArray=
  -            
java.lang.reflect.Array.newInstance(object.getClass().getComponentType(),
  -              length+1);
  -
  -          // copy the content
  -          System.arraycopy(object,0,newArray,0,length);
  -
  -          // place the additional value behind
  -          java.lang.reflect.Array.set(newArray,length,value);
  -
  -          // and return the stuff
  -          return newArray;
  -
  -      } else if(Collection.class.isInstance(object)) {
  -
  -        ((Collection) object).add(value);
  -
  -        return object;
  -
  -      } else {
  -        return value;
  -      }
  -    }
  -
  -    return null;
  -  }
  -
  -}
  -
  -/*
  +/*
  + *   $Id: ClassElement.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.ElementException;
  +import org.zoap.xml.Element;
  +
  +import java.util.Map;
  +import java.util.Collection;
  +import java.util.Properties;
  +
  +
  +/**
  + * ClassElement is a container for single objects that appear either isolated or
  + * within a collection/an array.
  + */
  +
  +public class ClassElement extends Element {
  +
  +    /** constructor is empty */
  +    public ClassElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +    }
  +
  +    /**
  +     * the getElementContents method, find out whether we serialise an
  +     * object or an array/collection
  +     */
  +
  +    public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  +      throws ElementException {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        
Environment.out.print(toString()+".getElementContents("+object+","+isNew+","+references+")\n");
  +
  +      if(object!=null) {
  +        if(object.getClass().isArray()) {
  +          return (Object[]) object;
  +        } else if(Collection.class.isInstance(object)) {
  +          return ((Collection) object).toArray();
  +        } else {
  +          return new Object[] {object};
  +        }
  +      } else
  +        return null;
  +    }
  +
  +  /**
  +   * if you are a collection or an array, add the value to the incoming collection
  +   */
  +
  +  public Object addElementContent(Object object, Object value, Map references, Map 
nameSpaces) {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      
Environment.out.print(toString()+".addElementContent("+object+","+value+","+references+")\n");
  +
  +    if(object!=null) {
  +
  +      if(object.getClass().isArray()) {
  +
  +          // read out the length of the former array
  +          int length=java.lang.reflect.Array.getLength(object);
  +
  +          // now create a new array that increases the size by one
  +          Object newArray=
  +            
java.lang.reflect.Array.newInstance(object.getClass().getComponentType(),
  +              length+1);
  +
  +          // copy the content
  +          System.arraycopy(object,0,newArray,0,length);
  +
  +          // place the additional value behind
  +          java.lang.reflect.Array.set(newArray,length,value);
  +
  +          // and return the stuff
  +          return newArray;
  +
  +      } else if(Collection.class.isInstance(object)) {
  +
  +        ((Collection) object).add(value);
  +
  +        return object;
  +
  +      } else {
  +        return value;
  +      }
  +    }
  +
  +    return null;
  +  }
  +
  +}
  +
  +/*
    *   $Log: ClassElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:02  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.3  2000/07/20 14:35:27  jung
  - *   some refactoring inside infor:xml
  - *
  - *   Revision 1.1.2.2  2000/07/19 09:59:18  jung
  - *   moved and renamed the makefile to etc/makefiles
  - *
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1  2000/07/11 08:08:35  jung
  - *   added functionality to store retrieve a part of a types elements
  - *   within "ignored" strings. Useful for writing generic handlers that
  - *   just process a part of the XML and transfer the rest.
  - *
  - *   Revision 1.2  2000/07/06 16:55:06  jung
  - *   moved the default binding caches in order to make apartments
  - *   with different versions of the same class possible.
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:36  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:08:02  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.3  2000/07/20 14:35:27  jung
  + *   some refactoring inside infor:xml
  + *
  + *   Revision 1.1.2.2  2000/07/19 09:59:18  jung
  + *   moved and renamed the makefile to etc/makefiles
  + *
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1  2000/07/11 08:08:35  jung
  + *   added functionality to store retrieve a part of a types elements
  + *   within "ignored" strings. Useful for writing generic handlers that
  + *   just process a part of the XML and transfer the rest.
  + *
  + *   Revision 1.2  2000/07/06 16:55:06  jung
  + *   moved the default binding caches in order to make apartments
  + *   with different versions of the same class possible.
  + *
  + *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +80 -80    zoap/src/org/zoap/xml/meta/builtin/ClassElementType.java
  
  Index: ClassElementType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ClassElementType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassElementType.java     2000/08/10 21:08:02     1.1
  +++ ClassElementType.java     2000/12/04 12:36:36     1.2
  @@ -1,80 +1,80 @@
  -/*
  - *   $Id: ClassElementType.java,v 1.1 2000/08/10 21:08:02 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.ElementType;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class ClassElementType extends ComplexType {
  -
  -    private ClassElementType() {
  -        setTypeName("ClassElement");
  -        setAssociatedClass(ClassElement.class);
  -        setSuperType(ElementType.getElementType());
  -        addAttribute(ClassTypeAttribute.getClassTypeAttribute());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    private static ClassElementType classElementType=new ClassElementType();
  -
  -    public static ClassElementType getClassElementType() {
  -            return classElementType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: ClassElementType.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.ElementType;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class ClassElementType extends ComplexType {
  +
  +    private ClassElementType() {
  +        setTypeName("ClassElement");
  +        setAssociatedClass(ClassElement.class);
  +        setSuperType(ElementType.getElementType());
  +        addAttribute(ClassTypeAttribute.getClassTypeAttribute());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    private static ClassElementType classElementType=new ClassElementType();
  +
  +    public static ClassElementType getClassElementType() {
  +            return classElementType;
  +    }
  +
  +}
  
  
  
  1.2       +115 -111  zoap/src/org/zoap/xml/meta/builtin/ClassType.java
  
  Index: ClassType.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ClassType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassType.java    2000/08/10 21:08:02     1.1
  +++ ClassType.java    2000/12/04 12:36:36     1.2
  @@ -1,114 +1,124 @@
  -/*
  - *   $Id: ClassType.java,v 1.1 2000/08/10 21:08:02 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.TypeException;
  -
  -import de.infor.ce.util.ObjectFactory;
  -
  -import java.util.Collection;
  -
  -/**
  - * ClassType is the glue between an arbitrary Java class and a complex XML type.
  - * ClassTypes are referencable to preserve object identity. ClassTypes are tight to 
some
  - * object factory.
  - */
  -
  -public class ClassType extends ComplexType {
  -
  -  /** empty constructor */
  -  public  ClassType() {
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -  }
  -
  -  /** class types are referencable */
  -  public boolean isReferencable() {
  -    return true;
  -  }
  -
  -}
  -
  -/*
  +/*
  + *   $Id: ClassType.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.TypeException;
  +
  +import de.infor.ce.util.ObjectFactory;
  +
  +import java.util.Collection;
  +
  +/**
  + * ClassType is the glue between an arbitrary Java class and a complex XML type.
  + * ClassTypes are referencable to preserve object identity. ClassTypes are tight to 
some
  + * object factory.
  + */
  +
  +public class ClassType extends ComplexType {
  +
  +  /** empty constructor */
  +  public  ClassType() {
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +  }
  +
  +  /** class types are referencable */
  +  public boolean isReferencable() {
  +    return true;
  +  }
  +
  +}
  +
  +/*
    *   $Log: ClassType.java,v $
  - *   Revision 1.1  2000/08/10 21:08:02  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.3  2000/07/20 14:35:27  jung
  - *   some refactoring inside infor:xml
  - *
  - *   Revision 1.1.2.2  2000/07/19 09:59:18  jung
  - *   moved and renamed the makefile to etc/makefiles
  - *
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1  2000/07/11 08:08:35  jung
  - *   added functionality to store retrieve a part of a types elements
  - *   within "ignored" strings. Useful for writing generic handlers that
  - *   just process a part of the XML and transfer the rest.
  - *
  - *   Revision 1.2  2000/07/06 16:55:06  jung
  - *   moved the default binding caches in order to make apartments
  - *   with different versions of the same class possible.
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:36  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:08:02  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.3  2000/07/20 14:35:27  jung
  + *   some refactoring inside infor:xml
  + *
  + *   Revision 1.1.2.2  2000/07/19 09:59:18  jung
  + *   moved and renamed the makefile to etc/makefiles
  + *
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1  2000/07/11 08:08:35  jung
  + *   added functionality to store retrieve a part of a types elements
  + *   within "ignored" strings. Useful for writing generic handlers that
  + *   just process a part of the XML and transfer the rest.
  + *
  + *   Revision 1.2  2000/07/06 16:55:06  jung
  + *   moved the default binding caches in order to make apartments
  + *   with different versions of the same class possible.
  + *
  + *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +152 -147  zoap/src/org/zoap/xml/meta/builtin/ClassTypeAttribute.java
  
  Index: ClassTypeAttribute.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ClassTypeAttribute.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassTypeAttribute.java   2000/08/10 21:08:03     1.1
  +++ ClassTypeAttribute.java   2000/12/04 12:36:36     1.2
  @@ -1,147 +1,152 @@
  -/*
  - *   $Id: ClassTypeAttribute.java,v 1.1 2000/08/10 21:08:03 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.QNameType;
  -import org.zoap.xml.meta.XmlSchema;
  -
  -import org.zoap.xml.Attribute;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Appearance;
  -import org.zoap.xml.Type;
  -import org.zoap.xml.Element;
  -import org.zoap.xml.SimpleType;
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Environment;
  -
  -import java.util.Properties;
  -import java.util.Map;
  -
  -
  -/** Meta-Meta Attribute xsd:type that will set the type of a given appearance */
  -
  -public class ClassTypeAttribute extends Attribute {
  -
  -     /** Its a qname attribute */
  -
  -     private ClassTypeAttribute() {
  -             setAppearanceName("type");
  -             setType(QNameType.getQNameType());
  -             setAppearanceSchema(XmlSchema.getXmlSchema());
  -     }
  -
  -     /**
  -      * The setAttributeContent method is able to lazily initiate types
  -      * not yet mentioned in the binding for enabling forward and cyclic referencing
  -      */
  -
  -     public Object setAttributeContent(Object target, Object value,
  -     Map references, Map nameSpaces) {
  -
  -             // target appearance must be initialised in each case
  -
  -             if (target instanceof ClassElement) {
  -
  -                     // 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 ClassType();
  -
  -                                     // 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 ClassType();
  -
  -                                     // 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);
  -
  -             }
  -
  -             return target;
  -     }
  -
  -     private static ClassTypeAttribute typeAttribute =
  -     new ClassTypeAttribute();
  -
  -     public static ClassTypeAttribute getClassTypeAttribute() {
  -             return typeAttribute;
  -     }
  -}
  +/*
  + *   $Id: ClassTypeAttribute.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.QNameType;
  +import org.zoap.xml.meta.XmlSchema;
  +
  +import org.zoap.xml.Attribute;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Appearance;
  +import org.zoap.xml.Type;
  +import org.zoap.xml.Element;
  +import org.zoap.xml.SimpleType;
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Environment;
  +
  +import org.zoap.soap.meta.ReturnElement;
  +import org.zoap.soap.meta.ArgumentElement;
  +
  +import org.zoap.xml.meta.builtin.FieldElement;
  +
  +import java.util.Properties;
  +import java.util.Map;
  +
  +
  +/** Meta-Meta Attribute xsd:type that will set the type of a given appearance */
  +
  +public class ClassTypeAttribute extends Attribute {
  +
  +     /** Its a qname attribute */
  +
  +     private ClassTypeAttribute() {
  +             setAppearanceName("type");
  +             setType(QNameType.getQNameType());
  +             setAppearanceSchema(XmlSchema.getXmlSchema());
  +     }
  +
  +     /**
  +      * The setAttributeContent method is able to lazily initiate types
  +      * not yet mentioned in the binding for enabling forward and cyclic referencing
  +      */
  +
  +     public Object setAttributeContent(Object target, Object value,
  +     Map references, Map nameSpaces) {
  +
  +             // target appearance must be initialised in each case
  +
  +             if (target instanceof ClassElement || target instanceof FieldElement 
|| target instanceof ReturnElement || target instanceof ArgumentElement) {
  +
  +                     // 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 ClassType();
  +
  +                                     // 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 ClassType();
  +
  +                                     // 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);
  +
  +             }
  +
  +             return target;
  +     }
  +
  +     private static ClassTypeAttribute typeAttribute =
  +     new ClassTypeAttribute();
  +
  +     public static ClassTypeAttribute getClassTypeAttribute() {
  +             return typeAttribute;
  +     }
  +}
  
  
  
  1.2       +77 -77    zoap/src/org/zoap/xml/meta/builtin/ClassTypeType.java
  
  Index: ClassTypeType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ClassTypeType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassTypeType.java        2000/08/10 21:08:03     1.1
  +++ ClassTypeType.java        2000/12/04 12:36:36     1.2
  @@ -1,77 +1,77 @@
  -/*
  - *   $Id: ClassTypeType.java,v 1.1 2000/08/10 21:08:03 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class ClassTypeType extends ComplexType {
  -
  -    private ClassTypeType() {
  -        setTypeName("ClassType");
  -        setAssociatedClass(ClassType.class);
  -        setSuperType(ComplexTypeType.getComplexTypeType());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    private static ClassTypeType classTypeType=new ClassTypeType();
  -
  -    public static ClassTypeType getClassTypeType() {
  -            return classTypeType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: ClassTypeType.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class ClassTypeType extends ComplexType {
  +
  +    private ClassTypeType() {
  +        setTypeName("ClassType");
  +        setAssociatedClass(ClassType.class);
  +        setSuperType(ComplexTypeType.getComplexTypeType());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    private static ClassTypeType classTypeType=new ClassTypeType();
  +
  +    public static ClassTypeType getClassTypeType() {
  +            return classTypeType;
  +    }
  +
  +}
  
  
  
  1.2       +169 -164  zoap/src/org/zoap/xml/meta/builtin/CollectionElement.java
  
  Index: CollectionElement.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/CollectionElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CollectionElement.java    2000/08/10 21:08:03     1.1
  +++ CollectionElement.java    2000/12/04 12:36:36     1.2
  @@ -1,167 +1,178 @@
  -/*
  - *   $Id: CollectionElement.java,v 1.1 2000/08/10 21:08:03 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.Element;
  -import org.zoap.xml.ElementException;
  -import org.zoap.xml.Type;
  -import org.zoap.xml.Schema;
  -
  -import java.util.Collection;
  -import java.util.Properties;
  -import java.util.Map;
  -
  -/**
  - * CollectionElement is a dedicated wrapper around arbitrary
  - * one-dimensional Java structures.
  - */
  -
  -public class CollectionElement extends Element {
  -
  -  /** empty constructor */
  -  public CollectionElement() {
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+"()\n");
  -  }
  -
  -  /** access the collection or array */
  -  public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  -    throws ElementException {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+".getElementContents("+object+","+isNew+","+
  -        references+")\n");
  -
  -    if(object!=null) {
  -      if(getType().getAssociatedClass().isInstance(object)) {
  -        return new Object[] {object};
  -      } else if(Collection.class.isInstance(object)) {
  -        return ((Collection) object).toArray();
  -      } else if (object.getClass().isArray()) {
  -        return (Object[]) object;
  -      } else
  -        throw new ElementException();
  -    } else
  -      return null;
  -
  -  } // getElementContents
  -
  -  /**
  -   * if you are a collection, add the value to the incoming collection
  -   */
  -
  -  public Object addElementContent(Object object, Object value, Map references, Map 
nameSpaces) {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+".getElementContents("+object+","+value+","+
  -        references+")\n");
  -
  -    if(object!=null) {
  -
  -      if(object.getClass().isArray()) {
  -
  -          // read out the length of the former array
  -          int length=java.lang.reflect.Array.getLength(object);
  -
  -          // now create a new array that increases the size by one
  -          Object newArray=
  -            
java.lang.reflect.Array.newInstance(object.getClass().getComponentType(),
  -              length+1);
  -
  -          // copy the content
  -          System.arraycopy(object,0,newArray,0,length);
  -
  -          // place the additional value behind
  -          java.lang.reflect.Array.set(newArray,length,value);
  -
  -          // and return the stuff
  -          return newArray;
  -
  -      } else if(Collection.class.isInstance(object)) {
  -
  -        ((Collection) object).add(value);
  -
  -        return object;
  -
  -      } else {
  -        return value;
  -      }
  -    }
  -
  -    return null;
  -  }
  -
  -}
  -
  -/*
  +/*
  + *   $Id: CollectionElement.java,v 1.2 2000/12/04 12:36:36 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.Element;
  +import org.zoap.xml.ElementException;
  +import org.zoap.xml.Type;
  +import org.zoap.xml.Schema;
  +
  +import java.util.Collection;
  +import java.util.Properties;
  +import java.util.Map;
  +
  +/**
  + * CollectionElement is a dedicated wrapper around arbitrary
  + * one-dimensional Java structures.
  + */
  +
  +public class CollectionElement extends Element {
  +
  +
  +  /** empty constructor */
  +  public CollectionElement() {
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+"()\n");
  +  }
  +
  +  /** access the collection or array */
  +  public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  +    throws ElementException {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+".getElementContents("+object+","+isNew+","+
  +        references+")\n");
  +
  +    if(object!=null) {
  +      if(getType().getAssociatedClass().isInstance(object)) {
  +        return new Object[] {object};
  +      } else if(Collection.class.isInstance(object)) {
  +        return ((Collection) object).toArray();
  +      } else if (object.getClass().isArray()) {
  +        return (Object[]) object;
  +      } else
  +        throw new ElementException();
  +    } else
  +      return null;
  +
  +  } // getElementContents
  +
  +  /**
  +   * if you are a collection, add the value to the incoming collection
  +   */
  +
  +  public Object addElementContent(Object object, Object value, Map references, Map 
nameSpaces) {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+".getElementContents("+object+","+value+","+
  +        references+")\n");
  +
  +    if(object!=null) {
  +
  +      if(object.getClass().isArray()) {
  +
  +          // read out the length of the former array
  +          int length=java.lang.reflect.Array.getLength(object);
  +
  +          // now create a new array that increases the size by one
  +          Object newArray=
  +            
java.lang.reflect.Array.newInstance(object.getClass().getComponentType(),
  +              length+1);
  +
  +          // copy the content
  +          System.arraycopy(object,0,newArray,0,length);
  +
  +          // place the additional value behind
  +          java.lang.reflect.Array.set(newArray,length,value);
  +
  +          // and return the stuff
  +          return newArray;
  +
  +      } else if(Collection.class.isInstance(object)) {
  +
  +        ((Collection) object).add(value);
  +
  +        return object;
  +
  +      } else {
  +        return value;
  +      }
  +    }
  +
  +    return null;
  +  }
  +
  +}
  +
  +/*
    *   $Log: CollectionElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:03  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  jung
  - *   package renaming, most of the zoap stuff now under org.zoap
  - *   util and http stay infor.ce, containerInvoker etc move to org.jboss
  - *
  - *   changed the makefile, adopted most of the licenses
  - *
  - *   Revision 1.2  2000/07/06 16:55:06  jung
  - *   moved the default binding caches in order to make apartments
  - *   with different versions of the same class possible.
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:36  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:08:03  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  jung
  + *   package renaming, most of the zoap stuff now under org.zoap
  + *   util and http stay infor.ce, containerInvoker etc move to org.jboss
  + *
  + *   changed the makefile, adopted most of the licenses
  + *
  + *   Revision 1.2  2000/07/06 16:55:06  jung
  + *   moved the default binding caches in order to make apartments
  + *   with different versions of the same class possible.
  + *
  + *   Revision 1.1.1.1  2000/07/06 14:11:28  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +80 -80    zoap/src/org/zoap/xml/meta/builtin/CollectionElementType.java
  
  Index: CollectionElementType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/CollectionElementType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CollectionElementType.java        2000/08/10 21:08:04     1.1
  +++ CollectionElementType.java        2000/12/04 12:36:37     1.2
  @@ -1,80 +1,80 @@
  -/*
  - *   $Id: CollectionElementType.java,v 1.1 2000/08/10 21:08:04 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.ElementType;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class CollectionElementType extends ComplexType {
  -
  -    private CollectionElementType() {
  -        setTypeName("CollectionElement");
  -        setAssociatedClass(CollectionElement.class);
  -        setSuperType(ElementType.getElementType());
  -        addAttribute(CollectionTypeAttribute.getCollectionTypeAttribute());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    private static CollectionElementType collectionElementType=new 
CollectionElementType();
  -
  -    public static CollectionElementType getCollectionElementType() {
  -            return collectionElementType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: CollectionElementType.java,v 1.2 2000/12/04 12:36:37 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.ElementType;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class CollectionElementType extends ComplexType {
  +
  +    private CollectionElementType() {
  +        setTypeName("CollectionElement");
  +        setAssociatedClass(CollectionElement.class);
  +        setSuperType(ElementType.getElementType());
  +        addAttribute(CollectionTypeAttribute.getCollectionTypeAttribute());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    private static CollectionElementType collectionElementType=new 
CollectionElementType();
  +
  +    public static CollectionElementType getCollectionElementType() {
  +            return collectionElementType;
  +    }
  +
  +}
  
  
  
  1.2       +113 -104  zoap/src/org/zoap/xml/meta/builtin/CollectionType.java
  
  Index: CollectionType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/CollectionType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CollectionType.java       2000/08/10 21:08:04     1.1
  +++ CollectionType.java       2000/12/04 12:36:37     1.2
  @@ -1,104 +1,113 @@
  -/*
  - *   $Id: CollectionType.java,v 1.1 2000/08/10 21:08:04 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.TypeException;
  -import org.zoap.xml.Environment;
  -
  -import java.util.Collection;
  -import java.util.Map;
  -
  -/**
  - * this type implements a variety of collections (by setting its associatedClass to
  - * an array or a collection). It can be given a set of elements that will be
  - * inserted into this collection.
  - */
  -
  -public class CollectionType extends ComplexType {
  -
  -  /** empty constructor */
  -  public CollectionType() {
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+"()\n");
  -  }
  -
  -  /** associated class must be array or collection */
  -  public void setAssociatedClass(Class forClass) {
  -    if(forClass!= null && !forClass.isArray() && 
!Collection.class.isAssignableFrom(forClass))
  -      throw new RuntimeException("Must associated array or collection.");
  -
  -    super.setAssociatedClass(forClass);
  -  }
  -
  -  /** the newInstance method caters for array and collection construction */
  -  public Object newInstance(Map attributes, Map references, Map nameSpaces) throws 
TypeException {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      
Environment.out.print(toString()+".newInstance("+attributes+","+references+","+nameSpaces+")");
  -
  -    if(getAssociatedClass()!=null) {
  -      if(getAssociatedClass().isArray()) {
  -        return 
java.lang.reflect.Array.newInstance(getAssociatedClass().getComponentType(),0);
  -      } else {
  -        try{
  -          return getAssociatedClass().newInstance();
  -        } catch(IllegalAccessException e) {
  -          throw new TypeException();
  -        } catch(InstantiationException e) {
  -          throw new TypeException();
  -        }
  -      }
  -    } else
  -      return null;
  -  }
  -
  -   public boolean isStateless() {
  -    if(getAssociatedClass().isArray())
  -      return true;
  -    else
  -      return false;
  -   }
  -}
  +/*
  + *   $Id: CollectionType.java,v 1.2 2000/12/04 12:36:37 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.TypeException;
  +import org.zoap.xml.Environment;
  +
  +import java.util.Collection;
  +import java.util.Map;
  +
  +/**
  + * this type implements a variety of collections (by setting its associatedClass to
  + * an array or a collection). It can be given a set of elements that will be
  + * inserted into this collection.
  + */
  +
  +public class CollectionType extends ComplexType {
  +
  +  /** empty constructor */
  +  public CollectionType() {
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+"()\n");
  +  }
  +
  +  /** associated class must be array or collection */
  +  public void setAssociatedClass(Class forClass) {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+".setAssociatedClass("+forClass+")\n");
  +
  +    if(forClass!= null && !forClass.isArray() && 
!Collection.class.isAssignableFrom(forClass))
  +      throw new RuntimeException("Must associated array or collection.");
  +
  +    super.setAssociatedClass(forClass);
  +  }
  +
  +  /** the newInstance method caters for array and collection construction */
  +  public Object newInstance(Map attributes, Map references, Map nameSpaces) throws 
TypeException {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      
Environment.out.print(toString()+".newInstance("+attributes+","+references+","+nameSpaces+")");
  +
  +    if(getAssociatedClass()!=null) {
  +      if(getAssociatedClass().isArray()) {
  +        return 
java.lang.reflect.Array.newInstance(getAssociatedClass().getComponentType(),0);
  +      } else {
  +        try{
  +          return getAssociatedClass().newInstance();
  +        } catch(IllegalAccessException e) {
  +          throw new TypeException();
  +        } catch(InstantiationException e) {
  +          throw new TypeException();
  +        }
  +      }
  +    } else
  +      return null;
  +  }
  +
  +   /**
  +    * since arrays have static size, we cannot reference the intermediate results
  +    * in higher-level elements,instead have to wait until the tag is over
  +    */
  +
  +   public boolean isStateless() {
  +    if(getAssociatedClass().isArray())
  +      return true;
  +    else
  +      return false;
  +   }
  +}
  
  
  
  1.2       +149 -146  zoap/src/org/zoap/xml/meta/builtin/CollectionTypeAttribute.java
  
  Index: CollectionTypeAttribute.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/CollectionTypeAttribute.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CollectionTypeAttribute.java      2000/08/10 21:08:04     1.1
  +++ CollectionTypeAttribute.java      2000/12/04 12:36:37     1.2
  @@ -1,146 +1,149 @@
  -/*
  - *   $Id: CollectionTypeAttribute.java,v 1.1 2000/08/10 21:08:04 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.QNameType;
  -import org.zoap.xml.meta.XmlSchema;
  -
  -import org.zoap.xml.Attribute;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Appearance;
  -import org.zoap.xml.Type;
  -import org.zoap.xml.Element;
  -import org.zoap.xml.SimpleType;
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Environment;
  -
  -import java.util.Properties;
  -import java.util.Map;
  -
  -
  -/** Meta-Meta Attribute xsd:type that will set the type of a given appearance */
  -
  -public class CollectionTypeAttribute extends Attribute {
  -
  -     /** Its a qname attribute */
  -
  -     private CollectionTypeAttribute() {
  -             setAppearanceName("type");
  -             setType(QNameType.getQNameType());
  -             setAppearanceSchema(XmlSchema.getXmlSchema());
  -     }
  -
  -     /**
  -      * The setAttributeContent method is able to lazily initiate types
  -      * not yet mentioned in the binding for enabling forward and cyclic referencing
  -      */
  -
  -     public Object setAttributeContent(Object target, Object value,
  -     Map references, Map nameSpaces) {
  -
  -             // target appearance must be initialised in each case
  -
  -             if (target instanceof CollectionElement) {
  -
  -                     // 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 CollectionType();
  -
  -                                     // 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) {
  -
  -                                     type = new CollectionType();
  -
  -                                     // 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);
  -
  -             }
  -
  -             return target;
  -     }
  -
  -     private static CollectionTypeAttribute typeAttribute =
  -     new CollectionTypeAttribute();
  -
  -     public static CollectionTypeAttribute getCollectionTypeAttribute() {
  -             return typeAttribute;
  -     }
  -
  -}
  +/*
  + *   $Id: CollectionTypeAttribute.java,v 1.2 2000/12/04 12:36:37 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.QNameType;
  +import org.zoap.xml.meta.XmlSchema;
  +
  +import org.zoap.xml.Attribute;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Appearance;
  +import org.zoap.xml.Type;
  +import org.zoap.xml.Element;
  +import org.zoap.xml.SimpleType;
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Environment;
  +
  +import java.util.Properties;
  +import java.util.Map;
  +
  +
  +/** Meta-Meta Attribute xsd:type that will set the type of a given appearance */
  +
  +public class CollectionTypeAttribute extends Attribute {
  +
  +     /** Its a qname attribute */
  +
  +     private CollectionTypeAttribute() {
  +             setAppearanceName("type");
  +             setType(QNameType.getQNameType());
  +             setAppearanceSchema(XmlSchema.getXmlSchema());
  +     }
  +
  +     /**
  +      * The setAttributeContent method is able to lazily initiate types
  +      * not yet mentioned in the binding for enabling forward and cyclic referencing
  +      */
  +
  +     public Object setAttributeContent(Object target, Object value,
  +     Map references, Map nameSpaces) {
  +
  +             // target appearance must be initialised in each case
  +
  +             if (target instanceof CollectionElement) {
  +
  +                     // 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 CollectionType();
  +
  +                                     // 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) {
  +
  +                                     type = new CollectionType();
  +
  +                                     // 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);
  +
  +             }
  +
  +             return target;
  +     }
  +
  +     private static CollectionTypeAttribute typeAttribute =
  +     new CollectionTypeAttribute();
  +
  +     public static CollectionTypeAttribute getCollectionTypeAttribute() {
  +             return typeAttribute;
  +     }
  +
  +}
  
  
  
  1.2       +72 -72    zoap/src/org/zoap/xml/meta/builtin/CollectionTypeType.java
  
  Index: CollectionTypeType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/CollectionTypeType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CollectionTypeType.java   2000/08/10 21:08:05     1.1
  +++ CollectionTypeType.java   2000/12/04 12:36:37     1.2
  @@ -1,72 +1,72 @@
  -/*
  - *   $Id: CollectionTypeType.java,v 1.1 2000/08/10 21:08:05 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class CollectionTypeType extends ComplexType {
  -
  -    private CollectionTypeType() {
  -        setTypeName("CollectionType");
  -        setAssociatedClass(CollectionType.class);
  -        setSuperType(ComplexTypeType.getComplexTypeType());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    private static CollectionTypeType collectionTypeType=new CollectionTypeType();
  -
  -    public static CollectionTypeType getCollectionTypeType() {
  -            return collectionTypeType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: CollectionTypeType.java,v 1.2 2000/12/04 12:36:37 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class CollectionTypeType extends ComplexType {
  +
  +    private CollectionTypeType() {
  +        setTypeName("CollectionType");
  +        setAssociatedClass(CollectionType.class);
  +        setSuperType(ComplexTypeType.getComplexTypeType());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    private static CollectionTypeType collectionTypeType=new CollectionTypeType();
  +
  +    public static CollectionTypeType getCollectionTypeType() {
  +            return collectionTypeType;
  +    }
  +
  +}
  
  
  
  1.2       +78 -78    zoap/src/org/zoap/xml/meta/builtin/ComplexTypeType.java
  
  Index: ComplexTypeType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ComplexTypeType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ComplexTypeType.java      2000/08/10 21:08:05     1.1
  +++ ComplexTypeType.java      2000/12/04 12:36:37     1.2
  @@ -1,78 +1,78 @@
  -/*
  - *   $Id: ComplexTypeType.java,v 1.1 2000/08/10 21:08:05 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class ComplexTypeType extends ComplexType {
  -
  -    private ComplexTypeType() {
  -        setTypeName("ComplexType");
  -        setAssociatedClass(ComplexType.class);
  -        setSuperType(org.zoap.xml.meta.ComplexTypeType.getComplexTypeType());
  -        addAttribute(AssociatedClassAttribute.getAssociatedClassAttribute());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    private static ComplexTypeType complexTypeType=new ComplexTypeType();
  -
  -    public static ComplexTypeType getComplexTypeType() {
  -            return complexTypeType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: ComplexTypeType.java,v 1.2 2000/12/04 12:36:37 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class ComplexTypeType extends ComplexType {
  +
  +    private ComplexTypeType() {
  +        setTypeName("ComplexType");
  +        setAssociatedClass(ComplexType.class);
  +        setSuperType(org.zoap.xml.meta.ComplexTypeType.getComplexTypeType());
  +        addAttribute(AssociatedClassAttribute.getAssociatedClassAttribute());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    private static ComplexTypeType complexTypeType=new ComplexTypeType();
  +
  +    public static ComplexTypeType getComplexTypeType() {
  +            return complexTypeType;
  +    }
  +
  +}
  
  
  
  1.2       +547 -564  zoap/src/org/zoap/xml/meta/builtin/DefaultBinding.java
  
  Index: DefaultBinding.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/DefaultBinding.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultBinding.java       2000/08/10 21:08:06     1.1
  +++ DefaultBinding.java       2000/12/04 12:36:37     1.2
  @@ -1,567 +1,547 @@
  -/*
  - *   $Id: DefaultBinding.java,v 1.1 2000/08/10 21:08:06 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.XmlSchema;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.Binding;
  -import org.zoap.xml.SimpleType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Element;
  -import org.zoap.xml.Type;
  -import org.zoap.xml.IllegalSuperTypeException;
  -
  -import de.infor.ce.util.URN;
  -
  -import java.util.Map;
  -import java.util.HashMap;
  -import java.util.Collection;
  -
  -import java.io.ObjectStreamClass;
  -import java.io.ObjectStreamField;
  -
  -/**
  - * This is the default databinding used by infor:XML.
  - * <br>
  - * It comes with a number of useful predefined element/type-mappings between
  - * XML-Schema and Java classes.
  - * <br>
  - * Furthermore it is able to extend its meta-model by Java serialization
  - * information on the fly.
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class DefaultBinding extends Binding {
  -
  -     /** constructor is empty */
  -  public DefaultBinding() {
  -
  -       if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -                     Environment.out.print(toString()+"()\n");
  -
  -    addSchema(XmlSchema.getXmlSchema());
  -    addSchema(ZoapSchema.getZoapSchema());
  -
  -     }
  -
  -  /**
  -   * a dedicated schema that can build new collection elements and types at runtime
  -   */
  -
  -  class ClassSchema extends Schema {
  -
  -    public Element getElement(String name) {
  -
  -      Element element=super.getElement(name);
  -
  -      if(element==null) {
  -
  -        if(name.endsWith("-Array")) {
  -
  -          name=name.substring(0,name.length()-6);
  -          Element subElement=getElement(name);
  -
  -          if(subElement!=null) {
  -              // array type
  -              CollectionType newCollectionType=new CollectionType();
  -              newCollectionType.setTypeSchema(this);
  -              newCollectionType.setTypeName(name+"-Array");
  -              try{
  -                
newCollectionType.setAssociatedClass(Class.forName("[L"+subElement.getType().getAssociatedClass().
  -                  
getName()+";",true,Thread.currentThread().getContextClassLoader()));
  -              } catch(ClassNotFoundException e) {
  -                throw new RuntimeException("Array construction failed."+e);
  -              }
  -              newCollectionType.addElement(subElement);
  -              addType(newCollectionType);
  -
  -              // array element
  -              element=new CollectionElement();
  -              element.setAppearanceSchema(this);
  -              element.setAppearanceName(name+"-Array");
  -              element.setType(newCollectionType);
  -              addElement(element);
  -            } // if subElement!=null
  -
  -          } else if(name.endsWith("-Collection")) {
  -
  -            name=name.substring(0,name.length()-11);
  -            String collectionName="";
  -
  -            if(name.lastIndexOf("-")!=-1) {
  -              collectionName=name.substring(name.lastIndexOf("-")+1,name.length());
  -              name=name.substring(0,name.lastIndexOf("-"));
  -            }
  -
  -            try{
  -
  -              Class collectionClass=Class.forName(collectionName,true,
  -                Thread.currentThread().getContextClassLoader());
  -
  -              Element subElement=getElement(name);
  -
  -              if(subElement!=null) {
  -                CollectionType newCollectionType=new CollectionType();
  -                newCollectionType.setTypeSchema(this);
  -                newCollectionType.setTypeName(name+collectionName+"-Collection");
  -                newCollectionType.setAssociatedClass(collectionClass);
  -                newCollectionType.addElement(subElement);
  -                addType(newCollectionType);
  -                element=new CollectionElement();
  -                element.setAppearanceSchema(this);
  -                element.setAppearanceName(name+collectionName+"-Collection");
  -                element.setType(newCollectionType);
  -                addElement(element);
  -              } // if
  -
  -            } catch(ClassNotFoundException e) {
  -              throw new RuntimeException("Collection type fucked 
up."+collectionName);
  -            } // try
  -
  -          } // if
  -
  -      } // if element==null
  -
  -      return element;
  -
  -    }
  -
  -    public Type getType(String name) {
  -      Type type=super.getType(name);
  -
  -      if(type==null) {
  -        Element subElement=getElement(name);
  -        if(subElement!=null)
  -          type=subElement.getType();
  -      }
  -
  -      return type;
  -    }
  -
  -  }
  -
  -     /**
  -      * the getSchema method is overridden to produce new class-related schemas
  -   * at runtime, i.e., if we can map the url to some Java class, we are fine
  -   * getSchema also maintains a second cache that relates Java classes to
  -   * class schemas.
  -      */
  -
  -     public Schema getSchema(URN urn) {
  -
  -             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -                     Environment.out.print(toString()+".getSchema(" + urn + ")\n");
  -
  -    Schema result=super.getSchema(urn);
  -
  -    if(result==null) {
  -     synchronized(classSchemaCache) {
  -                     result = super.getSchema(urn);
  -
  -                     if (result == null) {
  -            try{
  -                                                     result = 
constructClassSchema(urn);
  -            } catch(ClassNotFoundException e) {
  -
  -              if((Environment.DEBUG_XML && Environment.DEBUG_XML_META) ||
  -                (Environment.LOG_XML>0 && Environment.LOG_XML_META>0)) {
  -                Environment.out.print(toString()+".getSchema("+urn+")\n");
  -              }
  -            }
  -
  -              } // if
  -                     } // sync
  -             } // if
  -
  -             return result;
  -  }
  -
  -     /**
  -      * the findElementCompatibleTo method is overridden to produce new types and 
elements
  -      * for serializable java classes at runtime
  -      */
  -
  -     public Element findElementCompatibleTo(Object object, Class clazz) {
  -
  -             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -                     
Environment.out.println("DefaultBinding.findElementCompatibleTo(" + object + 
","+clazz+")");
  -
  -    if(clazz==null)
  -      if(object==null)
  -        return getCanonicalElementForClass(Object.class);
  -      else
  -                 return getCanonicalElementForClass(object.getClass());
  -    else
  -      return getCanonicalElementForClass(clazz);
  -     }
  -
  -     /**
  -      * the findTypeCompatibleTo method is overridden to produce new types and 
elements
  -      * for serializable java classes at runtime
  -      */
  -
  -     public Type findTypeCompatibleTo(Object object,Class clazz) {
  -
  -             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -                     Environment.out.println("DefaultBinding.findTypeCompatibleTo(" 
+ object + ","+ clazz+")");
  -
  -    Element element=findElementCompatibleTo(object,clazz);
  -
  -    if(element!=null)
  -      return element.getType();
  -    else
  -      return null;
  -  }
  -
  -  /**
  -   * the default mapping of Java classes to XML elements/types. Extends
  -   * the meta-model on the fly with new information derived from Java reflection.
  -   *
  -   * WARNING: very ugly. But I managed at least to collect these ugly things
  -   * in one method to keep the other parts general.
  -   *
  -   */
  -     protected Element getCanonicalElementForClass(Class clazz) {
  -
  -             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -                     
Environment.out.print(toString()+".getCanonicalElementForClass(" + clazz + ")\n");
  -
  -             if (Boolean.class.isAssignableFrom(clazz) || 
boolean.class.isAssignableFrom(clazz))
  -                     return BooleanElement.getBooleanElement();
  -
  -             if (Byte.class.isAssignableFrom(clazz) || 
byte.class.isAssignableFrom(clazz))
  -                     return ByteElement.getByteElement();
  -
  -             if (Character.class.isAssignableFrom(clazz) || 
char.class.isAssignableFrom(clazz))
  -                     return CharacterElement.getCharacterElement();
  -
  -             if (Double.class.isAssignableFrom(clazz) || 
double.class.isAssignableFrom(clazz))
  -                     return DoubleElement.getDoubleElement();
  -
  -             if (Float.class.isAssignableFrom(clazz) || 
float.class.isAssignableFrom(clazz))
  -                     return FloatElement.getFloatElement();
  -
  -             if (Long.class.isAssignableFrom(clazz) || 
long.class.isAssignableFrom(clazz))
  -                     return LongElement.getLongElement();
  -
  -             if (Integer.class.isAssignableFrom(clazz) || 
int.class.isAssignableFrom(clazz))
  -                     return IntegerElement.getIntegerElement();
  -
  -             if (Short.class.isAssignableFrom(clazz) || 
short.class.isAssignableFrom(clazz))
  -                     return ShortElement.getShortElement();
  -
  -             if (String.class.isAssignableFrom(clazz))
  -                     return StringElement.getStringElement();
  -
  -    if (clazz.isArray()) {
  -
  -      // find the element that is dedicated to your component class
  -      Element subElement=getCanonicalElementForClass(clazz.getComponentType());
  -
  -      if(subElement!=null) {
  -
  -        return subElement.getAppearanceSchema().
  -          getElement(subElement.getAppearanceName()+"-Array");
  -
  -      } else {
  -        return null;
  -      }
  -    } else if(Collection.class.isAssignableFrom(clazz)) {
  -      Element subElement=getCanonicalElementForClass(Object.class);
  -
  -      if (subElement != null) {
  -        return subElement.getAppearanceSchema().
  -          getElement("Object-"+clazz.getName()+"-Collection");
  -      } else
  -        return null;
  -    } else {
  -      Schema lookup = (Schema) classSchemaCache.get(clazz);
  -
  -               if (lookup == null) {
  -                       synchronized(classSchemaCache) {
  -                                       lookup = (Schema) 
classSchemaCache.get(clazz);
  -                                       if (lookup == null) {
  -                                               lookup = constructClassSchema(clazz);
  -                           }
  -                       } // sync
  -      } // sync
  -
  -      if(lookup!=null)
  -        return lookup.getElement(Environment.getShortNameForClass(clazz));
  -      else
  -        return null;
  -    }
  -     }
  -
  -  /** this cache optimizes the creation of class schemas in writing */
  -     private Map classSchemaCache = new HashMap();
  -
  -  /**
  -   * constructs a new @returns ClassSchema with the given @arg urn.
  -   */
  -
  -   private Schema constructClassSchema(URN urn) throws ClassNotFoundException {
  -    return constructClassSchema(urn,Environment.getClassForUrn(urn));
  -   }
  -
  -  /**
  -   * constructs a new @returns ClassSchema for the given @arg forClass.
  -   */
  -
  -  private Schema constructClassSchema(Class forClass) {
  -    return constructClassSchema(new URN(new String[] 
{Environment.INTERNAL_URN.toString()+
  -        Environment.getNameSpaceForClass(forClass)}),forClass);
  -  }
  -
  -  /**
  -   * constructs a new @returns ClassSchema with the given @arg urn and for the 
given @arg forClass.
  -   * Our schemas consists of elements and types for the class and a one-dimensional
  -   * collection upon it. The constructed schema is then registered internally.
  -   */
  -
  -  private Schema constructClassSchema(URN urn, Class forClass) {
  -
  -    // initialisations: whats the full name of the class
  -    String fullClassName=forClass.getName();
  -    // whats the trivial name for that class
  -    String shortClassName=Environment.getShortNameForClass(forClass);
  -
  -    // construct a new schema
  -    Schema schema=new ClassSchema();
  -    // set its urn
  -    schema.setUrn(urn);
  -
  -    // and register it in the revers cache
  -    classSchemaCache.put(forClass,schema);
  -    // next add it to the regular cache
  -    addSchema(schema);
  -
  -    // we construct a new type for that class
  -    ClassType newType=new ClassType();
  -    // the real class behind the object stream class is what we are building
  -    newType.setAssociatedClass(forClass);
  -    // we use nice schema for the package of the class
  -    newType.setTypeSchema(schema);
  -    // extract our name suffix
  -    newType.setTypeName(shortClassName);
  -
  -    // add type to schema
  -    schema.addType(newType);
  -
  -    // we construct a new element
  -    Element newElement=new ClassElement();
  -    // extract the name suffix and use it as element name
  -    newElement.setAppearanceName(shortClassName);
  -    // we use the nice schema for the package of the class
  -    newElement.setAppearanceSchema(schema);
  -    // set the type
  -    newElement.setType(newType);
  -
  -    // and add it to the schema
  -    schema.addElement(newElement);
  -
  -    // and up we go
  -    Class superClass=forClass.getSuperclass();
  -
  -    if(superClass!=null) {
  -      Element superElement=getCanonicalElementForClass(superClass);
  -
  -      if(superElement!=null) {
  -        Type superType=superElement.getType();
  -
  -        // yes it is, so we install a supertype structure for it
  -        newType.setSuperType(superType);
  -
  -        ObjectStreamClass streamClass=ObjectStreamClass.lookup(forClass);
  -
  -        // is our superclass serializable, too ?
  -        if(streamClass!=null) {
  -
  -        // yes, finally we turn to the attribute/element stuff
  -        ObjectStreamField[] streamFields=streamClass.getFields();
  -
  -        // primitives are mapped to attributes while
  -        // complex Java types are mapped to elements
  -        for(int count=0;count<streamFields.length;count++) {
  -
  -          if(!streamFields[count].getType().isArray() &&
  -            (streamFields[count].isPrimitive() ||
  -              streamFields[count].getType().equals(Boolean.class) ||
  -              streamFields[count].getType().equals(Byte.class) ||
  -              streamFields[count].getType().equals(Character.class) ||
  -              streamFields[count].getType().equals(Integer.class) ||
  -              streamFields[count].getType().equals(Long.class) ||
  -              streamFields[count].getType().equals(Short.class) ||
  -              streamFields[count].getType().equals(Double.class) ||
  -              streamFields[count].getType().equals(Float.class) ||
  -              streamFields[count].getType().equals(String.class))) {
  -
  -                Element 
subElement=getCanonicalElementForClass(streamFields[count].getType());
  -                  if(subElement!=null) {
  -                    FieldAttribute newAttribute=new FieldAttribute();
  -                    newAttribute.setAppearanceSchema(schema);
  -                    newAttribute.setFieldName(streamFields[count].getName());
  -                    newAttribute.setAppearanceName(streamFields[count].getName());
  -                    newAttribute.setType((SimpleType) subElement.getType());
  -                    newAttribute.setAssociatedClass(forClass);
  -                    newType.addAttribute(newAttribute);
  -                  }
  -
  -          } else {
  -
  -              Element 
subElement=getCanonicalElementForClass(streamFields[count].getType());
  -              if(subElement!=null) {
  -              FieldElement newSubElement=new FieldElement();
  -
  -              newSubElement.setAppearanceSchema(schema);
  -              newSubElement.setFieldName(streamFields[count].getName());
  -              newSubElement.setAppearanceName(streamFields[count].getName());
  -              newSubElement.setType(subElement.getType());
  -              newSubElement.setAssociatedClass(forClass);
  -              newType.addElement(newSubElement);
  -            }
  -
  -          }
  -
  -        } // for
  -
  -      } // if(streamClass!=null)
  -
  -     }
  -
  -    } else {
  -
  -      // no means that we are the first class (Object?),
  -      // hence we add the name/ref mechanism
  -      newType.addAttribute(NameAttribute.getNameAttribute());
  -      newType.addAttribute(RefAttribute.getRefAttribute());
  -
  -    }
  -
  -    return schema;
  -  }
  -
  -  // singleton reference
  -  private static DefaultBinding defaultBinding;
  -
  -  // singleton accessor
  -  public static DefaultBinding getDefaultBinding() {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(DefaultBinding.class.toString()+".getDefaultBinding()");
  -
  -    if(defaultBinding==null)
  -      synchronized(DefaultBinding.class) {
  -        if(defaultBinding==null)
  -          defaultBinding=new DefaultBinding();
  -      }
  -
  -    return defaultBinding;
  -  }
  -}
  -
  -
  -  /** the default mapping of Java objects to XML elements/types
  -     public Element getCanonicalElementForObject(Object object) {
  -
  -             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -                     
Environment.out.print(toString()+".getCanonicalElementForObject(" + object + ")\n");
  -
  -             if (object == null)
  -                     return getClassElement(getClassSchema(Object.class), 
Object.class);
  -
  -             return getCanonicalElementForClass(object.getClass());
  -     }
  -
  -     /** the default mapping of Java objects to XML elements/types
  -     public Type getCanonicalTypeForObject(Object object) {
  -
  -             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -                     Environment.out.print(toString()+".getCanonicalTypeForObject(" 
+ object + ")\n");
  -
  -             if (object == null)
  -                     return getClassElement(getClassSchema(Object.class), 
Object.class).getType();
  -
  -             return getCanonicalTypeForClass(object.getClass());
  -     }
  -
  -  */
  -
  -/*
  - *   $Log: DefaultBinding.java,v $
  - *   Revision 1.1  2000/08/10 21:08:06  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1  2000/07/07 15:50:03  jung
  - *   Request-Response Structure close to MS-SOAP
  - *
  - *   removed a mega-bug in return element
  - *
  - *   Revision 1.2  2000/07/06 16:55:06  jung
  - *   moved the default binding caches in order to make apartments
  - *   with different versions of the same class possible.
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  +/*
  + *   $Id: DefaultBinding.java,v 1.2 2000/12/04 12:36:37 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.XmlSchema;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.Binding;
  +import org.zoap.xml.SimpleType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Element;
  +import org.zoap.xml.Type;
  +import org.zoap.xml.IllegalSuperTypeException;
  +
  +import de.infor.ce.util.URN;
  +
  +import java.util.Map;
  +import java.util.HashMap;
  +import java.util.Collection;
  +
  +import java.io.ObjectStreamClass;
  +import java.io.ObjectStreamField;
  +
  +import java.math.BigDecimal;
  +
  +import java.util.Date;
  +
  +
  +/**
  + * This is the default databinding used by infor:XML.
  + * <br>
  + * It comes with a number of useful predefined element/type-mappings between
  + * XML-Schema and Java classes.
  + * <br>
  + * Furthermore it is able to extend its meta-model by Java serialization
  + * information on the fly.
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class DefaultBinding extends Binding {
  +
  +     /** constructor is empty */
  +  public DefaultBinding() {
  +
  +       if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +                     Environment.out.print(toString()+"()\n");
  +
  +    addSchema(XmlSchema.getXmlSchema());
  +    addSchema(ZoapSchema.getZoapSchema());
  +
  +     }
  +
  +  /**
  +   * a dedicated schema that can build new collection elements and types at runtime
  +   */
  +
  +  class ClassSchema extends Schema {
  +
  +    public Element getElement(String name) {
  +
  +      Element element=super.getElement(name);
  +
  +      if(element==null) {
  +
  +        if(name.endsWith("-Array")) {
  +
  +          name=name.substring(0,name.length()-6);
  +          Element subElement=getElement(name);
  +
  +          if(subElement!=null) {
  +              // array type
  +              CollectionType newCollectionType=new CollectionType();
  +              newCollectionType.setTypeSchema(this);
  +              newCollectionType.setTypeName(name+"-Array");
  +              try{
  +                
newCollectionType.setAssociatedClass(Class.forName("[L"+subElement.getType().getAssociatedClass().
  +                  
getName()+";",true,Thread.currentThread().getContextClassLoader()));
  +              } catch(ClassNotFoundException e) {
  +                throw new RuntimeException("Array construction failed."+e);
  +              }
  +              newCollectionType.addElement(subElement);
  +              addType(newCollectionType);
  +
  +              // array element
  +              element=new CollectionElement();
  +              element.setAppearanceSchema(this);
  +              element.setAppearanceName(name+"-Array");
  +              element.setType(newCollectionType);
  +              addElement(element);
  +            } // if subElement!=null
  +
  +          } else if(name.endsWith("-Collection")) {
  +
  +            name=name.substring(0,name.length()-11);
  +            String collectionName="";
  +
  +            if(name.lastIndexOf("-")!=-1) {
  +              collectionName=name.substring(name.lastIndexOf("-")+1,name.length());
  +              name=name.substring(0,name.lastIndexOf("-"));
  +            }
  +
  +            try{
  +
  +              Class collectionClass=Class.forName(collectionName,true,
  +                Thread.currentThread().getContextClassLoader());
  +
  +              Element subElement=getElement(name);
  +
  +              if(subElement!=null) {
  +                CollectionType newCollectionType=new CollectionType();
  +                newCollectionType.setTypeSchema(this);
  +                newCollectionType.setTypeName(name+collectionName+"-Collection");
  +                newCollectionType.setAssociatedClass(collectionClass);
  +                newCollectionType.addElement(subElement);
  +                addType(newCollectionType);
  +                element=new CollectionElement();
  +                element.setAppearanceSchema(this);
  +                element.setAppearanceName(name+collectionName+"-Collection");
  +                element.setType(newCollectionType);
  +                addElement(element);
  +              } // if
  +
  +            } catch(ClassNotFoundException e) {
  +              throw new RuntimeException("Collection type fucked 
up."+collectionName);
  +            } // try
  +
  +          } // if
  +
  +      } // if element==null
  +
  +      return element;
  +
  +    }
  +
  +    public Type getType(String name) {
  +      Type type=super.getType(name);
  +
  +      if(type==null) {
  +        Element subElement=getElement(name);
  +        if(subElement!=null)
  +          type=subElement.getType();
  +      }
  +
  +      return type;
  +    }
  +
  +  }
  +
  +     /**
  +      * the getSchema method is overridden to produce new class-related schemas
  +   * at runtime, i.e., if we can map the url to some Java class, we are fine
  +   * getSchema also maintains a second cache that relates Java classes to
  +   * class schemas.
  +      */
  +
  +     public Schema getSchema(URN urn) {
  +
  +             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +                     Environment.out.print(toString()+".getSchema(" + urn + ")\n");
  +
  +    Schema result=super.getSchema(urn);
  +
  +    if(result==null) {
  +     synchronized(classSchemaCache) {
  +                     result = super.getSchema(urn);
  +
  +                     if (result == null) {
  +            try{
  +                                                     result = 
constructClassSchema(urn);
  +            } catch(ClassNotFoundException e) {
  +
  +              if((Environment.DEBUG_XML && Environment.DEBUG_XML_META) ||
  +                (Environment.LOG_XML>0 && Environment.LOG_XML_META>0)) {
  +                Environment.out.print(toString()+".getSchema("+urn+")\n");
  +              }
  +            }
  +
  +              } // if
  +                     } // sync
  +             } // if
  +
  +             return result;
  +  }
  +
  +     /**
  +      * the findElementCompatibleTo method is overridden to produce new types and 
elements
  +      * for serializable java classes at runtime
  +      */
  +
  +     public Element findElementCompatibleTo(Object object, Class clazz) {
  +
  +             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +                     
Environment.out.println("DefaultBinding.findElementCompatibleTo(" + object + 
","+clazz+")");
  +
  +    if(clazz==null)
  +      if(object==null)
  +        return getCanonicalElementForClass(Object.class);
  +      else
  +                 return getCanonicalElementForClass(object.getClass());
  +    else
  +      return getCanonicalElementForClass(clazz);
  +     }
  +
  +     /**
  +      * the findTypeCompatibleTo method is overridden to produce new types and 
elements
  +      * for serializable java classes at runtime
  +      */
  +
  +     public Type findTypeCompatibleTo(Object object,Class clazz) {
  +
  +             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +                     Environment.out.println("DefaultBinding.findTypeCompatibleTo(" 
+ object + ","+ clazz+")");
  +
  +    Element element=findElementCompatibleTo(object,clazz);
  +
  +    if(element!=null)
  +      return element.getType();
  +    else
  +      return null;
  +  }
  +
  +  /**
  +   * the default mapping of Java classes to XML elements/types. Extends
  +   * the meta-model on the fly with new information derived from Java reflection.
  +   *
  +   * WARNING: very ugly. But I managed at least to collect these ugly things
  +   * in one method to keep the other parts general.
  +   *
  +   */
  +     protected Element getCanonicalElementForClass(Class clazz) {
  +
  +             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +                     
Environment.out.print(toString()+".getCanonicalElementForClass(" + clazz + ")\n");
  +
  +             if (Boolean.class.isAssignableFrom(clazz) || 
boolean.class.isAssignableFrom(clazz))
  +                     return BooleanElement.getBooleanElement();
  +
  +             if (BigDecimal.class.isAssignableFrom(clazz))
  +                     return DecimalElement.getDecimalElement();
  +
  +             if (Date.class.isAssignableFrom(clazz))
  +                     return DateElement.getDateElement();
  +
  +             if (Byte.class.isAssignableFrom(clazz) || 
byte.class.isAssignableFrom(clazz))
  +                     return ByteElement.getByteElement();
  +
  +             if (Character.class.isAssignableFrom(clazz) || 
char.class.isAssignableFrom(clazz))
  +                     return CharacterElement.getCharacterElement();
  +
  +             if (Double.class.isAssignableFrom(clazz) || 
double.class.isAssignableFrom(clazz))
  +                     return DoubleElement.getDoubleElement();
  +
  +             if (Float.class.isAssignableFrom(clazz) || 
float.class.isAssignableFrom(clazz))
  +                     return FloatElement.getFloatElement();
  +
  +             if (Long.class.isAssignableFrom(clazz) || 
long.class.isAssignableFrom(clazz))
  +                     return LongElement.getLongElement();
  +
  +             if (Integer.class.isAssignableFrom(clazz) || 
int.class.isAssignableFrom(clazz))
  +                     return IntegerElement.getIntegerElement();
  +
  +             if (Short.class.isAssignableFrom(clazz) || 
short.class.isAssignableFrom(clazz))
  +                     return ShortElement.getShortElement();
  +
  +             if (String.class.isAssignableFrom(clazz))
  +                     return StringElement.getStringElement();
  +
  +    if (clazz.isArray()) {
  +
  +      // find the element that is dedicated to your component class
  +      Element subElement=getCanonicalElementForClass(clazz.getComponentType());
  +
  +      if(subElement!=null) {
  +
  +        return subElement.getAppearanceSchema().
  +          getElement(subElement.getAppearanceName()+"-Array");
  +
  +      } else {
  +        return null;
  +      }
  +    } else if(Collection.class.isAssignableFrom(clazz)) {
  +      Element subElement=getCanonicalElementForClass(Object.class);
  +
  +      if (subElement != null) {
  +        return subElement.getAppearanceSchema().
  +          getElement("Object-"+clazz.getName()+"-Collection");
  +      } else
  +        return null;
  +    } else {
  +      Schema lookup = (Schema) classSchemaCache.get(clazz);
  +
  +               if (lookup == null) {
  +                       synchronized(classSchemaCache) {
  +                                       lookup = (Schema) 
classSchemaCache.get(clazz);
  +                                       if (lookup == null) {
  +                                               lookup = constructClassSchema(clazz);
  +                           }
  +                       } // sync
  +      } // sync
  +
  +      if(lookup!=null)
  +        return lookup.getElement(Environment.getShortNameForClass(clazz));
  +      else
  +        return null;
  +    }
  +     }
  +
  +  /** this cache optimizes the creation of class schemas in writing */
  +     private Map classSchemaCache = new HashMap();
  +
  +  /**
  +   * constructs a new @returns ClassSchema with the given @arg urn.
  +   */
  +
  +   private Schema constructClassSchema(URN urn) throws ClassNotFoundException {
  +    return constructClassSchema(urn,Environment.getClassForUrn(urn));
  +   }
  +
  +  /**
  +   * constructs a new @returns ClassSchema for the given @arg forClass.
  +   */
  +
  +  private Schema constructClassSchema(Class forClass) {
  +    return constructClassSchema(new URN(new String[] 
{Environment.INTERNAL_URN.toString()+
  +        Environment.getNameSpaceForClass(forClass)}),forClass);
  +  }
  +
  +  /**
  +   * constructs a new @returns ClassSchema with the given @arg urn and for the 
given @arg forClass.
  +   * Our schemas consists of elements and types for the class and a one-dimensional
  +   * collection upon it. The constructed schema is then registered internally.
  +   */
  +
  +  private Schema constructClassSchema(URN urn, Class forClass) {
  +
  +    // initialisations: whats the full name of the class
  +    String fullClassName=forClass.getName();
  +    // whats the trivial name for that class
  +    String shortClassName=Environment.getShortNameForClass(forClass);
  +
  +    // construct a new schema
  +    Schema schema=new ClassSchema();
  +    // set its urn
  +    schema.setUrn(urn);
  +
  +    // and register it in the revers cache
  +    classSchemaCache.put(forClass,schema);
  +    // next add it to the regular cache
  +    addSchema(schema);
  +
  +    // we construct a new type for that class
  +    ClassType newType=new ClassType();
  +    // the real class behind the object stream class is what we are building
  +    newType.setAssociatedClass(forClass);
  +    // we use nice schema for the package of the class
  +    newType.setTypeSchema(schema);
  +    // extract our name suffix
  +    newType.setTypeName(shortClassName);
  +
  +    // add type to schema
  +    schema.addType(newType);
  +
  +    // we construct a new element
  +    Element newElement=new ClassElement();
  +    // extract the name suffix and use it as element name
  +    newElement.setAppearanceName(shortClassName);
  +    // we use the nice schema for the package of the class
  +    newElement.setAppearanceSchema(schema);
  +    // set the type
  +    newElement.setType(newType);
  +
  +    // and add it to the schema
  +    schema.addElement(newElement);
  +
  +    // and up we go
  +    Class superClass=forClass.getSuperclass();
  +
  +    if(superClass!=null) {
  +      Element superElement=getCanonicalElementForClass(superClass);
  +
  +      if(superElement!=null) {
  +        Type superType=superElement.getType();
  +
  +        // yes it is, so we install a supertype structure for it
  +        newType.setSuperType(superType);
  +
  +        ObjectStreamClass streamClass=ObjectStreamClass.lookup(forClass);
  +
  +        // is our superclass serializable, too ?
  +        if(streamClass!=null) {
  +
  +        // yes, finally we turn to the attribute/element stuff
  +        ObjectStreamField[] streamFields=streamClass.getFields();
  +
  +        // primitives are mapped to attributes while
  +        // complex Java types are mapped to elements
  +        for(int count=0;count<streamFields.length;count++) {
  +
  +          if(!streamFields[count].getType().isArray() &&
  +            (streamFields[count].isPrimitive() ||
  +              streamFields[count].getType().equals(Boolean.class) ||
  +              streamFields[count].getType().equals(Byte.class) ||
  +              streamFields[count].getType().equals(BigDecimal.class) ||
  +              streamFields[count].getType().equals(Character.class) ||
  +              streamFields[count].getType().equals(Integer.class) ||
  +              streamFields[count].getType().equals(Date.class) ||
  +              streamFields[count].getType().equals(Long.class) ||
  +              streamFields[count].getType().equals(Short.class) ||
  +              streamFields[count].getType().equals(Double.class) ||
  +              streamFields[count].getType().equals(Float.class) ||
  +              streamFields[count].getType().equals(String.class))) {
  +
  +                Element 
subElement=getCanonicalElementForClass(streamFields[count].getType());
  +                  if(subElement!=null) {
  +                    FieldAttribute newAttribute=new FieldAttribute();
  +                    newAttribute.setAppearanceSchema(schema);
  +                    newAttribute.setFieldName(streamFields[count].getName());
  +                    newAttribute.setAppearanceName(streamFields[count].getName());
  +                    newAttribute.setType((SimpleType) subElement.getType());
  +                    newAttribute.setAssociatedClass(forClass);
  +                    newType.addAttribute(newAttribute);
  +                  }
  +
  +          } else {
  +
  +              Element 
subElement=getCanonicalElementForClass(streamFields[count].getType());
  +              if(subElement!=null) {
  +              FieldElement newSubElement=new FieldElement();
  +
  +              newSubElement.setAppearanceSchema(schema);
  +              newSubElement.setFieldName(streamFields[count].getName());
  +              newSubElement.setAppearanceName(streamFields[count].getName());
  +              newSubElement.setType(subElement.getType());
  +              newSubElement.setAssociatedClass(forClass);
  +              newType.addElement(newSubElement);
  +            }
  +
  +          }
  +
  +        } // for
  +
  +      } // if(streamClass!=null)
  +
  +     }
  +
  +    } else {
  +
  +      // no means that we are the first class (Object?),
  +      // hence we add the name/ref mechanism
  +      newType.addAttribute(NameAttribute.getNameAttribute());
  +      newType.addAttribute(RefAttribute.getRefAttribute());
  +
  +    }
  +
  +    return schema;
  +  }
  +
  +  // singleton reference
  +  private static DefaultBinding defaultBinding;
  +
  +  // singleton accessor
  +  public static DefaultBinding getDefaultBinding() {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(DefaultBinding.class.toString()+".getDefaultBinding()");
  +
  +    if(defaultBinding==null)
  +      synchronized(DefaultBinding.class) {
  +        if(defaultBinding==null)
  +          defaultBinding=new DefaultBinding();
  +      }
  +
  +    return defaultBinding;
  +  }
  +}
  +
  +
  +  /** the default mapping of Java objects to XML elements/types
  +     public Element getCanonicalElementForObject(Object object) {
  +
  +             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +                     
Environment.out.print(toString()+".getCanonicalElementForObject(" + object + ")\n");
  +
  +             if (object == null)
  +                     return getClassElement(getClassSchema(Object.class), 
Object.class);
  +
  +             return getCanonicalElementForClass(object.getClass());
  +     }
  +
  +     /** the default mapping of Java objects to XML elements/types
  +     public Type getCanonicalTypeForObject(Object object) {
  +
  +             if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +                     Environment.out.print(toString()+".getCanonicalTypeForObject(" 
+ object + ")\n");
  +
  +             if (object == null)
  +                     return getClassElement(getClassSchema(Object.class), 
Object.class).getType();
  +
  +             return getCanonicalTypeForClass(object.getClass());
  +     }
  +
  +  */
  +
  
  
  
  1.2       +76 -76    zoap/src/org/zoap/xml/meta/builtin/DefaultMetaBinding.java
  
  Index: DefaultMetaBinding.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/DefaultMetaBinding.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultMetaBinding.java   2000/08/10 21:08:07     1.1
  +++ DefaultMetaBinding.java   2000/12/04 12:36:38     1.2
  @@ -1,76 +1,76 @@
  -/*
  - *   $Id: DefaultMetaBinding.java,v 1.1 2000/08/10 21:08:07 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.MetaBinding;
  -import org.zoap.xml.Environment;
  -
  -/**
  - * a "bootstrapping" binding that can be used to read ZOAP-enhanced XMLSchema 
definitions
  - * to extend it at runtime.
  - */
  -public class DefaultMetaBinding extends MetaBinding {
  -
  -  /** adds ZoapSchema to the list of registered schemas */
  -  public DefaultMetaBinding() {
  -    addSchema(ZoapSchema.getZoapSchema());
  -  }
  -
  -  /** singleton is created lazily */
  -  private static DefaultMetaBinding metaBinding;
  -
  -  /** public singleton accessor */
  -
  -  public static DefaultMetaBinding getDefaultMetaBinding() {
  -    if(metaBinding==null)
  -      synchronized(DefaultMetaBinding.class) {
  -        if(metaBinding==null)
  -          metaBinding=new DefaultMetaBinding();
  -      }
  -
  -    return metaBinding;
  -  }
  -
  -} // DefaultMetaBinding
  +/*
  + *   $Id: DefaultMetaBinding.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.MetaBinding;
  +import org.zoap.xml.Environment;
  +
  +/**
  + * a "bootstrapping" binding that can be used to read ZOAP-enhanced XMLSchema 
definitions
  + * to extend it at runtime.
  + */
  +public class DefaultMetaBinding extends MetaBinding {
  +
  +  /** adds ZoapSchema to the list of registered schemas */
  +  public DefaultMetaBinding() {
  +    addSchema(ZoapSchema.getZoapSchema());
  +  }
  +
  +  /** singleton is created lazily */
  +  private static DefaultMetaBinding metaBinding;
  +
  +  /** public singleton accessor */
  +
  +  public static DefaultMetaBinding getDefaultMetaBinding() {
  +    if(metaBinding==null)
  +      synchronized(DefaultMetaBinding.class) {
  +        if(metaBinding==null)
  +          metaBinding=new DefaultMetaBinding();
  +      }
  +
  +    return metaBinding;
  +  }
  +
  +} // DefaultMetaBinding
  
  
  
  1.2       +111 -107  zoap/src/org/zoap/xml/meta/builtin/DoubleElement.java
  
  Index: DoubleElement.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/DoubleElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DoubleElement.java        2000/08/10 21:08:07     1.1
  +++ DoubleElement.java        2000/12/04 12:36:38     1.2
  @@ -1,110 +1,120 @@
  -/*
  - *   $Id: DoubleElement.java,v 1.1 2000/08/10 21:08:07 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.DoubleType;
  -import org.zoap.xml.Environment;
  -
  -/**
  - * XML wrapper around java.lang.Double Implemented as a singleton
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class DoubleElement extends PrimitiveElement {
  -
  -    /** constructor cannot be faked anymore */
  -    private DoubleElement() {
  -
  -        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -          Environment.out.print(toString()+"()\n");
  -
  -        setType(DoubleType.getDoubleType());
  -        setAppearanceName("double");
  -    }
  -
  -    /**
  -     *  static reference, non-lazy since usage of this class is equivalent with
  -     *  instantiation
  -     */
  -
  -    private static DoubleElement doubleElement=new DoubleElement();
  -
  -    /** global access */
  -    public static DoubleElement getDoubleElement() {
  -
  -        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -          
Environment.out.print(DoubleElement.class.toString()+".getDoubleElement()\n");
  -
  -      return doubleElement;
  -    }
  -
  -}
  -
  -/*
  +/*
  + *   $Id: DoubleElement.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.DoubleType;
  +import org.zoap.xml.Environment;
  +
  +/**
  + * XML wrapper around java.lang.Double Implemented as a singleton
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class DoubleElement extends PrimitiveElement {
  +
  +    /** constructor cannot be faked anymore */
  +    private DoubleElement() {
  +
  +        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +          Environment.out.print(toString()+"()\n");
  +
  +        setType(DoubleType.getDoubleType());
  +        setAppearanceName("double");
  +    }
  +
  +    /**
  +     *  static reference, non-lazy since usage of this class is equivalent with
  +     *  instantiation
  +     */
  +
  +    private static DoubleElement doubleElement=new DoubleElement();
  +
  +    /** global access */
  +    public static DoubleElement getDoubleElement() {
  +
  +        if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +          
Environment.out.print(DoubleElement.class.toString()+".getDoubleElement()\n");
  +
  +      return doubleElement;
  +    }
  +
  +}
  +
  +/*
    *   $Log: DoubleElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:07  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  \ No newline at end of file
  + *   Revision 1.2  2000/12/04 12:36:38  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:08:07  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.3       +174 -170  zoap/src/org/zoap/xml/meta/builtin/FieldAttribute.java
  
  Index: FieldAttribute.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/FieldAttribute.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FieldAttribute.java       2000/09/04 16:41:18     1.2
  +++ FieldAttribute.java       2000/12/04 12:36:38     1.3
  @@ -1,83 +1,83 @@
  -/*
  - *   $Id: FieldAttribute.java,v 1.2 2000/09/04 16:41:18 jung Exp $
  - *   Copyright (c) 2000 infor:business solutions AG, Hauerstrasse 12, 
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved. 
  - * 
  - *   This program is free software; you can redistribute it and/or
  - *   modify it under the terms of the GNU General Public License
  - *   as published by the Free Software Foundation; either version 2
  - *   of the License, or (at your option) any later version.
  - *
  - *   This program is distributed in the hope that it will be useful,
  - *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  - *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  - *   GNU General Public License for more details.
  - *
  - *   You should have received a copy of the GNU General Public License
  - *   along with this program; if not, write to the Free Software
  - *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  - */
  -
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.AttributeException;
  -import org.zoap.xml.Attribute;
  -
  -import java.util.Properties;
  -import java.util.Map;
  -
  -import java.lang.reflect.Field;
  -
  -/**
  - * This is a dedicated XML-attribute wrapper around an arbitrary Java field. This 
wrapper
  - * must be provided with a fieldname, a Java class to which this field belongs, and
  - * an appropriate SimpleType into which the field value can be serialised to and 
can be deserialised
  - * from.
  - */
  -
  -public class FieldAttribute extends Attribute {
  -
  -  /** the associated field */
  -  private Field associatedField;
  -
  -  /** the name of the associatedField */
  -  private String fieldName;
  -
  -  /** the name of the associatedClass, i.e., the one carrying the field */
  -  private Class associatedClass;
  -
  -  /** empty constructor */
  -  public FieldAttribute() {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+"()\n");
  -
  -  }
  -
  -  /** access the associated class */
  -  public Class getAssociatedClass() {
  -    return associatedClass;
  -  }
  -
  -  /** sets the associated class */
  -  public void setAssociatedClass(Class forClass) {
  -    associatedClass=forClass;
  -  }
  -
  -
  -  /** access the fieldname*/
  -  public String getFieldName() {
  -    return fieldName;
  -  }
  -
  -  /** set the field name */
  -  public void setFieldName(String fieldName) {
  -    this.fieldName=fieldName;
  -  }
  +/*
  + *   $Id: FieldAttribute.java,v 1.3 2000/12/04 12:36:38 jung Exp $
  + *   Copyright (c) 2000 infor:business solutions AG, Hauerstrasse 12, 
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved. 
  + * 
  + *   This program is free software; you can redistribute it and/or
  + *   modify it under the terms of the GNU General Public License
  + *   as published by the Free Software Foundation; either version 2
  + *   of the License, or (at your option) any later version.
  + *
  + *   This program is distributed in the hope that it will be useful,
  + *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  + *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  + *   GNU General Public License for more details.
  + *
  + *   You should have received a copy of the GNU General Public License
  + *   along with this program; if not, write to the Free Software
  + *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  + */
   
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.AttributeException;
  +import org.zoap.xml.Attribute;
  +
  +import java.util.Properties;
  +import java.util.Map;
  +
  +import java.lang.reflect.Field;
  +
  +/**
  + * This is a dedicated XML-attribute wrapper around an arbitrary Java field. This 
wrapper
  + * must be provided with a fieldname, a Java class to which this field belongs, and
  + * an appropriate SimpleType into which the field value can be serialised to and 
can be deserialised
  + * from.
  + */
  +
  +public class FieldAttribute extends Attribute {
  +
  +  /** the associated field */
  +  private Field associatedField;
  +
  +  /** the name of the associatedField */
  +  private String fieldName;
  +
  +  /** the name of the associatedClass, i.e., the one carrying the field */
  +  private Class associatedClass;
  +
  +  /** empty constructor */
  +  public FieldAttribute() {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+"()\n");
  +
  +  }
  +
  +  /** access the associated class */
  +  public Class getAssociatedClass() {
  +    return associatedClass;
  +  }
  +
  +  /** sets the associated class */
  +  public void setAssociatedClass(Class forClass) {
  +    associatedClass=forClass;
  +  }
  +
  +
  +  /** access the fieldname*/
  +  public String getFieldName() {
  +    return fieldName;
  +  }
  +
  +  /** set the field name */
  +  public void setFieldName(String fieldName) {
  +    this.fieldName=fieldName;
  +  }
  +
       public void setAssociatedField(Field field) {
           associatedField = field;
       }
  @@ -85,102 +85,111 @@
       public Field getAssociatedField() {
           return associatedField;
       }
  +
  +
  +  /**
  +   * accesses the field as an element. Lazily refreshes the internal reflection 
information
  +   * and (if successful) uses the field.get method to retrieve the (single) value 
that is then
  +   * handed to the associated type.
  +   */
  +
  +  public Object getAttributeContent(Object object, boolean isNew, Properties 
references)
  +    throws AttributeException {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      
Environment.out.print(toString()+"getAttributeContent("+object+","+isNew+","+references+")\n");
  +
  +    if(isNew && object!=null) {
   
  -
  -  /**
  -   * accesses the field as an element. Lazily refreshes the internal reflection 
information
  -   * and (if successful) uses the field.get method to retrieve the (single) value 
that is then
  -   * handed to the associated type.
  -   */
  -
  -  public Object getAttributeContent(Object object, boolean isNew, Properties 
references)
  -    throws AttributeException {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      
Environment.out.print(toString()+"getAttributeContent("+object+","+isNew+","+references+")\n");
  -
  -    if(isNew && object!=null) {
  -
  -      if(associatedField==null) {
  -        try{
  -          initialize();
  -        } catch(NoSuchFieldException e) {
  -          throw new AttributeException();
  -        } catch(IllegalAccessException e) {
  -          throw new AttributeException();
  -        }
  -      }
  -
  -      try{
  -          return associatedField.get(object);
  -      } catch(IllegalAccessException e) {
  -        throw new AttributeException();
  -      }
  -
  -    } else
  -      return null;
  -  }
  -
  -
  -  /**
  -   * setAttributeContent simply sets the value of the field. Lazily refreshes the 
internal
  -   * reflection information. Uses the field.set method.
  -   */
  -
  -
  -  public Object setAttributeContent(Object object, Object value, Map references, 
Map nameSpaces)
  -    throws AttributeException {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      
Environment.out.print(toString()+".setAttributeContent("+object+","+value+","+references+")\n");
  -
  -    if(object!=null) {
  -
  -      if(associatedField==null) {
  -       try{
  -          initialize();
  -        } catch(NoSuchFieldException e) {
  -          throw new AttributeException();
  -        } catch(IllegalAccessException e) {
  -          throw new AttributeException();
  -        }
  -      }
  -
  -      try{
  -        associatedField.set(object,value);
  -      } catch(IllegalAccessException e) {
  -        throw new AttributeException();
  -      }
  -
  -    }
  -
  -    return object;
  -  }
  -
  -  /**
  -   * a private initializer that refreshes internal representations when switching 
from
  -   * configuration time to runtime.
  -   */
  -
  -  private void initialize() throws NoSuchFieldException, IllegalAccessException {
  -    // check that the class hes been set
  -    if(getAssociatedClass()!=null) {
  -        Field testField=
  -          getAssociatedClass().
  -            getDeclaredField(fieldName);
  -        testField.setAccessible(true);
  -        associatedField=testField;
  -    }
  -  } // initialize
  -
  -}
  -
  -/*
  +      if(associatedField==null) {
  +        try{
  +          initialize();
  +        } catch(NoSuchFieldException e) {
  +          throw new AttributeException();
  +        } catch(IllegalAccessException e) {
  +          throw new AttributeException();
  +        }
  +      }
  +
  +      try{
  +          return associatedField.get(object);
  +      } catch(IllegalAccessException e) {
  +        throw new AttributeException();
  +      }
  +
  +    } else
  +      return null;
  +  }
  +
  +
  +  /**
  +   * setAttributeContent simply sets the value of the field. Lazily refreshes the 
internal
  +   * reflection information. Uses the field.set method.
  +   */
  +
  +
  +  public Object setAttributeContent(Object object, Object value, Map references, 
Map nameSpaces)
  +    throws AttributeException {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      
Environment.out.print(toString()+".setAttributeContent("+object+","+value+","+references+")\n");
  +
  +    if(object!=null) {
  +
  +      if(associatedField==null) {
  +       try{
  +          initialize();
  +        } catch(NoSuchFieldException e) {
  +          throw new AttributeException();
  +        } catch(IllegalAccessException e) {
  +          throw new AttributeException();
  +        }
  +      }
  +
  +      try{
  +        associatedField.set(object,value);
  +      } catch(IllegalAccessException e) {
  +        throw new AttributeException();
  +      }
  +
  +    }
  +
  +    return object;
  +  }
  +
  +  /**
  +   * a private initializer that refreshes internal representations when switching 
from
  +   * configuration time to runtime.
  +   */
  +
  +  private void initialize() throws NoSuchFieldException, IllegalAccessException {
  +    // check that the class hes been set
  +    if(getAssociatedClass()!=null) {
  +        Field testField=
  +          getAssociatedClass().
  +            getDeclaredField(fieldName);
  +        testField.setAccessible(true);
  +        associatedField=testField;
  +    }
  +  } // initialize
  +
  +}
  +
  +/*
    *   $Log: FieldAttribute.java,v $
  + *   Revision 1.3  2000/12/04 12:36:38  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.2  2000/09/04 16:41:18  jung
    *   public accessors to the associated reflection field allow
    *   extensions of this structure.
    *   
    *   Revision 1.1.1.1  2000/08/10 21:08:07  jung
    *   Initial import.
  - */
  + */
  
  
  
  1.2       +81 -81    zoap/src/org/zoap/xml/meta/builtin/FieldAttributeType.java
  
  Index: FieldAttributeType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/FieldAttributeType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FieldAttributeType.java   2000/08/10 21:08:08     1.1
  +++ FieldAttributeType.java   2000/12/04 12:36:38     1.2
  @@ -1,81 +1,81 @@
  -/*
  - *   $Id: FieldAttributeType.java,v 1.1 2000/08/10 21:08:08 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.AttributeType;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class FieldAttributeType extends ComplexType {
  -
  -    private FieldAttributeType() {
  -        setTypeName("FieldAttribute");
  -        setAssociatedClass(FieldAttribute.class);
  -        setSuperType(AttributeType.getAttributeType());
  -        // addAttribute(AssociatedClassAttribute.getAssociatedClassAttribute());
  -        addAttribute(FieldNameAttribute.getFieldNameAttribute());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    private static FieldAttributeType fieldAttributeType=new FieldAttributeType();
  -
  -    public static FieldAttributeType getFieldAttributeType() {
  -            return fieldAttributeType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: FieldAttributeType.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.AttributeType;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class FieldAttributeType extends ComplexType {
  +
  +    private FieldAttributeType() {
  +        setTypeName("FieldAttribute");
  +        setAssociatedClass(FieldAttribute.class);
  +        setSuperType(AttributeType.getAttributeType());
  +        // addAttribute(AssociatedClassAttribute.getAssociatedClassAttribute());
  +        addAttribute(FieldNameAttribute.getFieldNameAttribute());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    private static FieldAttributeType fieldAttributeType=new FieldAttributeType();
  +
  +    public static FieldAttributeType getFieldAttributeType() {
  +            return fieldAttributeType;
  +    }
  +
  +}
  
  
  
  1.2       +195 -187  zoap/src/org/zoap/xml/meta/builtin/FieldElement.java
  
  Index: FieldElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/FieldElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FieldElement.java 2000/08/10 21:08:08     1.1
  +++ FieldElement.java 2000/12/04 12:36:38     1.2
  @@ -1,190 +1,204 @@
  -/*
  - *   $Id: FieldElement.java,v 1.1 2000/08/10 21:08:08 jung Exp $
  - *   Copyright 2000 by infor: business solutions AG
  - *   Hauerstra�e 12, D-66299 Friedrichsthal, Germany
  - *   All rights reserved.
  - *
  - *   This software is the confidential and proprietary information
  - *   of infor: business solutions AG ("Confidential Information").  You
  - *   shall not disclose such Confidential Information and shall use
  - *   it only in accordance with the terms of the license agreement
  - *   you entered into with infor AG.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Element;
  -import org.zoap.xml.ElementException;
  -
  -import java.util.Properties;
  -import java.util.Map;
  -
  -import java.lang.reflect.Field;
  -
  -/**
  - * This is a dedicated XML-element wrapper around an arbitrary Java field. This 
wrapper
  - * must be provided with a fieldname, a Java class to which this field belongs, and
  - * an appropriate type into which the field value can be serialised to and can be 
deserialised
  - * from.
  - */
  -
  -public class FieldElement extends Element {
  -
  -  /** the associated field */
  -  private Field associatedField;
  -
  -  /** the name of the associatedField */
  -  private String fieldName;
  -
  -  /** the name of the associatedClass, i.e., the one carrying the field */
  -  private Class associatedClass;
  -
  -  /**
  -   * constructor is empty, we try to
  -   * build the field lazily when all initialisation
  -   * has been done
  -   */
  -
  -  public FieldElement() {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+"()\n");
  -
  -  }
  -
  -  /** access the associated class */
  -  public Class getAssociatedClass() {
  -    return associatedClass;
  -  }
  -
  -  /** sets the associated class */
  -  public void setAssociatedClass(Class forClass) {
  -    associatedClass=forClass;
  -  }
  -
  -  /** access the fieldname*/
  -  public String getFieldName() {
  -    return fieldName;
  -  }
  -
  -  /** set the field name */
  -  public void setFieldName(String fieldName) {
  -    this.fieldName=fieldName;
  -  }
  -
  -  /**
  -   * accesses the field as an element. Lazily refreshes the internal reflection 
information
  -   * and (if successful) uses the field.get method to retrieve the (single) value 
that is then
  -   * handed to the associated type.
  -   */
  -
  -  public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  -    throws ElementException {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+".getElementContents("+object+","+isNew+","+
  -        references+")\n");
  -
  -    if(isNew && object!=null) {
  -      if(associatedField==null) {
  -        try{
  -          initialize();
  -        } catch(NoSuchFieldException e) {
  -          throw new ElementException();
  -        } catch(IllegalAccessException e) {
  -          throw new ElementException();
  -        }
  -      }
  -
  -      try{
  -        return new Object[] {associatedField.get(object)};
  -      } catch(IllegalAccessException e) {
  -        throw new ElementException();
  -      }
  -
  -    } else
  -      return null;
  -  }
  -
  -
  -  /**
  -   * addElementContent simply sets the value of the field. Lazily refreshes the 
internal
  -   * reflection information. Uses the field.set method.
  -   */
  -
  -  public Object addElementContent(Object object, Object value, Map references, Map 
nameSpaces) throws ElementException {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      
Environment.out.print(toString()+".addElementContent("+object+","+value+","+references+")\n");
  -
  -    if(object!=null) {
  -      if(associatedField==null) {
  -       try{
  -          initialize();
  -        } catch(NoSuchFieldException e) {
  -          throw new ElementException();
  -        } catch(IllegalAccessException e) {
  -          throw new ElementException();
  -        }
  -      }
  -
  -      try{
  -        associatedField.set(object,value);
  -      } catch(IllegalAccessException e) {
  -        throw new ElementException();
  -      }
  -    }
  -
  -    return object;
  -  }
  -
  -
  -  /**
  -   * a private initializer that refreshes the internal representation when
  -   * switching from configuration-time to runtime. Builds up the derived
  -   * reflection information only once
  -   */
  -
  -  private void initialize() throws NoSuchFieldException, IllegalAccessException {
  -    // assure that the class has been set
  -    if(getAssociatedClass()!=null) {
  -        Field testField=
  -          getAssociatedClass().
  -            getDeclaredField(fieldName);
  -        testField.setAccessible(true);
  -        associatedField=testField;
  -    }
  -  }
  -
  -} // FieldElement
  -
  -/*
  +/*
  + *   $Id: FieldElement.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 by infor: business solutions AG
  + *   Hauerstra�e 12, D-66299 Friedrichsthal, Germany
  + *   All rights reserved.
  + *
  + *   This software is the confidential and proprietary information
  + *   of infor: business solutions AG ("Confidential Information").  You
  + *   shall not disclose such Confidential Information and shall use
  + *   it only in accordance with the terms of the license agreement
  + *   you entered into with infor AG.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Element;
  +import org.zoap.xml.ElementException;
  +
  +import java.util.Properties;
  +import java.util.Map;
  +
  +import java.lang.reflect.Field;
  +
  +/**
  + * This is a dedicated XML-element wrapper around an arbitrary Java field. This 
wrapper
  + * must be provided with a fieldname, a Java class to which this field belongs, and
  + * an appropriate type into which the field value can be serialised to and can be 
deserialised
  + * from.
  + */
  +
  +public class FieldElement extends Element {
  +
  +  /** the associated field */
  +  private Field associatedField;
  +
  +  /** the name of the associatedField */
  +  private String fieldName;
  +
  +  /** the name of the associatedClass, i.e., the one carrying the field */
  +  private Class associatedClass;
  +
  +  /**
  +   * constructor is empty, we try to
  +   * build the field lazily when all initialisation
  +   * has been done
  +   */
  +
  +  public FieldElement() {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+"()\n");
  +
  +  }
  +
  +  /** access the associated class */
  +  public Class getAssociatedClass() {
  +    return associatedClass;
  +  }
  +
  +  /** sets the associated class */
  +  public void setAssociatedClass(Class forClass) {
  +    associatedClass=forClass;
  +  }
  +
  +  /** access the fieldname*/
  +  public String getFieldName() {
  +    return fieldName;
  +  }
  +
  +  /** set the field name */
  +  public void setFieldName(String fieldName) {
  +    this.fieldName=fieldName;
  +  }
  +
  +  public Field getAssociatedField() {
  +    return associatedField;
  +  }
  +
  +  /**
  +   * accesses the field as an element. Lazily refreshes the internal reflection 
information
  +   * and (if successful) uses the field.get method to retrieve the (single) value 
that is then
  +   * handed to the associated type.
  +   */
  +
  +  public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  +    throws ElementException {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+".getElementContents("+object+","+isNew+","+
  +        references+")\n");
  +
  +    if(isNew && object!=null) {
  +      if(associatedField==null) {
  +        try{
  +          initialize();
  +        } catch(NoSuchFieldException e) {
  +          throw new ElementException();
  +        } catch(IllegalAccessException e) {
  +          throw new ElementException();
  +        }
  +      }
  +
  +      try{
  +        return new Object[] {associatedField.get(object)};
  +      } catch(IllegalAccessException e) {
  +        throw new ElementException();
  +      }
  +
  +    } else
  +      return null;
  +  }
  +
  +
  +  /**
  +   * addElementContent simply sets the value of the field. Lazily refreshes the 
internal
  +   * reflection information. Uses the field.set method.
  +   */
  +
  +  public Object addElementContent(Object object, Object value, Map references, Map 
nameSpaces) throws ElementException {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      
Environment.out.print(toString()+".addElementContent("+object+","+value+","+references+")\n");
  +
  +    if(object!=null) {
  +      if(associatedField==null) {
  +       try{
  +          initialize();
  +        } catch(NoSuchFieldException e) {
  +          throw new ElementException();
  +        } catch(IllegalAccessException e) {
  +          throw new ElementException();
  +        }
  +      }
  +
  +      try{
  +        associatedField.set(object,value);
  +      } catch(IllegalAccessException e) {
  +        throw new ElementException();
  +      }
  +    }
  +
  +    return object;
  +  }
  +
  +
  +  /**
  +   * a private initializer that refreshes the internal representation when
  +   * switching from configuration-time to runtime. Builds up the derived
  +   * reflection information only once
  +   */
  +
  +  protected void initialize() throws NoSuchFieldException, IllegalAccessException {
  +    // assure that the class has been set
  +    if(getAssociatedClass()!=null) {
  +        Field testField=
  +          getAssociatedClass().
  +            getDeclaredField(fieldName);
  +        testField.setAccessible(true);
  +        associatedField=testField;
  +    }
  +  }
  +
  +} // FieldElement
  +
  +/*
    *   $Log: FieldElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:08  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  jung
  - *   package renaming, most of the zoap stuff now under org.zoap
  - *   util and http stay infor.ce, containerInvoker etc move to org.jboss
  - *
  - *   changed the makefile, adopted most of the licenses
  - *
  - *   Revision 1.2  2000/07/06 16:55:06  jung
  - *   moved the default binding caches in order to make apartments
  - *   with different versions of the same class possible.
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:38  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:08:08  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  jung
  + *   package renaming, most of the zoap stuff now under org.zoap
  + *   util and http stay infor.ce, containerInvoker etc move to org.jboss
  + *
  + *   changed the makefile, adopted most of the licenses
  + *
  + *   Revision 1.2  2000/07/06 16:55:06  jung
  + *   moved the default binding caches in order to make apartments
  + *   with different versions of the same class possible.
  + *
  + *   Revision 1.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +82 -81    zoap/src/org/zoap/xml/meta/builtin/FieldElementType.java
  
  Index: FieldElementType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/FieldElementType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FieldElementType.java     2000/08/10 21:08:08     1.1
  +++ FieldElementType.java     2000/12/04 12:36:38     1.2
  @@ -1,81 +1,82 @@
  -/*
  - *   $Id: FieldElementType.java,v 1.1 2000/08/10 21:08:08 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.ElementType;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class FieldElementType extends ComplexType {
  -
  -    private FieldElementType() {
  -        setTypeName("FieldElement");
  -        setAssociatedClass(FieldElement.class);
  -        setSuperType(ElementType.getElementType());
  -        // addAttribute(AssociatedClassAttribute.getAssociatedClassAttribute());
  -        addAttribute(FieldNameAttribute.getFieldNameAttribute());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    private static FieldElementType fieldElementType=new FieldElementType();
  -
  -    public static FieldElementType getFieldElementType() {
  -            return fieldElementType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: FieldElementType.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.ElementType;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class FieldElementType extends ComplexType {
  +
  +    private FieldElementType() {
  +        setTypeName("FieldElement");
  +        setAssociatedClass(FieldElement.class);
  +        setSuperType(ElementType.getElementType());
  +        // addAttribute(AssociatedClassAttribute.getAssociatedClassAttribute());
  +         addAttribute(ClassTypeAttribute.getClassTypeAttribute());
  +         addAttribute(FieldNameAttribute.getFieldNameAttribute());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    private static FieldElementType fieldElementType=new FieldElementType();
  +
  +    public static FieldElementType getFieldElementType() {
  +            return fieldElementType;
  +    }
  +
  +}
  
  
  
  1.2       +99 -99    zoap/src/org/zoap/xml/meta/builtin/FieldNameAttribute.java
  
  Index: FieldNameAttribute.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/FieldNameAttribute.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FieldNameAttribute.java   2000/08/10 21:08:09     1.1
  +++ FieldNameAttribute.java   2000/12/04 12:36:38     1.2
  @@ -1,99 +1,99 @@
  -/*
  - *   $Id: FieldNameAttribute.java,v 1.1 2000/08/10 21:08:09 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.StringType;
  -
  -import org.zoap.xml.Attribute;
  -import org.zoap.xml.AttributeException;
  -import org.zoap.xml.Appearance;
  -import org.zoap.xml.Environment;
  -
  -import java.util.Properties;
  -import java.util.Map;
  -
  -
  -/**
  - * Meta-Meta Attribute zoap:associatedClass that should set the associated class of 
a particular
  - * type
  - */
  -
  -public class FieldNameAttribute extends Attribute {
  -
  -  private FieldNameAttribute() {
  -    setAppearanceName("associatedField");
  -    setType(StringType.getStringType());
  -    setAppearanceSchema(ZoapSchema.getZoapSchema());
  -  }
  -
  -  // no output for now
  -  public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  -      return null;
  -  }
  -
  -  public Object setAttributeContent(Object target, Object value, Map references, 
Map nameSpaces)
  -    throws AttributeException {
  -
  -    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -      Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
  -        references+","+nameSpaces+")");
  -
  -    if(target instanceof FieldElement) {
  -        ((FieldElement) target).setFieldName((String) value);
  -    } else if(target instanceof FieldAttribute) {
  -        ((FieldAttribute) target).setFieldName((String) value);
  -    }
  -
  -    return target;
  -  }
  -
  -  private static FieldNameAttribute fieldNameAttribute=
  -    new FieldNameAttribute();
  -
  -  public static FieldNameAttribute getFieldNameAttribute() {
  -    return fieldNameAttribute;
  -  }
  -
  -}
  +/*
  + *   $Id: FieldNameAttribute.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.StringType;
  +
  +import org.zoap.xml.Attribute;
  +import org.zoap.xml.AttributeException;
  +import org.zoap.xml.Appearance;
  +import org.zoap.xml.Environment;
  +
  +import java.util.Properties;
  +import java.util.Map;
  +
  +
  +/**
  + * Meta-Meta Attribute zoap:associatedClass that should set the associated class of 
a particular
  + * type
  + */
  +
  +public class FieldNameAttribute extends Attribute {
  +
  +  private FieldNameAttribute() {
  +    setAppearanceName("associatedField");
  +    setType(StringType.getStringType());
  +    setAppearanceSchema(ZoapSchema.getZoapSchema());
  +  }
  +
  +  // no output for now
  +  public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  +      return null;
  +  }
  +
  +  public Object setAttributeContent(Object target, Object value, Map references, 
Map nameSpaces)
  +    throws AttributeException {
  +
  +    if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +      Environment.out.print(toString()+".setAttributeContent("+target+","+value+","+
  +        references+","+nameSpaces+")");
  +
  +    if(target instanceof FieldElement) {
  +        ((FieldElement) target).setFieldName((String) value);
  +    } else if(target instanceof FieldAttribute) {
  +        ((FieldAttribute) target).setFieldName((String) value);
  +    }
  +
  +    return target;
  +  }
  +
  +  private static FieldNameAttribute fieldNameAttribute=
  +    new FieldNameAttribute();
  +
  +  public static FieldNameAttribute getFieldNameAttribute() {
  +    return fieldNameAttribute;
  +  }
  +
  +}
  
  
  
  1.2       +112 -108  zoap/src/org/zoap/xml/meta/builtin/FloatElement.java
  
  Index: FloatElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/FloatElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FloatElement.java 2000/08/10 21:08:09     1.1
  +++ FloatElement.java 2000/12/04 12:36:38     1.2
  @@ -1,111 +1,121 @@
  -/*
  - *   $Id: FloatElement.java,v 1.1 2000/08/10 21:08:09 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.FloatType;
  -
  -import org.zoap.xml.Environment;
  -
  -/**
  - * XML wrapper around java.lang.Float Implemented as a singleton
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class FloatElement extends PrimitiveElement {
  -
  -    /** constructor cannot be faked anymore */
  -    private FloatElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+".()\n");
  -
  -      setType(FloatType.getFloatType());
  -      setAppearanceName("float");
  -    }
  -
  -    /**
  -     *  static reference, non-lazy since usage of this class is equivalent with
  -     *  instantiation
  -     */
  -
  -    private static FloatElement floatElement=new FloatElement();
  -
  -    /** global access */
  -    public static FloatElement getFloatElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(FloatElement.class.toString()+".getFloatElement()\n");
  -
  -      return floatElement;
  -    }
  -
  -}
  -
  -/*
  +/*
  + *   $Id: FloatElement.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.FloatType;
  +
  +import org.zoap.xml.Environment;
  +
  +/**
  + * XML wrapper around java.lang.Float Implemented as a singleton
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class FloatElement extends PrimitiveElement {
  +
  +    /** constructor cannot be faked anymore */
  +    private FloatElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+".()\n");
  +
  +      setType(FloatType.getFloatType());
  +      setAppearanceName("float");
  +    }
  +
  +    /**
  +     *  static reference, non-lazy since usage of this class is equivalent with
  +     *  instantiation
  +     */
  +
  +    private static FloatElement floatElement=new FloatElement();
  +
  +    /** global access */
  +    public static FloatElement getFloatElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(FloatElement.class.toString()+".getFloatElement()\n");
  +
  +      return floatElement;
  +    }
  +
  +}
  +
  +/*
    *   $Log: FloatElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:09  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  \ No newline at end of file
  + *   Revision 1.2  2000/12/04 12:36:38  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:08:09  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +111 -107  zoap/src/org/zoap/xml/meta/builtin/IntegerElement.java
  
  Index: IntegerElement.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/IntegerElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IntegerElement.java       2000/08/10 21:08:09     1.1
  +++ IntegerElement.java       2000/12/04 12:36:38     1.2
  @@ -1,110 +1,120 @@
  -/*
  - *   $Id: IntegerElement.java,v 1.1 2000/08/10 21:08:09 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.meta.IntegerType;
  -
  -/**
  - * XML wrapper around java.lang.Boolean. Implemented as a singleton
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class IntegerElement extends PrimitiveElement {
  -
  -    /** constructor cannot be faked anymore */
  -    private IntegerElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -        setType(IntegerType.getIntegerType());
  -        setAppearanceName("integer");
  -    }
  -
  -    /**
  -     *  static reference, non-lazy since usage of this class is equivalent with
  -     *  instantiation
  -     */
  -
  -    private static IntegerElement integerElement=new IntegerElement();
  -
  -    /** global access */
  -    public static IntegerElement getIntegerElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        
Environment.out.print(IntegerElement.class.toString()+".getIntegerElement()\n");
  -
  -      return integerElement;
  -    }
  -
  -}
  -
  -/*
  +/*
  + *   $Id: IntegerElement.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.meta.IntegerType;
  +
  +/**
  + * XML wrapper around java.lang.Boolean. Implemented as a singleton
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class IntegerElement extends PrimitiveElement {
  +
  +    /** constructor cannot be faked anymore */
  +    private IntegerElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +        setType(IntegerType.getIntegerType());
  +        setAppearanceName("integer");
  +    }
  +
  +    /**
  +     *  static reference, non-lazy since usage of this class is equivalent with
  +     *  instantiation
  +     */
  +
  +    private static IntegerElement integerElement=new IntegerElement();
  +
  +    /** global access */
  +    public static IntegerElement getIntegerElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        
Environment.out.print(IntegerElement.class.toString()+".getIntegerElement()\n");
  +
  +      return integerElement;
  +    }
  +
  +}
  +
  +/*
    *   $Log: IntegerElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:09  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  \ No newline at end of file
  + *   Revision 1.2  2000/12/04 12:36:38  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:08:09  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +113 -109  zoap/src/org/zoap/xml/meta/builtin/LongElement.java
  
  Index: LongElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/LongElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LongElement.java  2000/08/10 21:08:10     1.1
  +++ LongElement.java  2000/12/04 12:36:38     1.2
  @@ -1,112 +1,122 @@
  -/*
  - *   $Id: LongElement.java,v 1.1 2000/08/10 21:08:10 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.meta.LongType;
  -
  -
  -/**
  - * XML wrapper around java.lang.long. Implemented as a singleton
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class LongElement extends PrimitiveElement {
  -
  -    /** constructor cannot be faked anymore */
  -    private LongElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -        setType(LongType.getLongType());
  -        setAppearanceName("long");
  -    }
  -
  -    /**
  -     *  static reference, non-lazy since usage of this class is equivalent with
  -     *  instantiation
  -     */
  -
  -    private static LongElement longElement=new LongElement();
  -
  -    /** global access */
  -    public static LongElement getLongElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(LongElement.class.toString()+".getLongElement()\n");
  -
  -       return longElement;
  -    }
  -
  -
  -}
  -
  -/*
  +/*
  + *   $Id: LongElement.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.meta.LongType;
  +
  +
  +/**
  + * XML wrapper around java.lang.long. Implemented as a singleton
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class LongElement extends PrimitiveElement {
  +
  +    /** constructor cannot be faked anymore */
  +    private LongElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +        setType(LongType.getLongType());
  +        setAppearanceName("long");
  +    }
  +
  +    /**
  +     *  static reference, non-lazy since usage of this class is equivalent with
  +     *  instantiation
  +     */
  +
  +    private static LongElement longElement=new LongElement();
  +
  +    /** global access */
  +    public static LongElement getLongElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(LongElement.class.toString()+".getLongElement()\n");
  +
  +       return longElement;
  +    }
  +
  +
  +}
  +
  +/*
    *   $Log: LongElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:10  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  \ No newline at end of file
  + *   Revision 1.2  2000/12/04 12:36:38  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:08:10  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +133 -129  zoap/src/org/zoap/xml/meta/builtin/NameAttribute.java
  
  Index: NameAttribute.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/NameAttribute.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NameAttribute.java        2000/08/10 21:08:10     1.1
  +++ NameAttribute.java        2000/12/04 12:36:38     1.2
  @@ -1,132 +1,142 @@
  -/*
  - *   $Id: NameAttribute.java,v 1.1 2000/08/10 21:08:10 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.Attribute;
  -import org.zoap.xml.meta.IDType;
  -
  -import java.util.Properties;
  -import java.util.Map;
  -
  -/**
  - * A standard name attribute for serializable objects that enables to build 
references.
  - */
  -
  -public class NameAttribute extends Attribute {
  -
  -    private NameAttribute() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -      setAppearanceSchema(ZoapSchema.getZoapSchema());
  -      setAppearanceName("name");
  -      setType(IDType.getIDType());
  -    }
  -
  -    public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        
Environment.out.print(toString()+".getAttributeContent("+object+","+isNew+","+references+")\n");
  -
  -      if(isNew && references!=null )
  -        return references.get("XmlObjectWriter");
  -      else
  -        return null;
  -    }
  -
  -    public Object setAttributeContent(Object object, Object value, Map references, 
Map nameSpaces) {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        
Environment.out.print(toString()+".setAttributeContent("+object+","+value+","+references+")\n");
  -
  -      if(references.containsKey(value))
  -        return references.get(value);
  -      else {
  -        if(object!=null) {
  -          references.put(value,object);
  -        }
  -      }
  -
  -      return object;
  -    }
  -
  -    private static NameAttribute nameAttribute=new NameAttribute();
  -
  -    public static NameAttribute getNameAttribute() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        
Environment.out.print(NameAttribute.class.toString()+".getNameAttribute()\n");
  -
  -      return nameAttribute;
  -    }
  -
  -}
  -
  -/*
  +/*
  + *   $Id: NameAttribute.java,v 1.2 2000/12/04 12:36:38 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.Attribute;
  +import org.zoap.xml.meta.IDType;
  +
  +import java.util.Properties;
  +import java.util.Map;
  +
  +/**
  + * A standard name attribute for serializable objects that enables to build 
references.
  + */
  +
  +public class NameAttribute extends Attribute {
  +
  +    private NameAttribute() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +      setAppearanceSchema(ZoapSchema.getZoapSchema());
  +      setAppearanceName("name");
  +      setType(IDType.getIDType());
  +    }
  +
  +    public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        
Environment.out.print(toString()+".getAttributeContent("+object+","+isNew+","+references+")\n");
  +
  +      if(isNew && references!=null )
  +        return references.get("XmlObjectWriter");
  +      else
  +        return null;
  +    }
  +
  +    public Object setAttributeContent(Object object, Object value, Map references, 
Map nameSpaces) {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        
Environment.out.print(toString()+".setAttributeContent("+object+","+value+","+references+")\n");
  +
  +      if(references.containsKey(value))
  +        return references.get(value);
  +      else {
  +        if(object!=null) {
  +          references.put(value,object);
  +        }
  +      }
  +
  +      return object;
  +    }
  +
  +    private static NameAttribute nameAttribute=new NameAttribute();
  +
  +    public static NameAttribute getNameAttribute() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        
Environment.out.print(NameAttribute.class.toString()+".getNameAttribute()\n");
  +
  +      return nameAttribute;
  +    }
  +
  +}
  +
  +/*
    *   $Log: NameAttribute.java,v $
  - *   Revision 1.1  2000/08/10 21:08:10  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:38  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:08:10  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +85 -85    zoap/src/org/zoap/xml/meta/builtin/NameAttributeType.java
  
  Index: NameAttributeType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/NameAttributeType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NameAttributeType.java    2000/08/10 21:08:10     1.1
  +++ NameAttributeType.java    2000/12/04 12:36:39     1.2
  @@ -1,85 +1,85 @@
  -/*
  - *   $Id: NameAttributeType.java,v 1.1 2000/08/10 21:08:10 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.AttributeType;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -import java.util.Map;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class NameAttributeType extends ComplexType {
  -
  -    private NameAttributeType() {
  -        setTypeName("NameAttribute");
  -        setAssociatedClass(NameAttribute.class);
  -        setSuperType(AttributeType.getAttributeType());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    public Object newInstance(Map attributes, Map references, Map nameSpaces) {
  -      return NameAttribute.getNameAttribute();
  -    }
  -
  -    private static NameAttributeType nameAttributeType=new NameAttributeType();
  -
  -    public static NameAttributeType getNameAttributeType() {
  -            return nameAttributeType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: NameAttributeType.java,v 1.2 2000/12/04 12:36:39 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.AttributeType;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +import java.util.Map;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class NameAttributeType extends ComplexType {
  +
  +    private NameAttributeType() {
  +        setTypeName("NameAttribute");
  +        setAssociatedClass(NameAttribute.class);
  +        setSuperType(AttributeType.getAttributeType());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    public Object newInstance(Map attributes, Map references, Map nameSpaces) {
  +      return NameAttribute.getNameAttribute();
  +    }
  +
  +    private static NameAttributeType nameAttributeType=new NameAttributeType();
  +
  +    public static NameAttributeType getNameAttributeType() {
  +            return nameAttributeType;
  +    }
  +
  +}
  
  
  
  1.2       +183 -179  zoap/src/org/zoap/xml/meta/builtin/PrimitiveElement.java
  
  Index: PrimitiveElement.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/PrimitiveElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PrimitiveElement.java     2000/08/10 21:08:11     1.1
  +++ PrimitiveElement.java     2000/12/04 12:36:39     1.2
  @@ -1,182 +1,192 @@
  -/*
  - *   $Id: PrimitiveElement.java,v 1.1 2000/08/10 21:08:11 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Element;
  -import org.zoap.xml.ElementException;
  -import org.zoap.xml.Type;
  -import org.zoap.xml.TypeException;
  -import org.zoap.xml.Environment;
  -
  -import java.util.Map;
  -import java.util.Properties;
  -import java.util.Collection;
  -
  -import java.lang.reflect.InvocationTargetException;
  -
  -/**
  - * XML element around most primitive Java classes that allows them to appear
  - * as element containers.
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public abstract class PrimitiveElement extends Element {
  -
  -   /** empty constructor */
  -   public PrimitiveElement() {
  -   }
  -
  -   /** refers to Zoap-Schema, is done via overriding get in order to avoid cyclic 
dependencies
  -    * @link association
  -    * @label type
  -    */
  -   /*#ZoapSchema appearanceSchema;*/
  -   public Schema getAppearanceSchema() {
  -    return  ZoapSchema.getZoapSchema();
  -   }
  -
  -   /**
  -    *  access the elements inside the class container, i.e., just
  -    *  reproduce objects that come into
  -    */
  -
  -    public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  -      throws ElementException {
  -
  -      if(object!=null) {
  -        if(Collection.class.isInstance(object)) {
  -          return ((Collection) object).toArray();
  -        } else if(object.getClass().isArray()) {
  -          return (Object[]) object;
  -        } else {
  -          return new Object[] {object};
  -        }
  -      } else {
  -        return null;
  -      }
  -    }
  -
  -    /**
  -     * give back the value that you found inside, maybe by inserting into a 
collection
  -     * or an array ....
  -     */
  -
  -    public Object addElementContent(Object object, Object value, Map references, 
Map nameSpaces) {
  -
  -      if(object!=null) {
  -
  -        if(object.getClass().isArray()) {
  -
  -          // read out the length of the former array
  -          int length=java.lang.reflect.Array.getLength(object);
  -
  -          // now create a new array that increases the size by one
  -          Object newArray=
  -            
java.lang.reflect.Array.newInstance(object.getClass().getComponentType(),
  -              length+1);
  -
  -          // copy the content
  -          System.arraycopy(object,0,newArray,0,length);
  -
  -          // place the additional value behind
  -          java.lang.reflect.Array.set(newArray,length,value);
  -
  -          // and return the stuff
  -          return newArray;
  -
  -      } else if(Collection.class.isInstance(object)) {
  -
  -        ((Collection) object).add(value);
  -
  -        return object;
  -
  -      } else {
  -        return value;
  -      }
  -    } else
  -      return null;
  -  } // addElementContent
  -
  -}
  -
  -/*
  +/*
  + *   $Id: PrimitiveElement.java,v 1.2 2000/12/04 12:36:39 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Element;
  +import org.zoap.xml.ElementException;
  +import org.zoap.xml.Type;
  +import org.zoap.xml.TypeException;
  +import org.zoap.xml.Environment;
  +
  +import java.util.Map;
  +import java.util.Properties;
  +import java.util.Collection;
  +
  +import java.lang.reflect.InvocationTargetException;
  +
  +/**
  + * XML element around most primitive Java classes that allows them to appear
  + * as element containers.
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public abstract class PrimitiveElement extends Element {
  +
  +   /** empty constructor */
  +   public PrimitiveElement() {
  +   }
  +
  +   /** refers to Zoap-Schema, is done via overriding get in order to avoid cyclic 
dependencies
  +    * @link association
  +    * @label type
  +    */
  +   /*#ZoapSchema appearanceSchema;*/
  +   public Schema getAppearanceSchema() {
  +    return  ZoapSchema.getZoapSchema();
  +   }
  +
  +   /**
  +    *  access the elements inside the class container, i.e., just
  +    *  reproduce objects that come into
  +    */
  +
  +    public Object[] getElementContents(Object object, boolean isNew, Properties 
references)
  +      throws ElementException {
  +
  +      if(object!=null) {
  +        if(Collection.class.isInstance(object)) {
  +          return ((Collection) object).toArray();
  +        } else if(object.getClass().isArray()) {
  +          return (Object[]) object;
  +        } else {
  +          return new Object[] {object};
  +        }
  +      } else {
  +        return null;
  +      }
  +    }
  +
  +    /**
  +     * give back the value that you found inside, maybe by inserting into a 
collection
  +     * or an array ....
  +     */
  +
  +    public Object addElementContent(Object object, Object value, Map references, 
Map nameSpaces) {
  +
  +      if(object!=null) {
  +
  +        if(object.getClass().isArray()) {
  +
  +          // read out the length of the former array
  +          int length=java.lang.reflect.Array.getLength(object);
  +
  +          // now create a new array that increases the size by one
  +          Object newArray=
  +            
java.lang.reflect.Array.newInstance(object.getClass().getComponentType(),
  +              length+1);
  +
  +          // copy the content
  +          System.arraycopy(object,0,newArray,0,length);
  +
  +          // place the additional value behind
  +          java.lang.reflect.Array.set(newArray,length,value);
  +
  +          // and return the stuff
  +          return newArray;
  +
  +      } else if(Collection.class.isInstance(object)) {
  +
  +        ((Collection) object).add(value);
  +
  +        return object;
  +
  +      } else {
  +        return value;
  +      }
  +    } else
  +      return null;
  +  } // addElementContent
  +
  +}
  +
  +/*
    *   $Log: PrimitiveElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:11  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.2  2000/07/20 14:35:27  jung
  - *   some refactoring inside infor:xml
  - *
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1  2000/07/11 08:08:35  jung
  - *   added functionality to store retrieve a part of a types elements
  - *   within "ignored" strings. Useful for writing generic handlers that
  - *   just process a part of the XML and transfer the rest.
  - *
  - *   Revision 1.2  2000/07/06 16:55:06  jung
  - *   moved the default binding caches in order to make apartments
  - *   with different versions of the same class possible.
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:39  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:08:11  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.2  2000/07/20 14:35:27  jung
  + *   some refactoring inside infor:xml
  + *
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1  2000/07/11 08:08:35  jung
  + *   added functionality to store retrieve a part of a types elements
  + *   within "ignored" strings. Useful for writing generic handlers that
  + *   just process a part of the XML and transfer the rest.
  + *
  + *   Revision 1.2  2000/07/06 16:55:06  jung
  + *   moved the default binding caches in order to make apartments
  + *   with different versions of the same class possible.
  + *
  + *   Revision 1.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +132 -128  zoap/src/org/zoap/xml/meta/builtin/RefAttribute.java
  
  Index: RefAttribute.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/RefAttribute.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RefAttribute.java 2000/08/10 21:08:11     1.1
  +++ RefAttribute.java 2000/12/04 12:36:39     1.2
  @@ -1,131 +1,141 @@
  -/*
  - *   $Id: RefAttribute.java,v 1.1 2000/08/10 21:08:11 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.Environment;
  -import org.zoap.xml.Attribute;
  -import org.zoap.xml.meta.IDRefType;
  -
  -import java.util.Properties;
  -import java.util.Map;
  -
  -/**
  - * A standard ref attribute for serializable objects that enables to build 
references.
  - */
  -
  -public class RefAttribute extends Attribute {
  -
  -    /** constructor */
  -    private RefAttribute() {
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -      setAppearanceSchema(ZoapSchema.getZoapSchema());
  -      setAppearanceName("ref");
  -      setType(IDRefType.getIDRefType());
  -    }
  -
  -    public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        
Environment.out.print(toString()+".getAttributeContent("+object+","+isNew+","+references+")\n");
  -
  -        if(!isNew && references!=null)
  -            return references.get("XmlObjectWriter");
  -        else
  -            return null;
  -    }
  -
  -    public Object setAttributeContent(Object object, Object value, Map references, 
Map nameSpaces) {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        
Environment.out.print(toString()+".setAttributeContent("+object+","+value+","+references+")\n");
  -
  -      if(references.containsKey(value))
  -        return references.get(value);
  -      else {
  -        if(object!=null) {
  -          references.put(value,object);
  -        }
  -      }
  -
  -      return object;
  -    }
  -
  -    private static RefAttribute refAttribute=new RefAttribute();
  -
  -    public static RefAttribute getRefAttribute() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(RefAttribute.class.toString()+".getRefAttribute()\n");
  -
  -      return refAttribute;
  -    }
  -}
  -
  -/*
  +/*
  + *   $Id: RefAttribute.java,v 1.2 2000/12/04 12:36:39 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.Environment;
  +import org.zoap.xml.Attribute;
  +import org.zoap.xml.meta.IDRefType;
  +
  +import java.util.Properties;
  +import java.util.Map;
  +
  +/**
  + * A standard ref attribute for serializable objects that enables to build 
references.
  + */
  +
  +public class RefAttribute extends Attribute {
  +
  +    /** constructor */
  +    private RefAttribute() {
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +      setAppearanceSchema(ZoapSchema.getZoapSchema());
  +      setAppearanceName("ref");
  +      setType(IDRefType.getIDRefType());
  +    }
  +
  +    public Object getAttributeContent(Object object, boolean isNew, Properties 
references) {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        
Environment.out.print(toString()+".getAttributeContent("+object+","+isNew+","+references+")\n");
  +
  +        if(!isNew && references!=null)
  +            return references.get("XmlObjectWriter");
  +        else
  +            return null;
  +    }
  +
  +    public Object setAttributeContent(Object object, Object value, Map references, 
Map nameSpaces) {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        
Environment.out.print(toString()+".setAttributeContent("+object+","+value+","+references+")\n");
  +
  +      if(references.containsKey(value))
  +        return references.get(value);
  +      else {
  +        if(object!=null) {
  +          references.put(value,object);
  +        }
  +      }
  +
  +      return object;
  +    }
  +
  +    private static RefAttribute refAttribute=new RefAttribute();
  +
  +    public static RefAttribute getRefAttribute() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(RefAttribute.class.toString()+".getRefAttribute()\n");
  +
  +      return refAttribute;
  +    }
  +}
  +
  +/*
    *   $Log: RefAttribute.java,v $
  - *   Revision 1.1  2000/08/10 21:08:11  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  + *   Revision 1.2  2000/12/04 12:36:39  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:08:11  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +85 -85    zoap/src/org/zoap/xml/meta/builtin/RefAttributeType.java
  
  Index: RefAttributeType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/RefAttributeType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RefAttributeType.java     2000/08/10 21:08:11     1.1
  +++ RefAttributeType.java     2000/12/04 12:36:39     1.2
  @@ -1,85 +1,85 @@
  -/*
  - *   $Id: RefAttributeType.java,v 1.1 2000/08/10 21:08:11 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.AttributeType;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -import java.util.Map;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class RefAttributeType extends ComplexType {
  -
  -    private RefAttributeType() {
  -        setTypeName("RefAttribute");
  -        setAssociatedClass(RefAttribute.class);
  -        setSuperType(AttributeType.getAttributeType());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    public Object newInstance(Map attributes, Map references, Map nameSpaces) {
  -      return RefAttribute.getRefAttribute();
  -    }
  -
  -    private static RefAttributeType refAttributeType=new RefAttributeType();
  -
  -    public static RefAttributeType getRefAttributeType() {
  -            return refAttributeType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: RefAttributeType.java,v 1.2 2000/12/04 12:36:39 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.AttributeType;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +import java.util.Map;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class RefAttributeType extends ComplexType {
  +
  +    private RefAttributeType() {
  +        setTypeName("RefAttribute");
  +        setAssociatedClass(RefAttribute.class);
  +        setSuperType(AttributeType.getAttributeType());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    public Object newInstance(Map attributes, Map references, Map nameSpaces) {
  +      return RefAttribute.getRefAttribute();
  +    }
  +
  +    private static RefAttributeType refAttributeType=new RefAttributeType();
  +
  +    public static RefAttributeType getRefAttributeType() {
  +            return refAttributeType;
  +    }
  +
  +}
  
  
  
  1.2       +113 -109  zoap/src/org/zoap/xml/meta/builtin/ShortElement.java
  
  Index: ShortElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ShortElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ShortElement.java 2000/08/10 21:08:12     1.1
  +++ ShortElement.java 2000/12/04 12:36:39     1.2
  @@ -1,112 +1,122 @@
  -/*
  - *   $Id: ShortElement.java,v 1.1 2000/08/10 21:08:12 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.ShortType;
  -
  -import org.zoap.xml.Environment;
  -
  -/**
  - * XML wrapper around java.lang.Short. Implemented as a singleton
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class ShortElement extends PrimitiveElement {
  -
  -    /** constructor cannot be faked anymore */
  -    private ShortElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -        setType(ShortType.getShortType());
  -        setAppearanceName("short");
  -    }
  -
  -    /**
  -     *  static reference, non-lazy since usage of this class is equivalent with
  -     *  instantiation
  -     */
  -
  -    private static ShortElement shortElement=new ShortElement();
  -
  -    /** global access */
  -    public static ShortElement getShortElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(ShortElement.class.toString()+".getShortElement()\n");
  -
  -      return shortElement;
  -    }
  -
  -
  -}
  -
  -/*
  +/*
  + *   $Id: ShortElement.java,v 1.2 2000/12/04 12:36:39 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.ShortType;
  +
  +import org.zoap.xml.Environment;
  +
  +/**
  + * XML wrapper around java.lang.Short. Implemented as a singleton
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class ShortElement extends PrimitiveElement {
  +
  +    /** constructor cannot be faked anymore */
  +    private ShortElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +        setType(ShortType.getShortType());
  +        setAppearanceName("short");
  +    }
  +
  +    /**
  +     *  static reference, non-lazy since usage of this class is equivalent with
  +     *  instantiation
  +     */
  +
  +    private static ShortElement shortElement=new ShortElement();
  +
  +    /** global access */
  +    public static ShortElement getShortElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(ShortElement.class.toString()+".getShortElement()\n");
  +
  +      return shortElement;
  +    }
  +
  +
  +}
  +
  +/*
    *   $Log: ShortElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:12  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  \ No newline at end of file
  + *   Revision 1.2  2000/12/04 12:36:39  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:08:12  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  1.2       +78 -78    zoap/src/org/zoap/xml/meta/builtin/SimpleTypeType.java
  
  Index: SimpleTypeType.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/SimpleTypeType.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleTypeType.java       2000/08/10 21:08:12     1.1
  +++ SimpleTypeType.java       2000/12/04 12:36:39     1.2
  @@ -1,78 +1,78 @@
  -/*
  - *   $Id: SimpleTypeType.java,v 1.1 2000/08/10 21:08:12 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.ComplexType;
  -import org.zoap.xml.SimpleType;
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Environment;
  -
  -/**
  - *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  - */
  -
  -public class SimpleTypeType extends ComplexType {
  -
  -    private SimpleTypeType() {
  -        setTypeName("SimpleType");
  -        setAssociatedClass(SimpleType.class);
  -        addAttribute(AssociatedClassAttribute.getAssociatedClassAttribute());
  -    }
  -
  -    public Schema getTypeSchema() {
  -        return ZoapSchema.getZoapSchema();
  -    }
  -
  -    public boolean isReferencable() {
  -      return true;
  -    }
  -
  -    private static SimpleTypeType simpleTypeType=new SimpleTypeType();
  -
  -    public static SimpleTypeType getSimpleTypeType() {
  -            return simpleTypeType;
  -    }
  -
  -}
  \ No newline at end of file
  +/*
  + *   $Id: SimpleTypeType.java,v 1.2 2000/12/04 12:36:39 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.ComplexType;
  +import org.zoap.xml.SimpleType;
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Environment;
  +
  +/**
  + *  Meta-Meta Type that describes the structure of xsd:complexType appearances.
  + */
  +
  +public class SimpleTypeType extends ComplexType {
  +
  +    private SimpleTypeType() {
  +        setTypeName("SimpleType");
  +        setAssociatedClass(SimpleType.class);
  +        addAttribute(AssociatedClassAttribute.getAssociatedClassAttribute());
  +    }
  +
  +    public Schema getTypeSchema() {
  +        return ZoapSchema.getZoapSchema();
  +    }
  +
  +    public boolean isReferencable() {
  +      return true;
  +    }
  +
  +    private static SimpleTypeType simpleTypeType=new SimpleTypeType();
  +
  +    public static SimpleTypeType getSimpleTypeType() {
  +            return simpleTypeType;
  +    }
  +
  +}
  
  
  
  1.2       +113 -109  zoap/src/org/zoap/xml/meta/builtin/StringElement.java
  
  Index: StringElement.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/StringElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StringElement.java        2000/08/10 21:08:12     1.1
  +++ StringElement.java        2000/12/04 12:36:39     1.2
  @@ -1,112 +1,122 @@
  -/*
  - *   $Id: StringElement.java,v 1.1 2000/08/10 21:08:12 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -import org.zoap.xml.meta.StringType;
  -
  -import org.zoap.xml.Environment;
  -
  -/**
  - * XML wrapper around java.lang.String. Implemented as a singleton
  - * <br>
  - * @author $Author: jung $
  - * @version $Revision: 1.1 $
  - */
  -
  -public class StringElement extends PrimitiveElement {
  -
  -    /** constructor cannot be faked anymore */
  -    private StringElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -        setType(StringType.getStringType());
  -        setAppearanceName("string");
  -    }
  -
  -    /**
  -     *  static reference, non-lazy since usage of this class is equivalent with
  -     *  instantiation
  -     */
  -
  -    private static StringElement stringElement=new StringElement();
  -
  -    /** global access */
  -    public static StringElement getStringElement() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        
Environment.out.print(StringElement.class.toString()+".getStringElement()\n");
  -
  -       return stringElement;
  -    }
  -
  -
  -}
  -
  -/*
  +/*
  + *   $Id: StringElement.java,v 1.2 2000/12/04 12:36:39 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +import org.zoap.xml.meta.StringType;
  +
  +import org.zoap.xml.Environment;
  +
  +/**
  + * XML wrapper around java.lang.String. Implemented as a singleton
  + * <br>
  + * @author $Author: jung $
  + * @version $Revision: 1.2 $
  + */
  +
  +public class StringElement extends PrimitiveElement {
  +
  +    /** constructor cannot be faked anymore */
  +    private StringElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +        setType(StringType.getStringType());
  +        setAppearanceName("string");
  +    }
  +
  +    /**
  +     *  static reference, non-lazy since usage of this class is equivalent with
  +     *  instantiation
  +     */
  +
  +    private static StringElement stringElement=new StringElement();
  +
  +    /** global access */
  +    public static StringElement getStringElement() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        
Environment.out.print(StringElement.class.toString()+".getStringElement()\n");
  +
  +       return stringElement;
  +    }
  +
  +
  +}
  +
  +/*
    *   $Log: StringElement.java,v $
  - *   Revision 1.1  2000/08/10 21:08:12  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  \ No newline at end of file
  + *   Revision 1.2  2000/12/04 12:36:39  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:08:12  jung
  + *   Initial import.
  + *   
  + *   
  + *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  + *   close to beta stadium. Meta-Data import now works.
  + *   
  + *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  + *   refactored package and meta-model
  + *
  + *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  + *   Import of a pre beta version of ZOAP source with a new directory structure,
  + *   ant-based make, apache-kind of license, etc.
  + *
  + *   jars are coming later because of cvs-history reasons.
  + *
  + */
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.2       +117 -135  zoap/src/org/zoap/xml/meta/builtin/ZoapSchema.java
  
  Index: ZoapSchema.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/ZoapSchema.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ZoapSchema.java   2000/08/10 21:08:13     1.1
  +++ ZoapSchema.java   2000/12/04 12:36:39     1.2
  @@ -1,138 +1,117 @@
  -/*
  - *   $Id: ZoapSchema.java,v 1.1 2000/08/10 21:08:13 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - */
  -
  -package org.zoap.xml.meta.builtin;
  -
  -
  -import org.zoap.xml.Schema;
  -import org.zoap.xml.Element;
  -import org.zoap.xml.Type;
  -import org.zoap.xml.Environment;
  -
  -import de.infor.ce.util.URN;
  -
  -/**
  - * The schema "http://xml.zoap.org/" extends XMLSchema with useful
  - * types, elements, and attributes related to infor:xml and its meta-model.
  - */
  -
  -public class ZoapSchema extends Schema {
  -
  -    /**
  -     * its a singleton so has a private accessor. registers character type and 
additional
  -     * elements.
  -     */
  -
  -    private ZoapSchema() {
  -
  -      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  -        Environment.out.print(toString()+"()\n");
  -
  -      setUrn(Environment.INTERNAL_URN);
  -
  -    }
  -
  -
  -    /**
  -     * private reference to singleton. Class use means singleton use, so
  -     * it non-lazy.
  -     */
  -
  -    private static ZoapSchema zoapSchema=new ZoapSchema();
  -
  -    static{
  -      zoapSchema.addType(CharacterType.getCharacterType());
  -      zoapSchema.addType(ComplexTypeType.getComplexTypeType());
  -      zoapSchema.addType(SimpleTypeType.getSimpleTypeType());
  -      zoapSchema.addType(CollectionTypeType.getCollectionTypeType());
  -      zoapSchema.addType(CollectionElementType.getCollectionElementType());
  -      zoapSchema.addType(FieldAttributeType.getFieldAttributeType());
  -      zoapSchema.addType(FieldElementType.getFieldElementType());
  -      zoapSchema.addType(ClassTypeType.getClassTypeType());
  -      zoapSchema.addType(ClassElementType.getClassElementType());
  -      zoapSchema.addType(NameAttributeType.getNameAttributeType());
  -      zoapSchema.addType(RefAttributeType.getRefAttributeType());
  -      zoapSchema.addElement(BooleanElement.getBooleanElement());
  -      zoapSchema.addElement(ByteElement.getByteElement());
  -      zoapSchema.addElement(CharacterElement.getCharacterElement());
  -      zoapSchema.addElement(DoubleElement.getDoubleElement());
  -      zoapSchema.addElement(FloatElement.getFloatElement());
  -      zoapSchema.addElement(IntegerElement.getIntegerElement());
  -      zoapSchema.addElement(LongElement.getLongElement());
  -      zoapSchema.addElement(ShortElement.getShortElement());
  -      zoapSchema.addElement(StringElement.getStringElement());
  -    }
  -
  -    /**
  -     * public accessor to singleton
  -     */
  -    public static ZoapSchema getZoapSchema() {
  -         return zoapSchema;
  -    }
  -}
  -
  -/*
  - *   $Log: ZoapSchema.java,v $
  - *   Revision 1.1  2000/08/10 21:08:13  jung
  - *   Initial revision
  - *   
  - *   Revision 1.1.2.1  2000/08/04 17:20:20  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 12:46:19  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:29  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  +/*
  + *   $Id: ZoapSchema.java,v 1.2 2000/12/04 12:36:39 jung Exp $
  + *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  + *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + *   License Statement
  + *
  + *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  + *   modification, are permitted provided that the following conditions are met:
  + *
  + *   1.      Redistributions of source code must retain copyright statements and 
notices.
  + *           Redistributions must also contain a copy of this document.
  + *
  + *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  + *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  + *           with the distribution.
  + *
  + *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  + *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  + *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  + *           if and wherever such third-party acknowledgments normally appear.
  + *
  + *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  + *           Software without prior written permission of infor: business solutions 
AG.
  + *           For written permission, please contact [EMAIL PROTECTED]
  + *
  + *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  + *           in their names without prior written permission of infor: business 
solutions AG. infor
  + *           is a registered trademark of infor:business solutions AG.
  + *
  + *   Disclaimer
  + *
  + *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  + *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  + *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  + *
  + *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  + *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  + *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  + *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  + *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  + *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + */
  +
  +package org.zoap.xml.meta.builtin;
  +
  +
  +import org.zoap.xml.Schema;
  +import org.zoap.xml.Element;
  +import org.zoap.xml.Type;
  +import org.zoap.xml.Environment;
  +
  +import de.infor.ce.util.URN;
  +
  +/**
  + * The schema "http://xml.zoap.org/" extends XMLSchema with useful
  + * types, elements, and attributes related to infor:xml and its meta-model.
  + */
  +
  +public class ZoapSchema extends Schema {
  +
  +    /**
  +     * its a singleton so has a private accessor. registers character type and 
additional
  +     * elements.
  +     */
  +
  +    private ZoapSchema() {
  +
  +      if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
  +        Environment.out.print(toString()+"()\n");
  +
  +      setUrn(Environment.INTERNAL_URN);
  +
  +    }
  +
  +
  +    /**
  +     * private reference to singleton. Class use means singleton use, so
  +     * it non-lazy.
  +     */
  +
  +    private static ZoapSchema zoapSchema=new ZoapSchema();
  +
  +    static{
  +      zoapSchema.addType(CharacterType.getCharacterType());
  +      zoapSchema.addType(DateType.getDateType());
  +      zoapSchema.addType(ComplexTypeType.getComplexTypeType());
  +      zoapSchema.addType(SimpleTypeType.getSimpleTypeType());
  +      zoapSchema.addType(CollectionTypeType.getCollectionTypeType());
  +      zoapSchema.addType(CollectionElementType.getCollectionElementType());
  +      zoapSchema.addType(FieldAttributeType.getFieldAttributeType());
  +      zoapSchema.addType(FieldElementType.getFieldElementType());
  +      zoapSchema.addType(ClassTypeType.getClassTypeType());
  +      zoapSchema.addType(ClassElementType.getClassElementType());
  +      zoapSchema.addType(NameAttributeType.getNameAttributeType());
  +      zoapSchema.addType(RefAttributeType.getRefAttributeType());
  +      zoapSchema.addElement(BooleanElement.getBooleanElement());
  +      zoapSchema.addElement(DecimalElement.getDecimalElement());
  +      zoapSchema.addElement(ByteElement.getByteElement());
  +      zoapSchema.addElement(CharacterElement.getCharacterElement());
  +      zoapSchema.addElement(DateElement.getDateElement());
  +      zoapSchema.addElement(DoubleElement.getDoubleElement());
  +      zoapSchema.addElement(FloatElement.getFloatElement());
  +      zoapSchema.addElement(IntegerElement.getIntegerElement());
  +      zoapSchema.addElement(LongElement.getLongElement());
  +      zoapSchema.addElement(ShortElement.getShortElement());
  +      zoapSchema.addElement(StringElement.getStringElement());
  +    }
  +
  +    /**
  +     * public accessor to singleton
  +     */
  +    public static ZoapSchema getZoapSchema() {
  +         return zoapSchema;
  +    }
  +}
  +
  
  
  
  1.2       +359 -354  zoap/src/org/zoap/xml/meta/builtin/builtin.dfPackage
  
  Index: builtin.dfPackage
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/org/zoap/xml/meta/builtin/builtin.dfPackage,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- builtin.dfPackage 2000/08/10 21:08:00     1.1
  +++ builtin.dfPackage 2000/12/04 12:36:39     1.2
  @@ -1,354 +1,359 @@
  -package id4p75kca236g8jca238l4p;
  -
  -/**
  -@version 2.0
  -@physicalPackage
  -@__modelType diagram 
  -*/
  -class diagram {
  -/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.DefaultBinding:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference54 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.RefAttribute:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference60 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CharacterType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference62 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference67 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.NameAttribute:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference75 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CollectionElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference3 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.StringElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference48 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.PrimitiveElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference49 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ByteElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference50 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FloatElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference51 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ShortElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference52 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.LongElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference53 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.DoubleElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference56 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CharacterElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference57 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ZoapSchema:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference58 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference59 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.BooleanElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference61 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.IntegerElement:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference63 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldAttribute:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference64 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CollectionType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference1 {
  -}/**
  -@__ref 
<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionElementType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference2 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassTypeType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference4 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldAttributeType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference5 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.NameAttributeType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference6 {
  -}/**
  -@__ref 
<oiref:java#Class#org.zoap.xml.meta.builtin.AssociatedClassAttribute:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference7 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.SimpleTypeType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference8 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldNameAttribute:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference9 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ComplexTypeType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference10 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassElementType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference11 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CollectionTypeType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference12 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldElementType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference13 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.RefAttributeType:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference14 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.DefaultMetaBinding:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference15 {
  -}/**
  -@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassTypeAttribute:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference91 {
  -}/**
  -@__ref 
<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionTypeAttribute:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference92 {
  -}}/**
  -@__tags
  -@shapeType ClassDiagram 
  -*/
  -class __tags {
  -}/**
  -@__options 
  -*/
  -class __options {
  -}/**
  -@__positions 
<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.AssociatedClassAttribute#associatedClassAttribute:oiref>=933,666,933,705,1001,705,1001,637,962,637:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#RefAttribute#refAttribute:oiref>=427,568,427,603,487,603,487,543,452,543:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.DefaultBinding:oiref>=10,10,203,279,1:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.StringElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=3555,274,3555,213,2490,213,2490,147:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassElementType#classElementType:oiref>=1073,426,1073,465,1141,465,1141,397,1102,397:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ClassTypeType:oiref>=229,260,203,146,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#SerializableSchema#serializableSchema:oiref>=447,350,447,381,499,381,499,329,468,329:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DefaultBinding#defaultBinding:oiref>=173,289,173,339,263,339,263,249,213,249:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.XmlSchemaInstance#xmlSchemaInstance:oiref>=1838,213,1838,263,1928,263,1928,173,1878,173:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.BooleanElement:oiref>=1592,274,203,90,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IDRefType#lnkSchemaType:oiref>=1005,1710,1005,1571:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttributeType#refAttributeType:oiref>=1149,605,1149,648,1225,648,1225,572,1182,572:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FloatElement#floatElement:oiref>=1506,364,1506,392,1552,392,1552,346,1524,346:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CharacterType#charType:oiref>=1021,213,1021,263,1111,263,1111,173,1061,173:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.ShortElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=2232,274,2232,213,2490,213,2490,147:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ClassElementType:oiref>=899,280,203,146,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ClassType#lnkFieldElement:oiref>=995,438,1286,444:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.IntegerType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=537,1124,537,960,1126,960,1126,654:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CharacterType:oiref>=858,10,203,203,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldAttributeType#fieldAttributeType:oiref>=183,446,183,485,251,485,251,417,212,417:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldNameAttribute:oiref>=229,630,203,146,1:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FloatElement:oiref>=1332,274,192,90,1:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.CharacterType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=1349,1124,1349,960,1126,960,1126,654:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveWrapper#typeSchema:oiref>=1056,616,974,616,974,1368:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IDType#lnkSchemaType:oiref>=819,1710,939,1571:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.BooleanElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=1693,274,1693,213,2490,213,2490,147:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IntegerType#integerType:oiref>=597,1233,597,1264,649,1264,649,1212,618,1212:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CharacterElement#charElement:oiref>=2048,364,2048,392,2094,392,2094,346,2066,346:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.SimpleTypeType#simpleTypeType:oiref>=183,756,183,795,251,795,251,727,212,727:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.RefAttributeType:oiref>=979,440,203,165,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#binding:oiref>=368,140,213,140:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.BooleanElement#booleanElement:oiref>=1777,364,1777,392,1823,392,1823,346,1795,346:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#lnkSerializableSchema:oiref>=1787,84,1873,84:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.DoubleElement:oiref>=3183,274,203,90,1:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ByteElement:oiref>=2398,274,184,90,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#NameAttribute#lnkIDType:oiref>=266,61,132,61:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldAttribute:oiref>=557,430,184,184,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#SchemaElement#lnkSchemaType:oiref>=2594,83,2448,83:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#lnkClassType:oiref>=345,227,616,156:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.ShortType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=1102,1124,1102,960,1126,960,1126,654:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#RefAttribute#lnkIDRefType:oiref>=452,492,587,492:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.RefAttribute:oiref>=607,10,172,146,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.StringType#stringType:oiref>=2290,1214,2290,1242,2336,1242,2336,1196,2308,1196:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.IntegerElement:oiref>=2650,274,203,90,1:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.NameAttributeType:oiref>=679,230,203,165,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IntegerElement#integerElement:oiref>=2835,364,2835,392,2881,392,2881,346,2853,346:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.StringElement:oiref>=3454,274,202,90,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#IDRefType#idType:oiref>=722,568,722,603,782,603,782,543,747,543:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DefaultBinding#lnkFieldElement:oiref>=119,289,119,374,1695,374,1695,460:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.LongType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=305,1124,305,960,1126,960,1126,654:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CharacterElement:oiref>=1863,274,203,90,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DefaultMetaBinding#metaBinding:oiref>=191,878,191,909,243,909,243,857,212,857:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#BooleanType#booleanType:oiref>=1445,137,1445,172,1505,172,1505,112,1470,112:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DoubleType#doubleType:oiref>=1840,1214,1840,1242,1886,1242,1886,1196,1858,1196:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FloatType#floatType:oiref>=2060,1214,2060,1242,2106,1242,2106,1196,2078,1196:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ClassSchema#lnkClassType:oiref>=1103,232,949,302:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IDRefType#idType:oiref>=1069,1837,1069,1872,1129,1872,1129,1812,1094,1812:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ByteElement#byteElement:oiref>=2564,364,2564,392,2610,392,2610,346,2582,346:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.LongType#longType:oiref>=351,1252,351,1287,411,1287,411,1227,376,1227:oigroup>
  
-<oigroup:<oiref:java#Implements#org.zoap.xml.meta.builtin.ElementContainer#org.zoap.xml.meta.builtin.Builtin:oiref>=884,195,1507,125:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.StringType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=2227,1124,2227,960,1126,960,1126,654:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DoubleElement#doubleElement:oiref>=3368,364,3368,392,3414,392,3414,346,3386,346:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#NameAttribute#lnkSerializableSchema:oiref>=367,137,367,242:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldAppearance#classSchema:oiref>=1763,460,1763,393,1558,393,1558,308:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldElementType#fieldElementType:oiref>=1063,826,1063,865,1131,865,1131,797,1092,797:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.DoubleType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=1769,1124,1769,960,1126,960,1126,654:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#NameAttribute#nameAttribute:oiref>=443,137,443,172,503,172,503,112,468,112:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldAttributeType:oiref>=9,300,203,146,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ShortType#shortType:oiref>=674,137,674,172,734,172,734,112,699,112:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#IDType#idType:oiref>=108,137,108,171,166,171,166,113,132,113:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassType#superType:oiref>=1438,967,1438,1017,1528,1017,1528,927,1478,927:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#lnkSerializableSchema:oiref>=4100,565,4100,445:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionTypeType:oiref>=669,680,203,127,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveWrapper#booleanType:oiref>=2721,409,2721,455,2803,455,2803,373,2757,373:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ClassSchema#lnkFieldElement:oiref>=1205,232,1359,302:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#appearanceSchema:oiref>=763,1408,896,1341,986,1341,1491,1408:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#LongType#longType:oiref>=3759,137,3759,172,3819,172,3819,112,3784,112:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveElement#appearanceSchema:oiref>=2590,64,2705,64:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.BooleanType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=781,1124,781,960,1126,960,1126,654:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ShortElement:oiref>=2134,274,196,90,1:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.AssociatedClassAttribute:oiref>=759,520,203,146,1:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.FloatType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=2002,1124,2002,960,1126,960,1126,654:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ClassSchema#lnkClassElement:oiref>=1057,73,977,73:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldAppearance#binding:oiref>=1695,460,1695,393,127,393,127,327:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassType#binding:oiref>=1368,460,1368,393,68,393,68,327:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionElement:oiref>=12,481,183,118,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldNameAttribute#fieldNameAttribute:oiref>=403,776,403,815,471,815,471,747,432,747:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ByteType#byteType:oiref>=136,1214,136,1242,182,1242,182,1196,154,1196:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldElement:oiref>=338,430,199,184,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IDType#idType:oiref>=836,1837,836,1871,894,1871,894,1813,860,1813:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#SchemaElement#schemaElement:oiref>=2768,156,2768,195,2836,195,2836,127,2797,127:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ComplexTypeType:oiref>=449,630,203,146,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ClassSchema#lnkFieldAttribute:oiref>=1150,232,1150,302:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#SchemaType#schemaType:oiref>=2412,194,2412,240,2494,240,2494,158,2448,158:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.NameAttribute:oiref>=1147,10,202,146,1:oigroup>
  
-<oigroup:<oiref:java#Implements#org.zoap.xml.meta.builtin.PrimitiveWrapper#org.zoap.xml.meta.builtin.Builtin:oiref>=1231,460,1231,125:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveWrapper#appearanceSchema:oiref>=1196,654,1196,988,1592,1173,1592,1368:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#IntegerType#integerType:oiref>=2158,137,2158,172,2218,172,2218,112,2183,112:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ByteType#byteType:oiref>=2995,137,2995,172,3055,172,3055,112,3020,112:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ClassElement:oiref>=3145,10,183,118,1:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.FloatElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=1428,274,1428,213,2490,213,2490,147:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.StringElement#stringElement:oiref>=3638,364,3638,392,3684,392,3684,346,3656,346:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ClassType#lnkFieldAttribute:oiref>=995,344,1095,344:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.SerializableSchema#serializableSchema:oiref>=1654,1571,1654,1621,1744,1621,1744,1531,1694,1531:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.ByteType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=82,1124,82,960,1126,960,1126,654:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#DefaultBinding#defaultBinding:oiref>=3517,390,3517,429,3585,429,3585,361,3546,361:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassType#classSchema:oiref>=1462,460,1462,308:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassTypeType#classTypeType:oiref>=403,406,403,445,471,445,471,377,432,377:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ShortElement#shortElement:oiref>=2312,364,2312,392,2358,392,2358,346,2330,346:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#refAttribute:oiref>=750,156,750,195,818,195,818,127,779,127:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CollectionElementType#collectionElementType:oiref>=633,366,633,405,701,405,701,337,662,337:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.CharacterElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=1964,274,1964,213,2490,213,2490,147:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#StringType#stringType:oiref>=1682,137,1682,172,1742,172,1742,112,1707,112:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ClassType:oiref>=2970,10,155,118,1:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=2391,10,199,137,1:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.DefaultMetaBinding:oiref>=9,770,203,108,1:oigroup>
  
-<oigroup:<oiref:java#Implements#org.zoap.xml.meta.builtin.ClassType#org.zoap.xml.meta.builtin.Builtin:oiref>=1299,460,1299,125:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.IntegerElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=2751,274,2751,213,2490,213,2490,147:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CollectionTypeType#collectionTypeType:oiref>=847,807,847,842,907,842,907,782,872,782:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ZoapSchema:oiref>=2705,10,194,108,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#DoubleType#doubleType:oiref>=3248,137,3248,172,3308,172,3308,112,3273,112:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#RefAttribute#lnkSerializableSchema:oiref>=366,441,366,350:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassType#lnkFieldElement:oiref>=1478,628,1628,628:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionType:oiref>=276,104,168,137,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#appearanceSchema:oiref>=1592,1710,1592,1571:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#type:oiref>=641,1590,778,1710:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#nameAttribute:oiref>=1320,156,1320,195,1388,195,1388,127,1349,127:oigroup>
  
-<oigroup:Composite#label#MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveElement#appearanceSchema:oiref>=2636,64,22,17,0:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#lnkIDType:oiref>=4221,628,4358,628:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ComplexTypeType#complexTypeType:oiref>=623,776,623,815,691,815,691,747,652,747:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.LongElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=3018,274,3018,213,2490,213,2490,147:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#ClassElement#lnkClassType:oiref>=904,137,904,302:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#type:oiref>=1491,1773,1094,1773:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ShortType#shortType:oiref>=1162,1214,1162,1242,1208,1242,1208,1196,1180,1196:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CollectionElement#binding:oiref>=92,481,92,346:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.LongElement:oiref>=2921,274,194,90,1:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.SimpleTypeType:oiref>=9,610,203,146,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#lnkFieldElement:oiref>=372,330,799,330:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.XmlSchema#xmlSchema:oiref>=1036,1571,1036,1621,1126,1621,1126,1531,1076,1531:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.ByteElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=2490,274,2490,147:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttributeType#nameAttributeType:oiref>=849,395,849,438,925,438,925,362,882,362:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldElementType:oiref>=889,680,203,146,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.LongElement#longElement:oiref>=3097,364,3097,392,3143,392,3143,346,3115,346:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.BooleanType#booleanType:oiref>=858,1214,858,1242,904,1242,904,1196,876,1196:oigroup>
  
-<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionElementType:oiref>=459,220,203,146,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#lnkIDRefType:oiref>=4205,61,4340,61:oigroup>
  
-<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.DoubleElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=3284,274,3284,213,2490,213,2490,147:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#CharacterType#charType:oiref>=3522,156,3522,195,3590,195,3590,127,3551,127:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#lnkClassElement:oiref>=318,227,318,137:oigroup>
  
-<oigroup:<oiref:java#Member#org.zoap.xml.meta.builtin.FieldAppearance#get1#(#java.lang.Object#boolean#java.util.Properties#)#:oiref>=535,191,0,0,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#FloatType#floatType:oiref>=1909,137,1909,172,1969,172,1969,112,1934,112:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ZoapSchema#zoapSchema:oiref>=2878,118,2878,149,2930,149,2930,97,2899,97:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#lnkFieldAttribute:oiref>=372,269,608,269:oigroup>
  -*/
  -class __positions {
  -}
  \ No newline at end of file
  +package id4p75kca236g8jca238l4p;
  +
  +/**
  +@version 2.0
  +@physicalPackage
  +@__modelType diagram 
  +*/
  +class diagram {
  +/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.DefaultBinding:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference54 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.RefAttribute:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference60 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CharacterType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference62 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference67 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.NameAttribute:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference75 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CollectionElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference3 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.StringElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference48 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.PrimitiveElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference49 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ByteElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference50 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FloatElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference51 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ShortElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference52 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.LongElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference53 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.DoubleElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference56 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CharacterElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference57 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ZoapSchema:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference58 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference59 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.BooleanElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference61 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.IntegerElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference63 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldAttribute:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference64 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CollectionType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference1 {
  +}/**
  +@__ref 
<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionElementType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference2 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassTypeType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference4 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldAttributeType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference5 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.NameAttributeType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference6 {
  +}/**
  +@__ref 
<oiref:java#Class#org.zoap.xml.meta.builtin.AssociatedClassAttribute:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference7 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.SimpleTypeType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference8 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldNameAttribute:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference9 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ComplexTypeType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference10 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassElementType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference11 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.CollectionTypeType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference12 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.FieldElementType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference13 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.RefAttributeType:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference14 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.DefaultMetaBinding:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference15 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.ClassTypeAttribute:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference91 {
  +}/**
  +@__ref 
<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionTypeAttribute:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference92 {
  +}/**
  +@__ref <oiref:java#Class#org.zoap.xml.meta.builtin.DecimalElement:oiref><oihard>
  +@__modelType reference 
  +*/
  +class reference16 {
  +}}/**
  +@__tags
  +@shapeType ClassDiagram 
  +*/
  +class __tags {
  +}/**
  +@__options 
  +*/
  +class __options {
  +}/**
  +@__positions 
<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.AssociatedClassAttribute#associatedClassAttribute:oiref>=933,666,933,705,1001,705,1001,637,962,637:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#RefAttribute#refAttribute:oiref>=427,568,427,603,487,603,487,543,452,543:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.DefaultBinding:oiref>=10,10,203,279,1:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.StringElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=3555,274,3555,213,2490,213,2490,147:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassElementType#classElementType:oiref>=1073,426,1073,465,1141,465,1141,397,1102,397:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ClassTypeType:oiref>=229,260,203,146,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#SerializableSchema#serializableSchema:oiref>=447,350,447,381,499,381,499,329,468,329:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DefaultBinding#defaultBinding:oiref>=173,289,173,339,263,339,263,249,213,249:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.XmlSchemaInstance#xmlSchemaInstance:oiref>=1838,213,1838,263,1928,263,1928,173,1878,173:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.BooleanElement:oiref>=1592,274,203,90,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IDRefType#lnkSchemaType:oiref>=1005,1710,1005,1571:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttributeType#refAttributeType:oiref>=1149,605,1149,648,1225,648,1225,572,1182,572:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FloatElement#floatElement:oiref>=1506,364,1506,392,1552,392,1552,346,1524,346:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CharacterType#charType:oiref>=1021,213,1021,263,1111,263,1111,173,1061,173:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.ShortElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=2232,274,2232,213,2490,213,2490,147:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ClassElementType:oiref>=899,280,203,146,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ClassType#lnkFieldElement:oiref>=995,438,1286,444:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.IntegerType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=537,1124,537,960,1126,960,1126,654:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CharacterType:oiref>=858,10,203,203,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldAttributeType#fieldAttributeType:oiref>=183,446,183,485,251,485,251,417,212,417:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldNameAttribute:oiref>=229,630,203,146,1:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FloatElement:oiref>=1332,274,192,90,1:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.CharacterType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=1349,1124,1349,960,1126,960,1126,654:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveWrapper#typeSchema:oiref>=1056,616,974,616,974,1368:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IDType#lnkSchemaType:oiref>=819,1710,939,1571:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.BooleanElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=1693,274,1693,213,2490,213,2490,147:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IntegerType#integerType:oiref>=597,1233,597,1264,649,1264,649,1212,618,1212:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CharacterElement#charElement:oiref>=2048,364,2048,392,2094,392,2094,346,2066,346:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.SimpleTypeType#simpleTypeType:oiref>=183,756,183,795,251,795,251,727,212,727:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.RefAttributeType:oiref>=979,440,203,165,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#binding:oiref>=368,140,213,140:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.BooleanElement#booleanElement:oiref>=1777,364,1777,392,1823,392,1823,346,1795,346:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#lnkSerializableSchema:oiref>=1787,84,1873,84:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.DoubleElement:oiref>=3183,274,203,90,1:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ByteElement:oiref>=2398,274,184,90,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#NameAttribute#lnkIDType:oiref>=266,61,132,61:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldAttribute:oiref>=557,430,184,184,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#SchemaElement#lnkSchemaType:oiref>=2594,83,2448,83:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#lnkClassType:oiref>=345,227,616,156:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.ShortType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=1102,1124,1102,960,1126,960,1126,654:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#RefAttribute#lnkIDRefType:oiref>=452,492,587,492:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.RefAttribute:oiref>=607,10,172,146,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.StringType#stringType:oiref>=2290,1214,2290,1242,2336,1242,2336,1196,2308,1196:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.IntegerElement:oiref>=2650,274,203,90,1:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.NameAttributeType:oiref>=679,230,203,165,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IntegerElement#integerElement:oiref>=2835,364,2835,392,2881,392,2881,346,2853,346:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.StringElement:oiref>=3454,274,202,90,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#IDRefType#idType:oiref>=722,568,722,603,782,603,782,543,747,543:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DefaultBinding#lnkFieldElement:oiref>=119,289,119,374,1695,374,1695,460:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.LongType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=305,1124,305,960,1126,960,1126,654:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CharacterElement:oiref>=1863,274,203,90,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DefaultMetaBinding#metaBinding:oiref>=191,878,191,909,243,909,243,857,212,857:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#BooleanType#booleanType:oiref>=1445,137,1445,172,1505,172,1505,112,1470,112:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DoubleType#doubleType:oiref>=1840,1214,1840,1242,1886,1242,1886,1196,1858,1196:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FloatType#floatType:oiref>=2060,1214,2060,1242,2106,1242,2106,1196,2078,1196:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ClassSchema#lnkClassType:oiref>=1103,232,949,302:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IDRefType#idType:oiref>=1069,1837,1069,1872,1129,1872,1129,1812,1094,1812:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ByteElement#byteElement:oiref>=2564,364,2564,392,2610,392,2610,346,2582,346:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.LongType#longType:oiref>=351,1252,351,1287,411,1287,411,1227,376,1227:oigroup>
  
+<oigroup:<oiref:java#Implements#org.zoap.xml.meta.builtin.ElementContainer#org.zoap.xml.meta.builtin.Builtin:oiref>=884,195,1507,125:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.StringType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=2227,1124,2227,960,1126,960,1126,654:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.DoubleElement#doubleElement:oiref>=3368,364,3368,392,3414,392,3414,346,3386,346:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#NameAttribute#lnkSerializableSchema:oiref>=367,137,367,242:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldAppearance#classSchema:oiref>=1763,460,1763,393,1558,393,1558,308:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldElementType#fieldElementType:oiref>=1063,826,1063,865,1131,865,1131,797,1092,797:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.DoubleType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=1769,1124,1769,960,1126,960,1126,654:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#NameAttribute#nameAttribute:oiref>=443,137,443,172,503,172,503,112,468,112:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldAttributeType:oiref>=9,300,203,146,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ShortType#shortType:oiref>=674,137,674,172,734,172,734,112,699,112:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#IDType#idType:oiref>=108,137,108,171,166,171,166,113,132,113:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassType#superType:oiref>=1438,967,1438,1017,1528,1017,1528,927,1478,927:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#lnkSerializableSchema:oiref>=4100,565,4100,445:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionTypeType:oiref>=669,680,203,127,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveWrapper#booleanType:oiref>=2721,409,2721,455,2803,455,2803,373,2757,373:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ClassSchema#lnkFieldElement:oiref>=1205,232,1359,302:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#appearanceSchema:oiref>=763,1408,896,1341,986,1341,1491,1408:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#LongType#longType:oiref>=3759,137,3759,172,3819,172,3819,112,3784,112:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveElement#appearanceSchema:oiref>=2590,64,2705,64:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.BooleanType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=781,1124,781,960,1126,960,1126,654:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ShortElement:oiref>=2134,274,196,90,1:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.AssociatedClassAttribute:oiref>=759,520,203,146,1:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.FloatType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=2002,1124,2002,960,1126,960,1126,654:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ClassSchema#lnkClassElement:oiref>=1057,73,977,73:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldAppearance#binding:oiref>=1695,460,1695,393,127,393,127,327:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassType#binding:oiref>=1368,460,1368,393,68,393,68,327:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionElement:oiref>=12,481,183,118,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.FieldNameAttribute#fieldNameAttribute:oiref>=403,776,403,815,471,815,471,747,432,747:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ByteType#byteType:oiref>=136,1214,136,1242,182,1242,182,1196,154,1196:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldElement:oiref>=338,430,199,184,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.IDType#idType:oiref>=836,1837,836,1871,894,1871,894,1813,860,1813:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#SchemaElement#schemaElement:oiref>=2768,156,2768,195,2836,195,2836,127,2797,127:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ComplexTypeType:oiref>=449,630,203,146,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ClassSchema#lnkFieldAttribute:oiref>=1150,232,1150,302:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#SchemaType#schemaType:oiref>=2412,194,2412,240,2494,240,2494,158,2448,158:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.NameAttribute:oiref>=1147,10,202,146,1:oigroup>
  
+<oigroup:<oiref:java#Implements#org.zoap.xml.meta.builtin.PrimitiveWrapper#org.zoap.xml.meta.builtin.Builtin:oiref>=1231,460,1231,125:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveWrapper#appearanceSchema:oiref>=1196,654,1196,988,1592,1173,1592,1368:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#IntegerType#integerType:oiref>=2158,137,2158,172,2218,172,2218,112,2183,112:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ByteType#byteType:oiref>=2995,137,2995,172,3055,172,3055,112,3020,112:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ClassElement:oiref>=3145,10,183,118,1:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.FloatElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=1428,274,1428,213,2490,213,2490,147:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.StringElement#stringElement:oiref>=3638,364,3638,392,3684,392,3684,346,3656,346:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ClassType#lnkFieldAttribute:oiref>=995,344,1095,344:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.SerializableSchema#serializableSchema:oiref>=1654,1571,1654,1621,1744,1621,1744,1531,1694,1531:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.ByteType#org.zoap.xml.meta.builtin.PrimitiveWrapper:oiref>=82,1124,82,960,1126,960,1126,654:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#DefaultBinding#defaultBinding:oiref>=3517,390,3517,429,3585,429,3585,361,3546,361:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassType#classSchema:oiref>=1462,460,1462,308:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassTypeType#classTypeType:oiref>=403,406,403,445,471,445,471,377,432,377:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ShortElement#shortElement:oiref>=2312,364,2312,392,2358,392,2358,346,2330,346:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#refAttribute:oiref>=750,156,750,195,818,195,818,127,779,127:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CollectionElementType#collectionElementType:oiref>=633,366,633,405,701,405,701,337,662,337:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.CharacterElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=1964,274,1964,213,2490,213,2490,147:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#StringType#stringType:oiref>=1682,137,1682,172,1742,172,1742,112,1707,112:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ClassType:oiref>=2970,10,155,118,1:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=2391,10,199,137,1:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.DefaultMetaBinding:oiref>=9,770,203,108,1:oigroup>
  
+<oigroup:<oiref:java#Implements#org.zoap.xml.meta.builtin.ClassType#org.zoap.xml.meta.builtin.Builtin:oiref>=1299,460,1299,125:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.IntegerElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=2751,274,2751,213,2490,213,2490,147:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CollectionTypeType#collectionTypeType:oiref>=847,807,847,842,907,842,907,782,872,782:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.ZoapSchema:oiref>=2705,10,194,108,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#DoubleType#doubleType:oiref>=3248,137,3248,172,3308,172,3308,112,3273,112:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#RefAttribute#lnkSerializableSchema:oiref>=366,441,366,350:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassType#lnkFieldElement:oiref>=1478,628,1628,628:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionType:oiref>=276,104,168,137,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#appearanceSchema:oiref>=1592,1710,1592,1571:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#type:oiref>=641,1590,778,1710:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#nameAttribute:oiref>=1320,156,1320,195,1388,195,1388,127,1349,127:oigroup>
  
+<oigroup:Composite#label#MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.PrimitiveElement#appearanceSchema:oiref>=2636,64,22,17,0:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttribute#lnkIDType:oiref>=4221,628,4358,628:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ComplexTypeType#complexTypeType:oiref>=623,776,623,815,691,815,691,747,652,747:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.LongElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=3018,274,3018,213,2490,213,2490,147:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#ClassElement#lnkClassType:oiref>=904,137,904,302:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#type:oiref>=1491,1773,1094,1773:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ShortType#shortType:oiref>=1162,1214,1162,1242,1208,1242,1208,1196,1180,1196:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.CollectionElement#binding:oiref>=92,481,92,346:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.LongElement:oiref>=2921,274,194,90,1:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.SimpleTypeType:oiref>=9,610,203,146,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#lnkFieldElement:oiref>=372,330,799,330:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.XmlSchema#xmlSchema:oiref>=1036,1571,1036,1621,1126,1621,1126,1531,1076,1531:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.ByteElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=2490,274,2490,147:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.NameAttributeType#nameAttributeType:oiref>=849,395,849,438,925,438,925,362,882,362:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.FieldElementType:oiref>=889,680,203,146,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.LongElement#longElement:oiref>=3097,364,3097,392,3143,392,3143,346,3115,346:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.BooleanType#booleanType:oiref>=858,1214,858,1242,904,1242,904,1196,876,1196:oigroup>
  
+<oigroup:<oiref:java#Class#org.zoap.xml.meta.builtin.CollectionElementType:oiref>=459,220,203,146,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.RefAttribute#lnkIDRefType:oiref>=4205,61,4340,61:oigroup>
  
+<oigroup:<oiref:java#Extends#org.zoap.xml.meta.builtin.DoubleElement#org.zoap.xml.meta.builtin.PrimitiveElement:oiref>=3284,274,3284,213,2490,213,2490,147:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#CharacterType#charType:oiref>=3522,156,3522,195,3590,195,3590,127,3551,127:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#lnkClassElement:oiref>=318,227,318,137:oigroup>
  
+<oigroup:<oiref:java#Member#org.zoap.xml.meta.builtin.FieldAppearance#get1#(#java.lang.Object#boolean#java.util.Properties#)#:oiref>=535,191,0,0,1:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#FloatType#floatType:oiref>=1909,137,1909,172,1969,172,1969,112,1934,112:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ZoapSchema#zoapSchema:oiref>=2878,118,2878,149,2930,149,2930,97,2899,97:oigroup>
  
+<oigroup:MemberLink#<oiref:java#Member#org.zoap.xml.meta.builtin.ClassSchema#lnkFieldAttribute:oiref>=372,269,608,269:oigroup>
  +*/
  +class __positions {
  +}
  
  
  
  1.1                  zoap/src/org/zoap/xml/meta/builtin/DateElement.java
  
  Index: DateElement.java
  ===================================================================
  /*
   *    $Id: DateElement.java,v 1.1 2000/12/04 12:36:37 jung Exp $
   *    Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
   *    D-66299 Friedrichsthal, Germany. All Rights Reserved.
   *
   *    License Statement
   *
   *    Redistribution and use of this software and associated documentation 
("Software"), with or without
   *    modification, are permitted provided that the following conditions are met:
   *
   *    1.      Redistributions of source code must retain copyright statements and 
notices.
   *            Redistributions must also contain a copy of this document.
   *
   *    2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
   *            conditions and the following disclaimer in the documentation and/or 
other materials provided
   *            with the distribution.
   *
   *    3.      The end-user documentation included with the redistribution, if any, 
must include the following
   *            acknowledgment: "This product includes software developed by infor: 
business solutions AG
   *            (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
   *            if and wherever such third-party acknowledgments normally appear.
   *
   *    4.      The name "infor" must not be used to endorse or promote products 
derived from this
   *            Software without prior written permission of infor: business solutions 
AG.
   *            For written permission, please contact [EMAIL PROTECTED]
   *
   *    5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
   *            in their names without prior written permission of infor: business 
solutions AG. infor
   *            is a registered trademark of infor:business solutions AG.
   *
   *    Disclaimer
   *
   *    THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
   *    EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
   *    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   *
   *    IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
   *    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
   *    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
   *    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
   *    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
   *    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   */
  
  package org.zoap.xml.meta.builtin;
  
  import org.zoap.xml.Environment;
  
  public class DateElement extends PrimitiveElement {
  
      /** constructor cant be faked */
      private DateElement() {
  
          if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
            Environment.out.print(toString()+"()\n");
  
          setType(DateType.getDateType());
          setAppearanceName("date");
      }
  
      private static DateElement dateElement=new DateElement();
  
      public static DateElement getDateElement() {
  
          if(Environment.DEBUG_XML && Environment.DEBUG_XML_META)
            Environment.out.print(DateElement.class.toString()+".getDateElement()\n");
  
          return dateElement;
      }
  }
  
  
  
  1.1                  zoap/src/org/zoap/xml/meta/builtin/DateType.java
  
  Index: DateType.java
  ===================================================================
  /*
   *    $Id: DateType.java,v 1.1 2000/12/04 12:36:37 jung Exp $
   *    Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
   *    D-66299 Friedrichsthal, Germany. All Rights Reserved.
   *
   *    License Statement
   *
   *    Redistribution and use of this software and associated documentation 
("Software"), with or without
   *    modification, are permitted provided that the following conditions are met:
   *
   *    1.      Redistributions of source code must retain copyright statements and 
notices.
   *            Redistributions must also contain a copy of this document.
   *
   *    2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
   *            conditions and the following disclaimer in the documentation and/or 
other materials provided
   *            with the distribution.
   *
   *    3.      The end-user documentation included with the redistribution, if any, 
must include the following
   *            acknowledgment: "This product includes software developed by infor: 
business solutions AG
   *            (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
   *            if and wherever such third-party acknowledgments normally appear.
   *
   *    4.      The name "infor" must not be used to endorse or promote products 
derived from this
   *            Software without prior written permission of infor: business solutions 
AG.
   *            For written permission, please contact [EMAIL PROTECTED]
   *
   *    5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
   *            in their names without prior written permission of infor: business 
solutions AG. infor
   *            is a registered trademark of infor:business solutions AG.
   *
   *    Disclaimer
   *
   *    THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
   *    EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
   *    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   *
   *    IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
   *    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
   *    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
   *    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
   *    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
   *    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   */
  
  package org.zoap.xml.meta.builtin;
  
  import org.zoap.xml.SimpleType;
  import org.zoap.xml.Schema;
  import org.zoap.xml.TypeException;
  import java.util.Date;
  
  import java.util.Map;
  
  public class DateType extends SimpleType {
  
      /** constructor cant be faked */
      private DateType() {
          setAssociatedClass(Date.class);
          setTypeName("date");
      }
  
      public Schema getTypeSchema() {
        return ZoapSchema.getZoapSchema();
      }
  
      public Object newInstance(Map attributes, Map references, Map nameSpaces) {
        return null;
      }
  
      /** return a usable and printable representation of the Character @arg object */
      public String getContent(Object object) throws TypeException {
  
          if(object instanceof Date)
            return String.valueOf(((Date) object).getTime());
  
          return null;
      }
  
      /** create a character from the given string */
      public Object setContent(Object target,String body, String verboseElements,Map 
references,Map nameSpaces)
        throws TypeException {
  
          if(body!=null)
                return new Date(new Long(body).longValue());
  
          throw new TypeException();
      }
  
      public boolean isStateless() {
        return true;
      }
  
      private static DateType dateType=new DateType();
  
      public static DateType getDateType() {
          return dateType;
      }
  }
  
  
  
  
  
  1.1                  zoap/src/org/zoap/xml/meta/builtin/DecimalElement.java
  
  Index: DecimalElement.java
  ===================================================================
  /*
   *    $Id: DecimalElement.java,v 1.1 2000/12/04 12:36:37 jung Exp $
   *    Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
   *    D-66299 Friedrichsthal, Germany. All Rights Reserved.
   *
   *    License Statement
   *
   *    Redistribution and use of this software and associated documentation 
("Software"), with or without
   *    modification, are permitted provided that the following conditions are met:
   *
   *    1.      Redistributions of source code must retain copyright statements and 
notices.
   *            Redistributions must also contain a copy of this document.
   *
   *    2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
   *            conditions and the following disclaimer in the documentation and/or 
other materials provided
   *            with the distribution.
   *
   *    3.      The end-user documentation included with the redistribution, if any, 
must include the following
   *            acknowledgment: "This product includes software developed by infor: 
business solutions AG
   *            (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
   *            if and wherever such third-party acknowledgments normally appear.
   *
   *    4.      The name "infor" must not be used to endorse or promote products 
derived from this
   *            Software without prior written permission of infor: business solutions 
AG.
   *            For written permission, please contact [EMAIL PROTECTED]
   *
   *    5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
   *            in their names without prior written permission of infor: business 
solutions AG. infor
   *            is a registered trademark of infor:business solutions AG.
   *
   *    Disclaimer
   *
   *    THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
   *    EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
   *    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   *
   *    IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
   *    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
   *    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
   *    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
   *    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
   *    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   */
  
  package org.zoap.xml.meta.builtin;
  
  import org.zoap.xml.meta.DecimalType;
  
  import org.zoap.xml.Environment;
  
  /**
   * XML element around java.lang.Boolean. Implemented as a singleton <br>
   * @author $Author: jung $
   * @version $Revision: 1.1 $
   */
  
  public class DecimalElement extends PrimitiveElement {
  
        /** constructor cannot be faked anymore */
        private DecimalElement() {
  
                if (Environment.DEBUG_XML && Environment.DEBUG_XML_META)
                        Environment.out.print(toString() + "()\n");
  
                setType(DecimalType.getDecimalType());
                setAppearanceName("decimal");
        }
  
        /** static reference, non-lazy since usage of this class is equivalent with 
instantiation */
  
        private static DecimalElement decimalElement = new DecimalElement();
  
        /** global access */
        public static DecimalElement getDecimalElement() {
  
     
  
                return decimalElement;
        }
  
  }
  
  /*
   *    $Log: DecimalElement.java,v $
   *    Revision 1.1  2000/12/04 12:36:37  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:58  jung
   *    Initial import.
   *    
   *    
   *    Revision 1.1.2.1  2000/08/04 17:20:20  jung
   *    close to beta stadium. Meta-Data import now works.
   *    
   *    Revision 1.1.2.1  2000/07/17 12:46:19  jung
   *    refactored package and meta-model
   *
   *    Revision 1.1.2.1  2000/07/13 12:46:25  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.1.1.1  2000/07/06 14:11:28  jung
   *    Import of a pre beta version of ZOAP source with a new directory structure,
   *    ant-based make, apache-kind of license, etc.
   *
   *    jars are coming later because of cvs-history reasons.
   *
   */
  
  
  

Reply via email to