You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2012/12/10 06:08:43 UTC

svn commit: r1419199 [20/35] - in /openejb/trunk/openejb/container: openejb-jee-accessors/ openejb-jee-accessors/src/main/ openejb-jee-accessors/src/main/java/ openejb-jee-accessors/src/main/java/org/ openejb-jee-accessors/src/main/java/org/apache/ ope...

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaWsdlMapping$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaWsdlMapping%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaWsdlMapping$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaWsdlMapping$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,314 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+    * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBObject;
+import com.envoisolutions.sxc.jaxb.LifecycleCallback;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.Attribute;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+import com.envoisolutions.sxc.util.XoXMLStreamWriter;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.apache.openejb.jee.ExceptionMapping$JAXB.readExceptionMapping;
+import static org.apache.openejb.jee.ExceptionMapping$JAXB.writeExceptionMapping;
+import static org.apache.openejb.jee.JavaXmlTypeMapping$JAXB.readJavaXmlTypeMapping;
+import static org.apache.openejb.jee.JavaXmlTypeMapping$JAXB.writeJavaXmlTypeMapping;
+import static org.apache.openejb.jee.PackageMapping$JAXB.readPackageMapping;
+import static org.apache.openejb.jee.PackageMapping$JAXB.writePackageMapping;
+import static org.apache.openejb.jee.ServiceEndpointInterfaceMapping$JAXB.readServiceEndpointInterfaceMapping;
+import static org.apache.openejb.jee.ServiceEndpointInterfaceMapping$JAXB.writeServiceEndpointInterfaceMapping;
+import static org.apache.openejb.jee.ServiceInterfaceMapping$JAXB.readServiceInterfaceMapping;
+import static org.apache.openejb.jee.ServiceInterfaceMapping$JAXB.writeServiceInterfaceMapping;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class JavaWsdlMapping$JAXB
+        extends JAXBObject<JavaWsdlMapping> {
+
+
+    public JavaWsdlMapping$JAXB() {
+        super(JavaWsdlMapping.class, new QName("http://java.sun.com/xml/ns/javaee".intern(), "java-wsdl-mapping".intern()), new QName("http://java.sun.com/xml/ns/javaee".intern(), "java-wsdl-mappingType".intern()), PackageMapping$JAXB.class, JavaXmlTypeMapping$JAXB.class, ExceptionMapping$JAXB.class, ServiceInterfaceMapping$JAXB.class, ServiceEndpointInterfaceMapping$JAXB.class);
+    }
+
+    public static JavaWsdlMapping readJavaWsdlMapping(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeJavaWsdlMapping(XoXMLStreamWriter writer, JavaWsdlMapping javaWsdlMapping, RuntimeContext context)
+            throws Exception {
+        _write(writer, javaWsdlMapping, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, JavaWsdlMapping javaWsdlMapping, RuntimeContext context)
+            throws Exception {
+        _write(writer, javaWsdlMapping, context);
+    }
+
+    public final static JavaWsdlMapping _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        JavaWsdlMapping javaWsdlMapping = new JavaWsdlMapping();
+        context.beforeUnmarshal(javaWsdlMapping, LifecycleCallback.NONE);
+
+        KeyedCollection<String, PackageMapping> packageMapping = null;
+        List<JavaXmlTypeMapping> javaXmlTypeMapping = null;
+        KeyedCollection<QName, ExceptionMapping> exceptionMapping = null;
+        List<ServiceInterfaceMapping> serviceInterfaceMapping = null;
+        KeyedCollection<String, ServiceEndpointInterfaceMapping> serviceEndpointInterfaceMapping = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("java-wsdl-mappingType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, JavaWsdlMapping.class);
+            }
+        }
+
+        // Read attributes
+        for (Attribute attribute : reader.getAttributes()) {
+            if (("id" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: id
+                String id = Adapters.collapsedStringAdapterAdapter.unmarshal(attribute.getValue());
+                context.addXmlId(reader, id, javaWsdlMapping);
+                javaWsdlMapping.id = id;
+            } else if (("version" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: version
+                javaWsdlMapping.version = Adapters.collapsedStringAdapterAdapter.unmarshal(attribute.getValue());
+            } else if (XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI != attribute.getNamespace()) {
+                context.unexpectedAttribute(attribute, new QName("", "id"), new QName("", "version"));
+            }
+        }
+
+        // Read elements
+        for (XoXMLStreamReader elementReader : reader.getChildElements()) {
+            if (("package-mapping" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: packageMapping
+                PackageMapping packageMappingItem = readPackageMapping(elementReader, context);
+                if (packageMapping == null) {
+                    packageMapping = javaWsdlMapping.packageMapping;
+                    if (packageMapping != null) {
+                        packageMapping.clear();
+                    } else {
+                        packageMapping = new KeyedCollection<String, PackageMapping>();
+                    }
+                }
+                packageMapping.add(packageMappingItem);
+            } else if (("java-xml-type-mapping" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: javaXmlTypeMapping
+                JavaXmlTypeMapping javaXmlTypeMappingItem = readJavaXmlTypeMapping(elementReader, context);
+                if (javaXmlTypeMapping == null) {
+                    javaXmlTypeMapping = javaWsdlMapping.javaXmlTypeMapping;
+                    if (javaXmlTypeMapping != null) {
+                        javaXmlTypeMapping.clear();
+                    } else {
+                        javaXmlTypeMapping = new ArrayList<JavaXmlTypeMapping>();
+                    }
+                }
+                javaXmlTypeMapping.add(javaXmlTypeMappingItem);
+            } else if (("exception-mapping" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: exceptionMapping
+                ExceptionMapping exceptionMappingItem = readExceptionMapping(elementReader, context);
+                if (exceptionMapping == null) {
+                    exceptionMapping = javaWsdlMapping.exceptionMapping;
+                    if (exceptionMapping != null) {
+                        exceptionMapping.clear();
+                    } else {
+                        exceptionMapping = new KeyedCollection<QName, ExceptionMapping>();
+                    }
+                }
+                exceptionMapping.add(exceptionMappingItem);
+            } else if (("service-interface-mapping" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: serviceInterfaceMapping
+                ServiceInterfaceMapping serviceInterfaceMappingItem = readServiceInterfaceMapping(elementReader, context);
+                if (serviceInterfaceMapping == null) {
+                    serviceInterfaceMapping = javaWsdlMapping.serviceInterfaceMapping;
+                    if (serviceInterfaceMapping != null) {
+                        serviceInterfaceMapping.clear();
+                    } else {
+                        serviceInterfaceMapping = new ArrayList<ServiceInterfaceMapping>();
+                    }
+                }
+                serviceInterfaceMapping.add(serviceInterfaceMappingItem);
+            } else if (("service-endpoint-interface-mapping" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: serviceEndpointInterfaceMapping
+                ServiceEndpointInterfaceMapping serviceEndpointInterfaceMappingItem = readServiceEndpointInterfaceMapping(elementReader, context);
+                if (serviceEndpointInterfaceMapping == null) {
+                    serviceEndpointInterfaceMapping = javaWsdlMapping.serviceEndpointInterfaceMapping;
+                    if (serviceEndpointInterfaceMapping != null) {
+                        serviceEndpointInterfaceMapping.clear();
+                    } else {
+                        serviceEndpointInterfaceMapping = new KeyedCollection<String, ServiceEndpointInterfaceMapping>();
+                    }
+                }
+                serviceEndpointInterfaceMapping.add(serviceEndpointInterfaceMappingItem);
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "package-mapping"), new QName("http://java.sun.com/xml/ns/javaee", "java-xml-type-mapping"), new QName("http://java.sun.com/xml/ns/javaee", "exception-mapping"), new QName("http://java.sun.com/xml/ns/javaee", "service-interface-mapping"), new QName("http://java.sun.com/xml/ns/javaee", "service-endpoint-interface-mapping"));
+            }
+        }
+        if (packageMapping != null) {
+            javaWsdlMapping.packageMapping = packageMapping;
+        }
+        if (javaXmlTypeMapping != null) {
+            javaWsdlMapping.javaXmlTypeMapping = javaXmlTypeMapping;
+        }
+        if (exceptionMapping != null) {
+            javaWsdlMapping.exceptionMapping = exceptionMapping;
+        }
+        if (serviceInterfaceMapping != null) {
+            javaWsdlMapping.serviceInterfaceMapping = serviceInterfaceMapping;
+        }
+        if (serviceEndpointInterfaceMapping != null) {
+            javaWsdlMapping.serviceEndpointInterfaceMapping = serviceEndpointInterfaceMapping;
+        }
+
+        context.afterUnmarshal(javaWsdlMapping, LifecycleCallback.NONE);
+
+        return javaWsdlMapping;
+    }
+
+    public final JavaWsdlMapping read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, JavaWsdlMapping javaWsdlMapping, RuntimeContext context)
+            throws Exception {
+        if (javaWsdlMapping == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (JavaWsdlMapping.class != javaWsdlMapping.getClass()) {
+            context.unexpectedSubclass(writer, javaWsdlMapping, JavaWsdlMapping.class);
+            return;
+        }
+
+        context.beforeMarshal(javaWsdlMapping, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = javaWsdlMapping.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(javaWsdlMapping, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ATTRIBUTE: version
+        String versionRaw = javaWsdlMapping.version;
+        if (versionRaw != null) {
+            String version = null;
+            try {
+                version = Adapters.collapsedStringAdapterAdapter.marshal(versionRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(javaWsdlMapping, "version", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "version", version);
+        }
+
+        // ELEMENT: packageMapping
+        KeyedCollection<String, PackageMapping> packageMapping = javaWsdlMapping.packageMapping;
+        if (packageMapping != null) {
+            for (PackageMapping packageMappingItem : packageMapping) {
+                if (packageMappingItem != null) {
+                    writer.writeStartElement(prefix, "package-mapping", "http://java.sun.com/xml/ns/javaee");
+                    writePackageMapping(writer, packageMappingItem, context);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(javaWsdlMapping, "packageMapping");
+                }
+            }
+        }
+
+        // ELEMENT: javaXmlTypeMapping
+        List<JavaXmlTypeMapping> javaXmlTypeMapping = javaWsdlMapping.javaXmlTypeMapping;
+        if (javaXmlTypeMapping != null) {
+            for (JavaXmlTypeMapping javaXmlTypeMappingItem : javaXmlTypeMapping) {
+                if (javaXmlTypeMappingItem != null) {
+                    writer.writeStartElement(prefix, "java-xml-type-mapping", "http://java.sun.com/xml/ns/javaee");
+                    writeJavaXmlTypeMapping(writer, javaXmlTypeMappingItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: exceptionMapping
+        KeyedCollection<QName, ExceptionMapping> exceptionMapping = javaWsdlMapping.exceptionMapping;
+        if (exceptionMapping != null) {
+            for (ExceptionMapping exceptionMappingItem : exceptionMapping) {
+                if (exceptionMappingItem != null) {
+                    writer.writeStartElement(prefix, "exception-mapping", "http://java.sun.com/xml/ns/javaee");
+                    writeExceptionMapping(writer, exceptionMappingItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: serviceInterfaceMapping
+        List<ServiceInterfaceMapping> serviceInterfaceMapping = javaWsdlMapping.serviceInterfaceMapping;
+        if (serviceInterfaceMapping != null) {
+            for (ServiceInterfaceMapping serviceInterfaceMappingItem : serviceInterfaceMapping) {
+                if (serviceInterfaceMappingItem != null) {
+                    writer.writeStartElement(prefix, "service-interface-mapping", "http://java.sun.com/xml/ns/javaee");
+                    writeServiceInterfaceMapping(writer, serviceInterfaceMappingItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: serviceEndpointInterfaceMapping
+        KeyedCollection<String, ServiceEndpointInterfaceMapping> serviceEndpointInterfaceMapping = javaWsdlMapping.serviceEndpointInterfaceMapping;
+        if (serviceEndpointInterfaceMapping != null) {
+            for (ServiceEndpointInterfaceMapping serviceEndpointInterfaceMappingItem : serviceEndpointInterfaceMapping) {
+                if (serviceEndpointInterfaceMappingItem != null) {
+                    writer.writeStartElement(prefix, "service-endpoint-interface-mapping", "http://java.sun.com/xml/ns/javaee");
+                    writeServiceEndpointInterfaceMapping(writer, serviceEndpointInterfaceMappingItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        context.afterMarshal(javaWsdlMapping, LifecycleCallback.NONE);
+    }
+
+}

Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaWsdlMapping$JAXB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaXmlTypeMapping$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaXmlTypeMapping%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaXmlTypeMapping$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaXmlTypeMapping$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,274 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+    * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBObject;
+import com.envoisolutions.sxc.jaxb.LifecycleCallback;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.Attribute;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+import com.envoisolutions.sxc.util.XoXMLStreamWriter;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.apache.openejb.jee.VariableMapping$JAXB.readVariableMapping;
+import static org.apache.openejb.jee.VariableMapping$JAXB.writeVariableMapping;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class JavaXmlTypeMapping$JAXB
+        extends JAXBObject<JavaXmlTypeMapping> {
+
+
+    public JavaXmlTypeMapping$JAXB() {
+        super(JavaXmlTypeMapping.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "java-xml-type-mappingType".intern()), VariableMapping$JAXB.class);
+    }
+
+    public static JavaXmlTypeMapping readJavaXmlTypeMapping(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeJavaXmlTypeMapping(XoXMLStreamWriter writer, JavaXmlTypeMapping javaXmlTypeMapping, RuntimeContext context)
+            throws Exception {
+        _write(writer, javaXmlTypeMapping, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, JavaXmlTypeMapping javaXmlTypeMapping, RuntimeContext context)
+            throws Exception {
+        _write(writer, javaXmlTypeMapping, context);
+    }
+
+    public final static JavaXmlTypeMapping _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        JavaXmlTypeMapping javaXmlTypeMapping = new JavaXmlTypeMapping();
+        context.beforeUnmarshal(javaXmlTypeMapping, LifecycleCallback.NONE);
+
+        List<VariableMapping> variableMapping = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("java-xml-type-mappingType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, JavaXmlTypeMapping.class);
+            }
+        }
+
+        // Read attributes
+        for (Attribute attribute : reader.getAttributes()) {
+            if (("id" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: id
+                String id = Adapters.collapsedStringAdapterAdapter.unmarshal(attribute.getValue());
+                context.addXmlId(reader, id, javaXmlTypeMapping);
+                javaXmlTypeMapping.id = id;
+            } else if (XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI != attribute.getNamespace()) {
+                context.unexpectedAttribute(attribute, new QName("", "id"));
+            }
+        }
+
+        // Read elements
+        for (XoXMLStreamReader elementReader : reader.getChildElements()) {
+            if (("java-type" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: javaType
+                String javaTypeRaw = elementReader.getElementAsString();
+
+                String javaType;
+                try {
+                    javaType = Adapters.collapsedStringAdapterAdapter.unmarshal(javaTypeRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                javaXmlTypeMapping.javaType = javaType;
+            } else if (("root-type-qname" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: rootTypeQname
+                QName rootTypeQname = elementReader.getElementAsQName();
+                javaXmlTypeMapping.rootTypeQname = rootTypeQname;
+            } else if (("anonymous-type-qname" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: anonymousTypeQname
+                String anonymousTypeQnameRaw = elementReader.getElementAsString();
+
+                String anonymousTypeQname;
+                try {
+                    anonymousTypeQname = Adapters.collapsedStringAdapterAdapter.unmarshal(anonymousTypeQnameRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                javaXmlTypeMapping.anonymousTypeQname = anonymousTypeQname;
+            } else if (("qname-scope" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: qnameScope
+                String qnameScopeRaw = elementReader.getElementAsString();
+
+                String qnameScope;
+                try {
+                    qnameScope = Adapters.collapsedStringAdapterAdapter.unmarshal(qnameScopeRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                javaXmlTypeMapping.qnameScope = qnameScope;
+            } else if (("variable-mapping" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: variableMapping
+                VariableMapping variableMappingItem = readVariableMapping(elementReader, context);
+                if (variableMapping == null) {
+                    variableMapping = javaXmlTypeMapping.variableMapping;
+                    if (variableMapping != null) {
+                        variableMapping.clear();
+                    } else {
+                        variableMapping = new ArrayList<VariableMapping>();
+                    }
+                }
+                variableMapping.add(variableMappingItem);
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "java-type"), new QName("http://java.sun.com/xml/ns/javaee", "root-type-qname"), new QName("http://java.sun.com/xml/ns/javaee", "anonymous-type-qname"), new QName("http://java.sun.com/xml/ns/javaee", "qname-scope"), new QName("http://java.sun.com/xml/ns/javaee", "variable-mapping"));
+            }
+        }
+        if (variableMapping != null) {
+            javaXmlTypeMapping.variableMapping = variableMapping;
+        }
+
+        context.afterUnmarshal(javaXmlTypeMapping, LifecycleCallback.NONE);
+
+        return javaXmlTypeMapping;
+    }
+
+    public final JavaXmlTypeMapping read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, JavaXmlTypeMapping javaXmlTypeMapping, RuntimeContext context)
+            throws Exception {
+        if (javaXmlTypeMapping == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (JavaXmlTypeMapping.class != javaXmlTypeMapping.getClass()) {
+            context.unexpectedSubclass(writer, javaXmlTypeMapping, JavaXmlTypeMapping.class);
+            return;
+        }
+
+        context.beforeMarshal(javaXmlTypeMapping, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = javaXmlTypeMapping.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(javaXmlTypeMapping, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: javaType
+        String javaTypeRaw = javaXmlTypeMapping.javaType;
+        String javaType = null;
+        try {
+            javaType = Adapters.collapsedStringAdapterAdapter.marshal(javaTypeRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(javaXmlTypeMapping, "javaType", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (javaType != null) {
+            writer.writeStartElement(prefix, "java-type", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(javaType);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(javaXmlTypeMapping, "javaType");
+        }
+
+        // ELEMENT: rootTypeQname
+        QName rootTypeQname = javaXmlTypeMapping.rootTypeQname;
+        if (rootTypeQname != null) {
+            writer.writeStartElement(prefix, "root-type-qname", "http://java.sun.com/xml/ns/javaee");
+            writer.writeQName(rootTypeQname);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: anonymousTypeQname
+        String anonymousTypeQnameRaw = javaXmlTypeMapping.anonymousTypeQname;
+        String anonymousTypeQname = null;
+        try {
+            anonymousTypeQname = Adapters.collapsedStringAdapterAdapter.marshal(anonymousTypeQnameRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(javaXmlTypeMapping, "anonymousTypeQname", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (anonymousTypeQname != null) {
+            writer.writeStartElement(prefix, "anonymous-type-qname", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(anonymousTypeQname);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: qnameScope
+        String qnameScopeRaw = javaXmlTypeMapping.qnameScope;
+        String qnameScope = null;
+        try {
+            qnameScope = Adapters.collapsedStringAdapterAdapter.marshal(qnameScopeRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(javaXmlTypeMapping, "qnameScope", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (qnameScope != null) {
+            writer.writeStartElement(prefix, "qname-scope", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(qnameScope);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(javaXmlTypeMapping, "qnameScope");
+        }
+
+        // ELEMENT: variableMapping
+        List<VariableMapping> variableMapping = javaXmlTypeMapping.variableMapping;
+        if (variableMapping != null) {
+            for (VariableMapping variableMappingItem : variableMapping) {
+                if (variableMappingItem != null) {
+                    writer.writeStartElement(prefix, "variable-mapping", "http://java.sun.com/xml/ns/javaee");
+                    writeVariableMapping(writer, variableMappingItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        context.afterMarshal(javaXmlTypeMapping, LifecycleCallback.NONE);
+    }
+
+}

Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JavaXmlTypeMapping$JAXB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspConfig$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspConfig%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspConfig$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspConfig$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,209 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+    * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBObject;
+import com.envoisolutions.sxc.jaxb.LifecycleCallback;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.Attribute;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+import com.envoisolutions.sxc.util.XoXMLStreamWriter;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.apache.openejb.jee.JspPropertyGroup$JAXB.readJspPropertyGroup;
+import static org.apache.openejb.jee.JspPropertyGroup$JAXB.writeJspPropertyGroup;
+import static org.apache.openejb.jee.Taglib$JAXB.readTaglib;
+import static org.apache.openejb.jee.Taglib$JAXB.writeTaglib;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class JspConfig$JAXB
+        extends JAXBObject<JspConfig> {
+
+
+    public JspConfig$JAXB() {
+        super(JspConfig.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "jsp-configType".intern()), Taglib$JAXB.class, JspPropertyGroup$JAXB.class);
+    }
+
+    public static JspConfig readJspConfig(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeJspConfig(XoXMLStreamWriter writer, JspConfig jspConfig, RuntimeContext context)
+            throws Exception {
+        _write(writer, jspConfig, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, JspConfig jspConfig, RuntimeContext context)
+            throws Exception {
+        _write(writer, jspConfig, context);
+    }
+
+    public final static JspConfig _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        JspConfig jspConfig = new JspConfig();
+        context.beforeUnmarshal(jspConfig, LifecycleCallback.NONE);
+
+        List<Taglib> taglib = null;
+        List<JspPropertyGroup> jspPropertyGroup = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("jsp-configType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, JspConfig.class);
+            }
+        }
+
+        // Read attributes
+        for (Attribute attribute : reader.getAttributes()) {
+            if (("id" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: id
+                String id = Adapters.collapsedStringAdapterAdapter.unmarshal(attribute.getValue());
+                context.addXmlId(reader, id, jspConfig);
+                jspConfig.id = id;
+            } else if (XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI != attribute.getNamespace()) {
+                context.unexpectedAttribute(attribute, new QName("", "id"));
+            }
+        }
+
+        // Read elements
+        for (XoXMLStreamReader elementReader : reader.getChildElements()) {
+            if (("taglib" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: taglib
+                Taglib taglibItem = readTaglib(elementReader, context);
+                if (taglib == null) {
+                    taglib = jspConfig.taglib;
+                    if (taglib != null) {
+                        taglib.clear();
+                    } else {
+                        taglib = new ArrayList<Taglib>();
+                    }
+                }
+                taglib.add(taglibItem);
+            } else if (("jsp-property-group" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: jspPropertyGroup
+                JspPropertyGroup jspPropertyGroupItem = readJspPropertyGroup(elementReader, context);
+                if (jspPropertyGroup == null) {
+                    jspPropertyGroup = jspConfig.jspPropertyGroup;
+                    if (jspPropertyGroup != null) {
+                        jspPropertyGroup.clear();
+                    } else {
+                        jspPropertyGroup = new ArrayList<JspPropertyGroup>();
+                    }
+                }
+                jspPropertyGroup.add(jspPropertyGroupItem);
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "taglib"), new QName("http://java.sun.com/xml/ns/javaee", "jsp-property-group"));
+            }
+        }
+        if (taglib != null) {
+            jspConfig.taglib = taglib;
+        }
+        if (jspPropertyGroup != null) {
+            jspConfig.jspPropertyGroup = jspPropertyGroup;
+        }
+
+        context.afterUnmarshal(jspConfig, LifecycleCallback.NONE);
+
+        return jspConfig;
+    }
+
+    public final JspConfig read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, JspConfig jspConfig, RuntimeContext context)
+            throws Exception {
+        if (jspConfig == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (JspConfig.class != jspConfig.getClass()) {
+            context.unexpectedSubclass(writer, jspConfig, JspConfig.class);
+            return;
+        }
+
+        context.beforeMarshal(jspConfig, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = jspConfig.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(jspConfig, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: taglib
+        List<Taglib> taglib = jspConfig.taglib;
+        if (taglib != null) {
+            for (Taglib taglibItem : taglib) {
+                writer.writeStartElement(prefix, "taglib", "http://java.sun.com/xml/ns/javaee");
+                if (taglibItem != null) {
+                    writeTaglib(writer, taglibItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: jspPropertyGroup
+        List<JspPropertyGroup> jspPropertyGroup = jspConfig.jspPropertyGroup;
+        if (jspPropertyGroup != null) {
+            for (JspPropertyGroup jspPropertyGroupItem : jspPropertyGroup) {
+                if (jspPropertyGroupItem != null) {
+                    writer.writeStartElement(prefix, "jsp-property-group", "http://java.sun.com/xml/ns/javaee");
+                    writeJspPropertyGroup(writer, jspPropertyGroupItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        context.afterMarshal(jspConfig, LifecycleCallback.NONE);
+    }
+
+}

Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspConfig$JAXB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspPropertyGroup$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspPropertyGroup%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspPropertyGroup$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspPropertyGroup$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,533 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+    * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBObject;
+import com.envoisolutions.sxc.jaxb.LifecycleCallback;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.Attribute;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+import com.envoisolutions.sxc.util.XoXMLStreamWriter;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.apache.openejb.jee.Icon$JAXB.readIcon;
+import static org.apache.openejb.jee.Icon$JAXB.writeIcon;
+import static org.apache.openejb.jee.Text$JAXB.readText;
+import static org.apache.openejb.jee.Text$JAXB.writeText;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class JspPropertyGroup$JAXB
+        extends JAXBObject<JspPropertyGroup> {
+
+
+    public JspPropertyGroup$JAXB() {
+        super(JspPropertyGroup.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "jsp-property-groupType".intern()), Text$JAXB.class, Icon$JAXB.class);
+    }
+
+    public static JspPropertyGroup readJspPropertyGroup(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeJspPropertyGroup(XoXMLStreamWriter writer, JspPropertyGroup jspPropertyGroup, RuntimeContext context)
+            throws Exception {
+        _write(writer, jspPropertyGroup, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, JspPropertyGroup jspPropertyGroup, RuntimeContext context)
+            throws Exception {
+        _write(writer, jspPropertyGroup, context);
+    }
+
+    public final static JspPropertyGroup _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        JspPropertyGroup jspPropertyGroup = new JspPropertyGroup();
+        context.beforeUnmarshal(jspPropertyGroup, LifecycleCallback.NONE);
+
+        ArrayList<Text> descriptions = null;
+        ArrayList<Text> displayNames = null;
+        LocalCollection<Icon> icon = null;
+        List<String> urlPattern = null;
+        List<String> includePrelude = null;
+        List<String> includeCoda = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("jsp-property-groupType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, JspPropertyGroup.class);
+            }
+        }
+
+        // Read attributes
+        for (Attribute attribute : reader.getAttributes()) {
+            if (("id" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: id
+                String id = Adapters.collapsedStringAdapterAdapter.unmarshal(attribute.getValue());
+                context.addXmlId(reader, id, jspPropertyGroup);
+                jspPropertyGroup.id = id;
+            } else if (XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI != attribute.getNamespace()) {
+                context.unexpectedAttribute(attribute, new QName("", "id"));
+            }
+        }
+
+        // Read elements
+        for (XoXMLStreamReader elementReader : reader.getChildElements()) {
+            if (("description" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: descriptions
+                Text descriptionsItem = readText(elementReader, context);
+                if (descriptions == null) {
+                    descriptions = new ArrayList<Text>();
+                }
+                descriptions.add(descriptionsItem);
+            } else if (("display-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: displayNames
+                Text displayNamesItem = readText(elementReader, context);
+                if (displayNames == null) {
+                    displayNames = new ArrayList<Text>();
+                }
+                displayNames.add(displayNamesItem);
+            } else if (("icon" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: icon
+                Icon iconItem = readIcon(elementReader, context);
+                if (icon == null) {
+                    icon = jspPropertyGroup.icon;
+                    if (icon != null) {
+                        icon.clear();
+                    } else {
+                        icon = new LocalCollection<Icon>();
+                    }
+                }
+                icon.add(iconItem);
+            } else if (("url-pattern" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: urlPattern
+                String urlPatternItemRaw = elementReader.getElementAsString();
+
+                String urlPatternItem;
+                try {
+                    urlPatternItem = Adapters.trimStringAdapterAdapter.unmarshal(urlPatternItemRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, TrimStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                if (urlPattern == null) {
+                    urlPattern = jspPropertyGroup.urlPattern;
+                    if (urlPattern != null) {
+                        urlPattern.clear();
+                    } else {
+                        urlPattern = new ArrayList<String>();
+                    }
+                }
+                urlPattern.add(urlPatternItem);
+            } else if (("el-ignored" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: elIgnored
+                Boolean elIgnored = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+                jspPropertyGroup.elIgnored = elIgnored;
+            } else if (("page-encoding" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: pageEncoding
+                String pageEncodingRaw = elementReader.getElementAsString();
+
+                String pageEncoding;
+                try {
+                    pageEncoding = Adapters.collapsedStringAdapterAdapter.unmarshal(pageEncodingRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                jspPropertyGroup.pageEncoding = pageEncoding;
+            } else if (("scripting-invalid" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: scriptingInvalid
+                Boolean scriptingInvalid = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+                jspPropertyGroup.scriptingInvalid = scriptingInvalid;
+            } else if (("is-xml" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: isXml
+                Boolean isXml = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+                jspPropertyGroup.isXml = isXml;
+            } else if (("include-prelude" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: includePrelude
+                String includePreludeItemRaw = elementReader.getElementAsString();
+
+                String includePreludeItem;
+                try {
+                    includePreludeItem = Adapters.collapsedStringAdapterAdapter.unmarshal(includePreludeItemRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                if (includePrelude == null) {
+                    includePrelude = jspPropertyGroup.includePrelude;
+                    if (includePrelude != null) {
+                        includePrelude.clear();
+                    } else {
+                        includePrelude = new ArrayList<String>();
+                    }
+                }
+                includePrelude.add(includePreludeItem);
+            } else if (("include-coda" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: includeCoda
+                String includeCodaItemRaw = elementReader.getElementAsString();
+
+                String includeCodaItem;
+                try {
+                    includeCodaItem = Adapters.collapsedStringAdapterAdapter.unmarshal(includeCodaItemRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                if (includeCoda == null) {
+                    includeCoda = jspPropertyGroup.includeCoda;
+                    if (includeCoda != null) {
+                        includeCoda.clear();
+                    } else {
+                        includeCoda = new ArrayList<String>();
+                    }
+                }
+                includeCoda.add(includeCodaItem);
+            } else if (("deferred-syntax-allowed-as-literal" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: deferredSyntaxAllowedAsLiteral
+                Boolean deferredSyntaxAllowedAsLiteral = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+                jspPropertyGroup.deferredSyntaxAllowedAsLiteral = deferredSyntaxAllowedAsLiteral;
+            } else if (("trim-directive-whitespaces" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: trimDirectiveWhitespaces
+                Boolean trimDirectiveWhitespaces = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+                jspPropertyGroup.trimDirectiveWhitespaces = trimDirectiveWhitespaces;
+            } else if (("default-content-type" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: defaultContentType
+                String defaultContentTypeRaw = elementReader.getElementAsString();
+
+                String defaultContentType;
+                try {
+                    defaultContentType = Adapters.collapsedStringAdapterAdapter.unmarshal(defaultContentTypeRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                jspPropertyGroup.defaultContentType = defaultContentType;
+            } else if (("buffer" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: buffer
+                String bufferRaw = elementReader.getElementAsString();
+
+                String buffer;
+                try {
+                    buffer = Adapters.collapsedStringAdapterAdapter.unmarshal(bufferRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                jspPropertyGroup.buffer = buffer;
+            } else if (("error-on-undeclared-namespace" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: errorOnUndeclaredNamespace
+                Boolean errorOnUndeclaredNamespace = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+                jspPropertyGroup.errorOnUndeclaredNamespace = errorOnUndeclaredNamespace;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "description"), new QName("http://java.sun.com/xml/ns/javaee", "display-name"), new QName("http://java.sun.com/xml/ns/javaee", "icon"), new QName("http://java.sun.com/xml/ns/javaee", "url-pattern"), new QName("http://java.sun.com/xml/ns/javaee", "el-ignored"), new QName("http://java.sun.com/xml/ns/javaee", "page-encoding"), new QName("http://java.sun.com/xml/ns/javaee", "scripting-invalid"), new QName("http://java.sun.com/xml/ns/javaee", "is-xml"), new QName("http://java.sun.com/xml/ns/javaee", "include-prelude"), new QName("http://java.sun.com/xml/ns/javaee", "include-coda"), new QName("http://java.sun.com/xml/ns/javaee", "deferred-syntax-allowed-as-literal"), new QName("http://java.sun.com/xml/ns/javaee", "trim-directive-whitespaces"), new QName("http://java.sun.com/xml/ns/javaee", "default-content-type"), new QName("http://java.sun.com/xml/ns/javaee", "buffer"), new QNa
 me("http://java.sun.com/xml/ns/javaee", "error-on-undeclared-namespace"));
+            }
+        }
+        if (descriptions != null) {
+            try {
+                jspPropertyGroup.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, JspPropertyGroup.class, "setDescriptions", Text[].class, e);
+            }
+        }
+        if (displayNames != null) {
+            try {
+                jspPropertyGroup.setDisplayNames(displayNames.toArray(new Text[displayNames.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, JspPropertyGroup.class, "setDisplayNames", Text[].class, e);
+            }
+        }
+        if (icon != null) {
+            jspPropertyGroup.icon = icon;
+        }
+        if (urlPattern != null) {
+            jspPropertyGroup.urlPattern = urlPattern;
+        }
+        if (includePrelude != null) {
+            jspPropertyGroup.includePrelude = includePrelude;
+        }
+        if (includeCoda != null) {
+            jspPropertyGroup.includeCoda = includeCoda;
+        }
+
+        context.afterUnmarshal(jspPropertyGroup, LifecycleCallback.NONE);
+
+        return jspPropertyGroup;
+    }
+
+    public final JspPropertyGroup read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, JspPropertyGroup jspPropertyGroup, RuntimeContext context)
+            throws Exception {
+        if (jspPropertyGroup == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (JspPropertyGroup.class != jspPropertyGroup.getClass()) {
+            context.unexpectedSubclass(writer, jspPropertyGroup, JspPropertyGroup.class);
+            return;
+        }
+
+        context.beforeMarshal(jspPropertyGroup, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = jspPropertyGroup.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(jspPropertyGroup, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: descriptions
+        Text[] descriptions = null;
+        try {
+            descriptions = jspPropertyGroup.getDescriptions();
+        } catch (Exception e) {
+            context.getterError(jspPropertyGroup, "descriptions", JspPropertyGroup.class, "getDescriptions", e);
+        }
+        if (descriptions != null) {
+            for (Text descriptionsItem : descriptions) {
+                if (descriptionsItem != null) {
+                    writer.writeStartElement(prefix, "description", "http://java.sun.com/xml/ns/javaee");
+                    writeText(writer, descriptionsItem, context);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(jspPropertyGroup, "descriptions");
+                }
+            }
+        }
+
+        // ELEMENT: displayNames
+        Text[] displayNames = null;
+        try {
+            displayNames = jspPropertyGroup.getDisplayNames();
+        } catch (Exception e) {
+            context.getterError(jspPropertyGroup, "displayNames", JspPropertyGroup.class, "getDisplayNames", e);
+        }
+        if (displayNames != null) {
+            for (Text displayNamesItem : displayNames) {
+                if (displayNamesItem != null) {
+                    writer.writeStartElement(prefix, "display-name", "http://java.sun.com/xml/ns/javaee");
+                    writeText(writer, displayNamesItem, context);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(jspPropertyGroup, "displayNames");
+                }
+            }
+        }
+
+        // ELEMENT: icon
+        LocalCollection<Icon> icon = jspPropertyGroup.icon;
+        if (icon != null) {
+            for (Icon iconItem : icon) {
+                if (iconItem != null) {
+                    writer.writeStartElement(prefix, "icon", "http://java.sun.com/xml/ns/javaee");
+                    writeIcon(writer, iconItem, context);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(jspPropertyGroup, "icon");
+                }
+            }
+        }
+
+        // ELEMENT: urlPattern
+        List<String> urlPatternRaw = jspPropertyGroup.urlPattern;
+        if (urlPatternRaw != null) {
+            for (String urlPatternItem : urlPatternRaw) {
+                String urlPattern = null;
+                try {
+                    urlPattern = Adapters.trimStringAdapterAdapter.marshal(urlPatternItem);
+                } catch (Exception e) {
+                    context.xmlAdapterError(jspPropertyGroup, "urlPattern", TrimStringAdapter.class, List.class, List.class, e);
+                }
+                if (urlPattern != null) {
+                    writer.writeStartElement(prefix, "url-pattern", "http://java.sun.com/xml/ns/javaee");
+                    writer.writeCharacters(urlPattern);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(jspPropertyGroup, "urlPattern");
+                }
+            }
+        }
+
+        // ELEMENT: elIgnored
+        Boolean elIgnored = jspPropertyGroup.elIgnored;
+        if (elIgnored != null) {
+            writer.writeStartElement(prefix, "el-ignored", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(Boolean.toString(elIgnored));
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: pageEncoding
+        String pageEncodingRaw = jspPropertyGroup.pageEncoding;
+        String pageEncoding = null;
+        try {
+            pageEncoding = Adapters.collapsedStringAdapterAdapter.marshal(pageEncodingRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(jspPropertyGroup, "pageEncoding", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (pageEncoding != null) {
+            writer.writeStartElement(prefix, "page-encoding", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(pageEncoding);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: scriptingInvalid
+        Boolean scriptingInvalid = jspPropertyGroup.scriptingInvalid;
+        if (scriptingInvalid != null) {
+            writer.writeStartElement(prefix, "scripting-invalid", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(Boolean.toString(scriptingInvalid));
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: isXml
+        Boolean isXml = jspPropertyGroup.isXml;
+        if (isXml != null) {
+            writer.writeStartElement(prefix, "is-xml", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(Boolean.toString(isXml));
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: includePrelude
+        List<String> includePreludeRaw = jspPropertyGroup.includePrelude;
+        if (includePreludeRaw != null) {
+            for (String includePreludeItem : includePreludeRaw) {
+                String includePrelude = null;
+                try {
+                    includePrelude = Adapters.collapsedStringAdapterAdapter.marshal(includePreludeItem);
+                } catch (Exception e) {
+                    context.xmlAdapterError(jspPropertyGroup, "includePrelude", CollapsedStringAdapter.class, List.class, List.class, e);
+                }
+                if (includePrelude != null) {
+                    writer.writeStartElement(prefix, "include-prelude", "http://java.sun.com/xml/ns/javaee");
+                    writer.writeCharacters(includePrelude);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: includeCoda
+        List<String> includeCodaRaw = jspPropertyGroup.includeCoda;
+        if (includeCodaRaw != null) {
+            for (String includeCodaItem : includeCodaRaw) {
+                String includeCoda = null;
+                try {
+                    includeCoda = Adapters.collapsedStringAdapterAdapter.marshal(includeCodaItem);
+                } catch (Exception e) {
+                    context.xmlAdapterError(jspPropertyGroup, "includeCoda", CollapsedStringAdapter.class, List.class, List.class, e);
+                }
+                if (includeCoda != null) {
+                    writer.writeStartElement(prefix, "include-coda", "http://java.sun.com/xml/ns/javaee");
+                    writer.writeCharacters(includeCoda);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: deferredSyntaxAllowedAsLiteral
+        Boolean deferredSyntaxAllowedAsLiteral = jspPropertyGroup.deferredSyntaxAllowedAsLiteral;
+        if (deferredSyntaxAllowedAsLiteral != null) {
+            writer.writeStartElement(prefix, "deferred-syntax-allowed-as-literal", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(Boolean.toString(deferredSyntaxAllowedAsLiteral));
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: trimDirectiveWhitespaces
+        Boolean trimDirectiveWhitespaces = jspPropertyGroup.trimDirectiveWhitespaces;
+        if (trimDirectiveWhitespaces != null) {
+            writer.writeStartElement(prefix, "trim-directive-whitespaces", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(Boolean.toString(trimDirectiveWhitespaces));
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: defaultContentType
+        String defaultContentTypeRaw = jspPropertyGroup.defaultContentType;
+        String defaultContentType = null;
+        try {
+            defaultContentType = Adapters.collapsedStringAdapterAdapter.marshal(defaultContentTypeRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(jspPropertyGroup, "defaultContentType", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (defaultContentType != null) {
+            writer.writeStartElement(prefix, "default-content-type", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(defaultContentType);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: buffer
+        String bufferRaw = jspPropertyGroup.buffer;
+        String buffer = null;
+        try {
+            buffer = Adapters.collapsedStringAdapterAdapter.marshal(bufferRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(jspPropertyGroup, "buffer", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (buffer != null) {
+            writer.writeStartElement(prefix, "buffer", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(buffer);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: errorOnUndeclaredNamespace
+        Boolean errorOnUndeclaredNamespace = jspPropertyGroup.errorOnUndeclaredNamespace;
+        if (errorOnUndeclaredNamespace != null) {
+            writer.writeStartElement(prefix, "error-on-undeclared-namespace", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(Boolean.toString(errorOnUndeclaredNamespace));
+            writer.writeEndElement();
+        }
+
+        context.afterMarshal(jspPropertyGroup, LifecycleCallback.NONE);
+    }
+
+}

Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/JspPropertyGroup$JAXB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/License$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/License%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/License$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/License$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,192 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+    * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBObject;
+import com.envoisolutions.sxc.jaxb.LifecycleCallback;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.Attribute;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+import com.envoisolutions.sxc.util.XoXMLStreamWriter;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+import static org.apache.openejb.jee.Text$JAXB.readText;
+import static org.apache.openejb.jee.Text$JAXB.writeText;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class License$JAXB
+        extends JAXBObject<License> {
+
+
+    public License$JAXB() {
+        super(License.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "licenseType".intern()), Text$JAXB.class);
+    }
+
+    public static License readLicense(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeLicense(XoXMLStreamWriter writer, License license, RuntimeContext context)
+            throws Exception {
+        _write(writer, license, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, License license, RuntimeContext context)
+            throws Exception {
+        _write(writer, license, context);
+    }
+
+    public final static License _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        License license = new License();
+        context.beforeUnmarshal(license, LifecycleCallback.NONE);
+
+        ArrayList<Text> descriptions = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("licenseType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, License.class);
+            }
+        }
+
+        // Read attributes
+        for (Attribute attribute : reader.getAttributes()) {
+            if (("id" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: id
+                String id = Adapters.collapsedStringAdapterAdapter.unmarshal(attribute.getValue());
+                context.addXmlId(reader, id, license);
+                license.id = id;
+            } else if (XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI != attribute.getNamespace()) {
+                context.unexpectedAttribute(attribute, new QName("", "id"));
+            }
+        }
+
+        // Read elements
+        for (XoXMLStreamReader elementReader : reader.getChildElements()) {
+            if (("description" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: descriptions
+                Text descriptionsItem = readText(elementReader, context);
+                if (descriptions == null) {
+                    descriptions = new ArrayList<Text>();
+                }
+                descriptions.add(descriptionsItem);
+            } else if (("license-required" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: licenseRequired
+                Boolean licenseRequired = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+                license.licenseRequired = licenseRequired;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "description"), new QName("http://java.sun.com/xml/ns/javaee", "license-required"));
+            }
+        }
+        if (descriptions != null) {
+            try {
+                license.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, License.class, "setDescriptions", Text[].class, e);
+            }
+        }
+
+        context.afterUnmarshal(license, LifecycleCallback.NONE);
+
+        return license;
+    }
+
+    public final License read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, License license, RuntimeContext context)
+            throws Exception {
+        if (license == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (License.class != license.getClass()) {
+            context.unexpectedSubclass(writer, license, License.class);
+            return;
+        }
+
+        context.beforeMarshal(license, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = license.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(license, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: descriptions
+        Text[] descriptions = null;
+        try {
+            descriptions = license.getDescriptions();
+        } catch (Exception e) {
+            context.getterError(license, "descriptions", License.class, "getDescriptions", e);
+        }
+        if (descriptions != null) {
+            for (Text descriptionsItem : descriptions) {
+                if (descriptionsItem != null) {
+                    writer.writeStartElement(prefix, "description", "http://java.sun.com/xml/ns/javaee");
+                    writeText(writer, descriptionsItem, context);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(license, "descriptions");
+                }
+            }
+        }
+
+        // ELEMENT: licenseRequired
+        Boolean licenseRequired = license.licenseRequired;
+        writer.writeStartElement(prefix, "license-required", "http://java.sun.com/xml/ns/javaee");
+        writer.writeCharacters(Boolean.toString(licenseRequired));
+        writer.writeEndElement();
+
+        context.afterMarshal(license, LifecycleCallback.NONE);
+    }
+
+}

Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/License$JAXB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/LifecycleCallback$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/LifecycleCallback%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/LifecycleCallback$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/LifecycleCallback$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,182 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+    * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBObject;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.Attribute;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+import com.envoisolutions.sxc.util.XoXMLStreamWriter;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.namespace.QName;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class LifecycleCallback$JAXB
+        extends JAXBObject<org.apache.openejb.jee.LifecycleCallback> {
+
+
+    public LifecycleCallback$JAXB() {
+        super(org.apache.openejb.jee.LifecycleCallback.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "lifecycle-callbackType".intern()));
+    }
+
+    public static org.apache.openejb.jee.LifecycleCallback readLifecycleCallback(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeLifecycleCallback(XoXMLStreamWriter writer, org.apache.openejb.jee.LifecycleCallback lifecycleCallback, RuntimeContext context)
+            throws Exception {
+        _write(writer, lifecycleCallback, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, org.apache.openejb.jee.LifecycleCallback lifecycleCallback, RuntimeContext context)
+            throws Exception {
+        _write(writer, lifecycleCallback, context);
+    }
+
+    public final static org.apache.openejb.jee.LifecycleCallback _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        org.apache.openejb.jee.LifecycleCallback lifecycleCallback = new org.apache.openejb.jee.LifecycleCallback();
+        context.beforeUnmarshal(lifecycleCallback, com.envoisolutions.sxc.jaxb.LifecycleCallback.NONE);
+
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("lifecycle-callbackType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, org.apache.openejb.jee.LifecycleCallback.class);
+            }
+        }
+
+        // Read attributes
+        for (Attribute attribute : reader.getAttributes()) {
+            if (XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI != attribute.getNamespace()) {
+                context.unexpectedAttribute(attribute);
+            }
+        }
+
+        // Read elements
+        for (XoXMLStreamReader elementReader : reader.getChildElements()) {
+            if (("lifecycle-callback-class" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: lifecycleCallbackClass
+                String lifecycleCallbackClassRaw = elementReader.getElementAsString();
+
+                String lifecycleCallbackClass;
+                try {
+                    lifecycleCallbackClass = Adapters.collapsedStringAdapterAdapter.unmarshal(lifecycleCallbackClassRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                lifecycleCallback.lifecycleCallbackClass = lifecycleCallbackClass;
+            } else if (("lifecycle-callback-method" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: lifecycleCallbackMethod
+                String lifecycleCallbackMethodRaw = elementReader.getElementAsString();
+
+                String lifecycleCallbackMethod;
+                try {
+                    lifecycleCallbackMethod = Adapters.collapsedStringAdapterAdapter.unmarshal(lifecycleCallbackMethodRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                lifecycleCallback.lifecycleCallbackMethod = lifecycleCallbackMethod;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "lifecycle-callback-class"), new QName("http://java.sun.com/xml/ns/javaee", "lifecycle-callback-method"));
+            }
+        }
+
+        context.afterUnmarshal(lifecycleCallback, com.envoisolutions.sxc.jaxb.LifecycleCallback.NONE);
+
+        return lifecycleCallback;
+    }
+
+    public final org.apache.openejb.jee.LifecycleCallback read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, org.apache.openejb.jee.LifecycleCallback lifecycleCallback, RuntimeContext context)
+            throws Exception {
+        if (lifecycleCallback == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (org.apache.openejb.jee.LifecycleCallback.class != lifecycleCallback.getClass()) {
+            context.unexpectedSubclass(writer, lifecycleCallback, org.apache.openejb.jee.LifecycleCallback.class);
+            return;
+        }
+
+        context.beforeMarshal(lifecycleCallback, com.envoisolutions.sxc.jaxb.LifecycleCallback.NONE);
+
+
+        // ELEMENT: lifecycleCallbackClass
+        String lifecycleCallbackClassRaw = lifecycleCallback.lifecycleCallbackClass;
+        String lifecycleCallbackClass = null;
+        try {
+            lifecycleCallbackClass = Adapters.collapsedStringAdapterAdapter.marshal(lifecycleCallbackClassRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(lifecycleCallback, "lifecycleCallbackClass", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (lifecycleCallbackClass != null) {
+            writer.writeStartElement(prefix, "lifecycle-callback-class", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(lifecycleCallbackClass);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: lifecycleCallbackMethod
+        String lifecycleCallbackMethodRaw = lifecycleCallback.lifecycleCallbackMethod;
+        String lifecycleCallbackMethod = null;
+        try {
+            lifecycleCallbackMethod = Adapters.collapsedStringAdapterAdapter.marshal(lifecycleCallbackMethodRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(lifecycleCallback, "lifecycleCallbackMethod", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (lifecycleCallbackMethod != null) {
+            writer.writeStartElement(prefix, "lifecycle-callback-method", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(lifecycleCallbackMethod);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(lifecycleCallback, "lifecycleCallbackMethod");
+        }
+
+        context.afterMarshal(lifecycleCallback, com.envoisolutions.sxc.jaxb.LifecycleCallback.NONE);
+    }
+
+}

Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/LifecycleCallback$JAXB.java
------------------------------------------------------------------------------
    svn:eol-style = native