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 [23/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/MethodIntf$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodIntf%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodIntf$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodIntf$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,87 @@
+/*
+ * 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.JAXBEnum;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+
+import javax.xml.namespace.QName;
+
+public class MethodIntf$JAXB
+        extends JAXBEnum<MethodIntf> {
+
+
+    public MethodIntf$JAXB() {
+        super(MethodIntf.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "methodIntf".intern()));
+    }
+
+    public MethodIntf parse(XoXMLStreamReader reader, RuntimeContext context, String value)
+            throws Exception {
+        return parseMethodIntf(reader, context, value);
+    }
+
+    public String toString(Object bean, String parameterName, RuntimeContext context, MethodIntf methodIntf)
+            throws Exception {
+        return toStringMethodIntf(bean, parameterName, context, methodIntf);
+    }
+
+    public static MethodIntf parseMethodIntf(XoXMLStreamReader reader, RuntimeContext context, String value)
+            throws Exception {
+        if ("Home".equals(value)) {
+            return MethodIntf.HOME;
+        } else if ("Remote".equals(value)) {
+            return MethodIntf.REMOTE;
+        } else if ("LocalHome".equals(value)) {
+            return MethodIntf.LOCALHOME;
+        } else if ("Local".equals(value)) {
+            return MethodIntf.LOCAL;
+        } else if ("ServiceEndpoint".equals(value)) {
+            return MethodIntf.SERVICEENDPOINT;
+        } else if ("Timer".equals(value)) {
+            return MethodIntf.TIMER;
+        } else if ("MessageEndpoint".equals(value)) {
+            return MethodIntf.MESSAGEENDPOINT;
+        } else {
+            context.unexpectedEnumValue(reader, MethodIntf.class, value, "Home", "Remote", "LocalHome", "Local", "ServiceEndpoint", "Timer", "MessageEndpoint");
+            return null;
+        }
+    }
+
+    public static String toStringMethodIntf(Object bean, String parameterName, RuntimeContext context, MethodIntf methodIntf)
+            throws Exception {
+        if (MethodIntf.HOME == methodIntf) {
+            return "Home";
+        } else if (MethodIntf.REMOTE == methodIntf) {
+            return "Remote";
+        } else if (MethodIntf.LOCALHOME == methodIntf) {
+            return "LocalHome";
+        } else if (MethodIntf.LOCAL == methodIntf) {
+            return "Local";
+        } else if (MethodIntf.SERVICEENDPOINT == methodIntf) {
+            return "ServiceEndpoint";
+        } else if (MethodIntf.TIMER == methodIntf) {
+            return "Timer";
+        } else if (MethodIntf.MESSAGEENDPOINT == methodIntf) {
+            return "MessageEndpoint";
+        } else {
+            context.unexpectedEnumConst(bean, parameterName, methodIntf, MethodIntf.HOME, MethodIntf.REMOTE, MethodIntf.LOCALHOME, MethodIntf.LOCAL, MethodIntf.SERVICEENDPOINT, MethodIntf.TIMER, MethodIntf.MESSAGEENDPOINT);
+            return null;
+        }
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodParamPartsMapping$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodParamPartsMapping%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodParamPartsMapping$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodParamPartsMapping$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,205 @@
+/*
+ * 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.math.BigInteger;
+
+import static org.apache.openejb.jee.WsdlMessageMapping$JAXB.readWsdlMessageMapping;
+import static org.apache.openejb.jee.WsdlMessageMapping$JAXB.writeWsdlMessageMapping;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class MethodParamPartsMapping$JAXB
+        extends JAXBObject<MethodParamPartsMapping> {
+
+
+    public MethodParamPartsMapping$JAXB() {
+        super(MethodParamPartsMapping.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "method-param-parts-mappingType".intern()), WsdlMessageMapping$JAXB.class);
+    }
+
+    public static MethodParamPartsMapping readMethodParamPartsMapping(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeMethodParamPartsMapping(XoXMLStreamWriter writer, MethodParamPartsMapping methodParamPartsMapping, RuntimeContext context)
+            throws Exception {
+        _write(writer, methodParamPartsMapping, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, MethodParamPartsMapping methodParamPartsMapping, RuntimeContext context)
+            throws Exception {
+        _write(writer, methodParamPartsMapping, context);
+    }
+
+    public final static MethodParamPartsMapping _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        MethodParamPartsMapping methodParamPartsMapping = new MethodParamPartsMapping();
+        context.beforeUnmarshal(methodParamPartsMapping, LifecycleCallback.NONE);
+
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("method-param-parts-mappingType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, MethodParamPartsMapping.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, methodParamPartsMapping);
+                methodParamPartsMapping.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 (("param-position" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: paramPosition
+                BigInteger paramPosition = new BigInteger(elementReader.getElementAsString());
+                methodParamPartsMapping.paramPosition = paramPosition;
+            } else if (("param-type" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: paramType
+                String paramTypeRaw = elementReader.getElementAsString();
+
+                String paramType;
+                try {
+                    paramType = Adapters.collapsedStringAdapterAdapter.unmarshal(paramTypeRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                methodParamPartsMapping.paramType = paramType;
+            } else if (("wsdl-message-mapping" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: wsdlMessageMapping
+                WsdlMessageMapping wsdlMessageMapping = readWsdlMessageMapping(elementReader, context);
+                methodParamPartsMapping.wsdlMessageMapping = wsdlMessageMapping;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "param-position"), new QName("http://java.sun.com/xml/ns/javaee", "param-type"), new QName("http://java.sun.com/xml/ns/javaee", "wsdl-message-mapping"));
+            }
+        }
+
+        context.afterUnmarshal(methodParamPartsMapping, LifecycleCallback.NONE);
+
+        return methodParamPartsMapping;
+    }
+
+    public final MethodParamPartsMapping read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, MethodParamPartsMapping methodParamPartsMapping, RuntimeContext context)
+            throws Exception {
+        if (methodParamPartsMapping == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (MethodParamPartsMapping.class != methodParamPartsMapping.getClass()) {
+            context.unexpectedSubclass(writer, methodParamPartsMapping, MethodParamPartsMapping.class);
+            return;
+        }
+
+        context.beforeMarshal(methodParamPartsMapping, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = methodParamPartsMapping.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(methodParamPartsMapping, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: paramPosition
+        BigInteger paramPosition = methodParamPartsMapping.paramPosition;
+        if (paramPosition != null) {
+            writer.writeStartElement(prefix, "param-position", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(paramPosition.toString());
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(methodParamPartsMapping, "paramPosition");
+        }
+
+        // ELEMENT: paramType
+        String paramTypeRaw = methodParamPartsMapping.paramType;
+        String paramType = null;
+        try {
+            paramType = Adapters.collapsedStringAdapterAdapter.marshal(paramTypeRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(methodParamPartsMapping, "paramType", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (paramType != null) {
+            writer.writeStartElement(prefix, "param-type", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(paramType);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(methodParamPartsMapping, "paramType");
+        }
+
+        // ELEMENT: wsdlMessageMapping
+        WsdlMessageMapping wsdlMessageMapping = methodParamPartsMapping.wsdlMessageMapping;
+        if (wsdlMessageMapping != null) {
+            writer.writeStartElement(prefix, "wsdl-message-mapping", "http://java.sun.com/xml/ns/javaee");
+            writeWsdlMessageMapping(writer, wsdlMessageMapping, context);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(methodParamPartsMapping, "wsdlMessageMapping");
+        }
+
+        context.afterMarshal(methodParamPartsMapping, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodParams$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodParams%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodParams$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodParams$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,190 @@
+/*
+ * 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;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class MethodParams$JAXB
+        extends JAXBObject<MethodParams> {
+
+
+    public MethodParams$JAXB() {
+        super(MethodParams.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "method-paramsType".intern()));
+    }
+
+    public static MethodParams readMethodParams(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeMethodParams(XoXMLStreamWriter writer, MethodParams methodParams, RuntimeContext context)
+            throws Exception {
+        _write(writer, methodParams, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, MethodParams methodParams, RuntimeContext context)
+            throws Exception {
+        _write(writer, methodParams, context);
+    }
+
+    public final static MethodParams _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        MethodParams methodParams = new MethodParams();
+        context.beforeUnmarshal(methodParams, LifecycleCallback.NONE);
+
+        List<String> methodParam = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("method-paramsType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, MethodParams.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, methodParams);
+                methodParams.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 (("method-param" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: methodParam
+                String methodParamItemRaw = elementReader.getElementAsString();
+
+                String methodParamItem;
+                try {
+                    methodParamItem = Adapters.collapsedStringAdapterAdapter.unmarshal(methodParamItemRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                if (methodParam == null) {
+                    methodParam = methodParams.methodParam;
+                    if (methodParam != null) {
+                        methodParam.clear();
+                    } else {
+                        methodParam = new ArrayList<String>();
+                    }
+                }
+                methodParam.add(methodParamItem);
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "method-param"));
+            }
+        }
+        if (methodParam != null) {
+            methodParams.methodParam = methodParam;
+        }
+
+        context.afterUnmarshal(methodParams, LifecycleCallback.NONE);
+
+        return methodParams;
+    }
+
+    public final MethodParams read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, MethodParams methodParams, RuntimeContext context)
+            throws Exception {
+        if (methodParams == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        if (MethodParams.class != methodParams.getClass()) {
+            context.unexpectedSubclass(writer, methodParams, MethodParams.class);
+            return;
+        }
+
+        context.beforeMarshal(methodParams, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = methodParams.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(methodParams, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: methodParam
+        List<String> methodParamRaw = methodParams.methodParam;
+        if (methodParamRaw != null) {
+            for (String methodParamItem : methodParamRaw) {
+                String methodParam = null;
+                try {
+                    methodParam = Adapters.collapsedStringAdapterAdapter.marshal(methodParamItem);
+                } catch (Exception e) {
+                    context.xmlAdapterError(methodParams, "methodParam", CollapsedStringAdapter.class, List.class, List.class, e);
+                }
+                if (methodParam != null) {
+                    writer.writeStartElementWithAutoPrefix("http://java.sun.com/xml/ns/javaee", "method-param");
+                    writer.writeCharacters(methodParam);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(methodParams, "methodParam");
+                }
+            }
+        }
+
+        context.afterMarshal(methodParams, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodPermission$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodPermission%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodPermission$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MethodPermission$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.Empty$JAXB.readEmpty;
+import static org.apache.openejb.jee.Empty$JAXB.writeEmpty;
+import static org.apache.openejb.jee.Method$JAXB.readMethod;
+import static org.apache.openejb.jee.Method$JAXB.writeMethod;
+import static org.apache.openejb.jee.Text$JAXB.readText;
+import static org.apache.openejb.jee.Text$JAXB.writeText;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class MethodPermission$JAXB
+        extends JAXBObject<MethodPermission> {
+
+
+    public MethodPermission$JAXB() {
+        super(MethodPermission.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "method-permissionType".intern()), Text$JAXB.class, Empty$JAXB.class, Method$JAXB.class);
+    }
+
+    public static MethodPermission readMethodPermission(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeMethodPermission(XoXMLStreamWriter writer, MethodPermission methodPermission, RuntimeContext context)
+            throws Exception {
+        _write(writer, methodPermission, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, MethodPermission methodPermission, RuntimeContext context)
+            throws Exception {
+        _write(writer, methodPermission, context);
+    }
+
+    public final static MethodPermission _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        MethodPermission methodPermission = new MethodPermission();
+        context.beforeUnmarshal(methodPermission, LifecycleCallback.NONE);
+
+        ArrayList<Text> descriptions = null;
+        List<String> roleName = null;
+        List<Method> method = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("method-permissionType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, MethodPermission.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, methodPermission);
+                methodPermission.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 (("role-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: roleName
+                String roleNameItemRaw = elementReader.getElementAsString();
+
+                String roleNameItem;
+                try {
+                    roleNameItem = Adapters.collapsedStringAdapterAdapter.unmarshal(roleNameItemRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                if (roleName == null) {
+                    roleName = methodPermission.roleName;
+                    if (roleName != null) {
+                        roleName.clear();
+                    } else {
+                        roleName = new ArrayList<String>();
+                    }
+                }
+                roleName.add(roleNameItem);
+            } else if (("unchecked" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: unchecked
+                Empty unchecked = readEmpty(elementReader, context);
+                methodPermission.unchecked = unchecked;
+            } else if (("method" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: method
+                Method methodItem = readMethod(elementReader, context);
+                if (method == null) {
+                    method = methodPermission.method;
+                    if (method != null) {
+                        method.clear();
+                    } else {
+                        method = new ArrayList<Method>();
+                    }
+                }
+                method.add(methodItem);
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "description"), new QName("http://java.sun.com/xml/ns/javaee", "role-name"), new QName("http://java.sun.com/xml/ns/javaee", "unchecked"), new QName("http://java.sun.com/xml/ns/javaee", "method"));
+            }
+        }
+        if (descriptions != null) {
+            try {
+                methodPermission.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, MethodPermission.class, "setDescriptions", Text[].class, e);
+            }
+        }
+        if (roleName != null) {
+            methodPermission.roleName = roleName;
+        }
+        if (method != null) {
+            methodPermission.method = method;
+        }
+
+        context.afterUnmarshal(methodPermission, LifecycleCallback.NONE);
+
+        return methodPermission;
+    }
+
+    public final MethodPermission read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, MethodPermission methodPermission, RuntimeContext context)
+            throws Exception {
+        if (methodPermission == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (MethodPermission.class != methodPermission.getClass()) {
+            context.unexpectedSubclass(writer, methodPermission, MethodPermission.class);
+            return;
+        }
+
+        context.beforeMarshal(methodPermission, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = methodPermission.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(methodPermission, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: descriptions
+        Text[] descriptions = null;
+        try {
+            descriptions = methodPermission.getDescriptions();
+        } catch (Exception e) {
+            context.getterError(methodPermission, "descriptions", MethodPermission.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(methodPermission, "descriptions");
+                }
+            }
+        }
+
+        // ELEMENT: roleName
+        List<String> roleNameRaw = methodPermission.roleName;
+        if (roleNameRaw != null) {
+            for (String roleNameItem : roleNameRaw) {
+                String roleName = null;
+                try {
+                    roleName = Adapters.collapsedStringAdapterAdapter.marshal(roleNameItem);
+                } catch (Exception e) {
+                    context.xmlAdapterError(methodPermission, "roleName", CollapsedStringAdapter.class, List.class, List.class, e);
+                }
+                if (roleName != null) {
+                    writer.writeStartElement(prefix, "role-name", "http://java.sun.com/xml/ns/javaee");
+                    writer.writeCharacters(roleName);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(methodPermission, "roleName");
+                }
+            }
+        }
+
+        // ELEMENT: unchecked
+        Empty unchecked = methodPermission.unchecked;
+        if (unchecked != null) {
+            writer.writeStartElement(prefix, "unchecked", "http://java.sun.com/xml/ns/javaee");
+            writeEmpty(writer, unchecked, context);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: method
+        List<Method> method = methodPermission.method;
+        if (method != null) {
+            for (Method methodItem : method) {
+                if (methodItem != null) {
+                    writer.writeStartElement(prefix, "method", "http://java.sun.com/xml/ns/javaee");
+                    writeMethod(writer, methodItem, context);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(methodPermission, "method");
+                }
+            }
+        }
+
+        context.afterMarshal(methodPermission, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MimeMapping$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MimeMapping%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MimeMapping$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MimeMapping$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,202 @@
+/*
+ * 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;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class MimeMapping$JAXB
+        extends JAXBObject<MimeMapping> {
+
+
+    public MimeMapping$JAXB() {
+        super(MimeMapping.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "mime-mappingType".intern()));
+    }
+
+    public static MimeMapping readMimeMapping(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeMimeMapping(XoXMLStreamWriter writer, MimeMapping mimeMapping, RuntimeContext context)
+            throws Exception {
+        _write(writer, mimeMapping, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, MimeMapping mimeMapping, RuntimeContext context)
+            throws Exception {
+        _write(writer, mimeMapping, context);
+    }
+
+    public final static MimeMapping _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        MimeMapping mimeMapping = new MimeMapping();
+        context.beforeUnmarshal(mimeMapping, LifecycleCallback.NONE);
+
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("mime-mappingType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, MimeMapping.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, mimeMapping);
+                mimeMapping.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 (("extension" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: extension
+                String extensionRaw = elementReader.getElementAsString();
+
+                String extension;
+                try {
+                    extension = Adapters.collapsedStringAdapterAdapter.unmarshal(extensionRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                mimeMapping.extension = extension;
+            } else if (("mime-type" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: mimeType
+                String mimeTypeRaw = elementReader.getElementAsString();
+
+                String mimeType;
+                try {
+                    mimeType = Adapters.collapsedStringAdapterAdapter.unmarshal(mimeTypeRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                mimeMapping.mimeType = mimeType;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "extension"), new QName("http://java.sun.com/xml/ns/javaee", "mime-type"));
+            }
+        }
+
+        context.afterUnmarshal(mimeMapping, LifecycleCallback.NONE);
+
+        return mimeMapping;
+    }
+
+    public final MimeMapping read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, MimeMapping mimeMapping, RuntimeContext context)
+            throws Exception {
+        if (mimeMapping == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (MimeMapping.class != mimeMapping.getClass()) {
+            context.unexpectedSubclass(writer, mimeMapping, MimeMapping.class);
+            return;
+        }
+
+        context.beforeMarshal(mimeMapping, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = mimeMapping.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(mimeMapping, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: extension
+        String extensionRaw = mimeMapping.extension;
+        String extension = null;
+        try {
+            extension = Adapters.collapsedStringAdapterAdapter.marshal(extensionRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(mimeMapping, "extension", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (extension != null) {
+            writer.writeStartElement(prefix, "extension", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(extension);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(mimeMapping, "extension");
+        }
+
+        // ELEMENT: mimeType
+        String mimeTypeRaw = mimeMapping.mimeType;
+        String mimeType = null;
+        try {
+            mimeType = Adapters.collapsedStringAdapterAdapter.marshal(mimeTypeRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(mimeMapping, "mimeType", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (mimeType != null) {
+            writer.writeStartElement(prefix, "mime-type", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(mimeType);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(mimeMapping, "mimeType");
+        }
+
+        context.afterMarshal(mimeMapping, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Module$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Module%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Module$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Module$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,267 @@
+/*
+ * 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 static org.apache.openejb.jee.Web$JAXB.readWeb;
+import static org.apache.openejb.jee.Web$JAXB.writeWeb;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class Module$JAXB
+        extends JAXBObject<Module> {
+
+
+    public Module$JAXB() {
+        super(Module.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "moduleType".intern()), Web$JAXB.class);
+    }
+
+    public static Module readModule(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeModule(XoXMLStreamWriter writer, Module module, RuntimeContext context)
+            throws Exception {
+        _write(writer, module, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, Module module, RuntimeContext context)
+            throws Exception {
+        _write(writer, module, context);
+    }
+
+    public final static Module _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        Module module = new Module();
+        context.beforeUnmarshal(module, LifecycleCallback.NONE);
+
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("moduleType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, Module.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, module);
+                module.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 (("connector" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: connector
+                String connectorRaw = elementReader.getElementAsString();
+
+                String connector;
+                try {
+                    connector = Adapters.collapsedStringAdapterAdapter.unmarshal(connectorRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                module.connector = connector;
+            } else if (("ejb" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: ejb
+                String ejbRaw = elementReader.getElementAsString();
+
+                String ejb;
+                try {
+                    ejb = Adapters.collapsedStringAdapterAdapter.unmarshal(ejbRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                module.ejb = ejb;
+            } else if (("java" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: java
+                String javaRaw = elementReader.getElementAsString();
+
+                String java;
+                try {
+                    java = Adapters.collapsedStringAdapterAdapter.unmarshal(javaRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                module.java = java;
+            } else if (("web" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: web
+                Web web = readWeb(elementReader, context);
+                module.web = web;
+            } else if (("alt-dd" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: altDd
+                String altDdRaw = elementReader.getElementAsString();
+
+                String altDd;
+                try {
+                    altDd = Adapters.collapsedStringAdapterAdapter.unmarshal(altDdRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                module.altDd = altDd;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "connector"), new QName("http://java.sun.com/xml/ns/javaee", "ejb"), new QName("http://java.sun.com/xml/ns/javaee", "java"), new QName("http://java.sun.com/xml/ns/javaee", "web"), new QName("http://java.sun.com/xml/ns/javaee", "alt-dd"));
+            }
+        }
+
+        context.afterUnmarshal(module, LifecycleCallback.NONE);
+
+        return module;
+    }
+
+    public final Module read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, Module module, RuntimeContext context)
+            throws Exception {
+        if (module == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (Module.class != module.getClass()) {
+            context.unexpectedSubclass(writer, module, Module.class);
+            return;
+        }
+
+        context.beforeMarshal(module, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = module.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(module, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: connector
+        String connectorRaw = module.connector;
+        String connector = null;
+        try {
+            connector = Adapters.collapsedStringAdapterAdapter.marshal(connectorRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(module, "connector", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (connector != null) {
+            writer.writeStartElement(prefix, "connector", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(connector);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: ejb
+        String ejbRaw = module.ejb;
+        String ejb = null;
+        try {
+            ejb = Adapters.collapsedStringAdapterAdapter.marshal(ejbRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(module, "ejb", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (ejb != null) {
+            writer.writeStartElement(prefix, "ejb", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(ejb);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: java
+        String javaRaw = module.java;
+        String java = null;
+        try {
+            java = Adapters.collapsedStringAdapterAdapter.marshal(javaRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(module, "java", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (java != null) {
+            writer.writeStartElement(prefix, "java", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(java);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: web
+        Web web = module.web;
+        if (web != null) {
+            writer.writeStartElement(prefix, "web", "http://java.sun.com/xml/ns/javaee");
+            writeWeb(writer, web, context);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: altDd
+        String altDdRaw = module.altDd;
+        String altDd = null;
+        try {
+            altDd = Adapters.collapsedStringAdapterAdapter.marshal(altDdRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(module, "altDd", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (altDd != null) {
+            writer.writeStartElement(prefix, "alt-dd", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(altDd);
+            writer.writeEndElement();
+        }
+
+        context.afterMarshal(module, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MultipartConfig$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MultipartConfig%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MultipartConfig$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/MultipartConfig$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,184 @@
+/*
+ * 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;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class MultipartConfig$JAXB
+        extends JAXBObject<MultipartConfig> {
+
+
+    public MultipartConfig$JAXB() {
+        super(MultipartConfig.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "multipart-configType".intern()));
+    }
+
+    public static MultipartConfig readMultipartConfig(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeMultipartConfig(XoXMLStreamWriter writer, MultipartConfig multipartConfig, RuntimeContext context)
+            throws Exception {
+        _write(writer, multipartConfig, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, MultipartConfig multipartConfig, RuntimeContext context)
+            throws Exception {
+        _write(writer, multipartConfig, context);
+    }
+
+    public final static MultipartConfig _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        MultipartConfig multipartConfig = new MultipartConfig();
+        context.beforeUnmarshal(multipartConfig, LifecycleCallback.NONE);
+
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("multipart-configType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, MultipartConfig.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 (("location" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: location
+                String locationRaw = elementReader.getElementAsString();
+
+                String location;
+                try {
+                    location = Adapters.collapsedStringAdapterAdapter.unmarshal(locationRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                multipartConfig.location = location;
+            } else if (("max-file-size" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: maxFileSize
+                Long maxFileSize = Long.valueOf(elementReader.getElementAsString());
+                multipartConfig.maxFileSize = maxFileSize;
+            } else if (("max-request-size" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: maxRequestSize
+                Long maxRequestSize = Long.valueOf(elementReader.getElementAsString());
+                multipartConfig.maxRequestSize = maxRequestSize;
+            } else if (("file-size-threshold" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: fileSizeThreshold
+                Integer fileSizeThreshold = Integer.valueOf(elementReader.getElementAsString());
+                multipartConfig.fileSizeThreshold = fileSizeThreshold;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "location"), new QName("http://java.sun.com/xml/ns/javaee", "max-file-size"), new QName("http://java.sun.com/xml/ns/javaee", "max-request-size"), new QName("http://java.sun.com/xml/ns/javaee", "file-size-threshold"));
+            }
+        }
+
+        context.afterUnmarshal(multipartConfig, LifecycleCallback.NONE);
+
+        return multipartConfig;
+    }
+
+    public final MultipartConfig read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, MultipartConfig multipartConfig, RuntimeContext context)
+            throws Exception {
+        if (multipartConfig == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (MultipartConfig.class != multipartConfig.getClass()) {
+            context.unexpectedSubclass(writer, multipartConfig, MultipartConfig.class);
+            return;
+        }
+
+        context.beforeMarshal(multipartConfig, LifecycleCallback.NONE);
+
+
+        // ELEMENT: location
+        String locationRaw = multipartConfig.location;
+        String location = null;
+        try {
+            location = Adapters.collapsedStringAdapterAdapter.marshal(locationRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(multipartConfig, "location", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (location != null) {
+            writer.writeStartElement(prefix, "location", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(location);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: maxFileSize
+        Long maxFileSize = multipartConfig.maxFileSize;
+        writer.writeStartElement(prefix, "max-file-size", "http://java.sun.com/xml/ns/javaee");
+        writer.writeCharacters(Long.toString(maxFileSize));
+        writer.writeEndElement();
+
+        // ELEMENT: maxRequestSize
+        Long maxRequestSize = multipartConfig.maxRequestSize;
+        writer.writeStartElement(prefix, "max-request-size", "http://java.sun.com/xml/ns/javaee");
+        writer.writeCharacters(Long.toString(maxRequestSize));
+        writer.writeEndElement();
+
+        // ELEMENT: fileSizeThreshold
+        Integer fileSizeThreshold = multipartConfig.fileSizeThreshold;
+        writer.writeStartElement(prefix, "file-size-threshold", "http://java.sun.com/xml/ns/javaee");
+        writer.writeCharacters(Integer.toString(fileSizeThreshold));
+        writer.writeEndElement();
+
+        context.afterMarshal(multipartConfig, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Multiplicity$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Multiplicity%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Multiplicity$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Multiplicity$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,67 @@
+/*
+ * 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.JAXBEnum;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+
+import javax.xml.namespace.QName;
+
+public class Multiplicity$JAXB
+        extends JAXBEnum<Multiplicity> {
+
+
+    public Multiplicity$JAXB() {
+        super(Multiplicity.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "multiplicity".intern()));
+    }
+
+    public Multiplicity parse(XoXMLStreamReader reader, RuntimeContext context, String value)
+            throws Exception {
+        return parseMultiplicity(reader, context, value);
+    }
+
+    public String toString(Object bean, String parameterName, RuntimeContext context, Multiplicity multiplicity)
+            throws Exception {
+        return toStringMultiplicity(bean, parameterName, context, multiplicity);
+    }
+
+    public static Multiplicity parseMultiplicity(XoXMLStreamReader reader, RuntimeContext context, String value)
+            throws Exception {
+        if ("One".equals(value)) {
+            return Multiplicity.ONE;
+        } else if ("Many".equals(value)) {
+            return Multiplicity.MANY;
+        } else {
+            context.unexpectedEnumValue(reader, Multiplicity.class, value, "One", "Many");
+            return null;
+        }
+    }
+
+    public static String toStringMultiplicity(Object bean, String parameterName, RuntimeContext context, Multiplicity multiplicity)
+            throws Exception {
+        if (Multiplicity.ONE == multiplicity) {
+            return "One";
+        } else if (Multiplicity.MANY == multiplicity) {
+            return "Many";
+        } else {
+            context.unexpectedEnumConst(bean, parameterName, multiplicity, Multiplicity.ONE, Multiplicity.MANY);
+            return null;
+        }
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/NamedMethod$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/NamedMethod%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/NamedMethod$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/NamedMethod$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,188 @@
+/*
+ * 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 static org.apache.openejb.jee.MethodParams$JAXB.readMethodParams;
+import static org.apache.openejb.jee.MethodParams$JAXB.writeMethodParams;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class NamedMethod$JAXB
+        extends JAXBObject<NamedMethod> {
+
+
+    public NamedMethod$JAXB() {
+        super(NamedMethod.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "named-methodType".intern()), MethodParams$JAXB.class);
+    }
+
+    public static NamedMethod readNamedMethod(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeNamedMethod(XoXMLStreamWriter writer, NamedMethod namedMethod, RuntimeContext context)
+            throws Exception {
+        _write(writer, namedMethod, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, NamedMethod namedMethod, RuntimeContext context)
+            throws Exception {
+        _write(writer, namedMethod, context);
+    }
+
+    public final static NamedMethod _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        NamedMethod namedMethod = new NamedMethod();
+        context.beforeUnmarshal(namedMethod, LifecycleCallback.NONE);
+
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("named-methodType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, NamedMethod.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, namedMethod);
+                namedMethod.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 (("method-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: methodName
+                String methodNameRaw = elementReader.getElementAsString();
+
+                String methodName;
+                try {
+                    methodName = Adapters.collapsedStringAdapterAdapter.unmarshal(methodNameRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                namedMethod.methodName = methodName;
+            } else if (("method-params" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: methodParams
+                MethodParams methodParams = readMethodParams(elementReader, context);
+                namedMethod.methodParams = methodParams;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "method-name"), new QName("http://java.sun.com/xml/ns/javaee", "method-params"));
+            }
+        }
+
+        context.afterUnmarshal(namedMethod, LifecycleCallback.NONE);
+
+        return namedMethod;
+    }
+
+    public final NamedMethod read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, NamedMethod namedMethod, RuntimeContext context)
+            throws Exception {
+        if (namedMethod == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (NamedMethod.class != namedMethod.getClass()) {
+            context.unexpectedSubclass(writer, namedMethod, NamedMethod.class);
+            return;
+        }
+
+        context.beforeMarshal(namedMethod, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = namedMethod.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(namedMethod, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: methodName
+        String methodNameRaw = namedMethod.methodName;
+        String methodName = null;
+        try {
+            methodName = Adapters.collapsedStringAdapterAdapter.marshal(methodNameRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(namedMethod, "methodName", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (methodName != null) {
+            writer.writeStartElement(prefix, "method-name", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(methodName);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(namedMethod, "methodName");
+        }
+
+        // ELEMENT: methodParams
+        MethodParams methodParams = namedMethod.methodParams;
+        if (methodParams != null) {
+            writer.writeStartElement(prefix, "method-params", "http://java.sun.com/xml/ns/javaee");
+            writeMethodParams(writer, methodParams, context);
+            writer.writeEndElement();
+        }
+
+        context.afterMarshal(namedMethod, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ObjectFactory$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ObjectFactory%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ObjectFactory$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ObjectFactory$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,53 @@
+/*
+ * 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.JAXBObjectFactory;
+
+import javax.xml.namespace.QName;
+import java.util.HashMap;
+import java.util.Map;
+
+public class ObjectFactory$JAXB
+        extends JAXBObjectFactory<ObjectFactory> {
+
+    public final static ObjectFactory$JAXB INSTANCE = new ObjectFactory$JAXB();
+    private final Map<QName, Class<? extends JAXBObject>> rootElements = new HashMap<QName, Class<? extends JAXBObject>>();
+
+    public ObjectFactory$JAXB() {
+        super(ObjectFactory.class, Application$JAXB.class, ApplicationClient$JAXB.class, EjbJar$JAXB.class, EjbRelationshipRole$JAXB.class, Text$JAXB.class, WebApp$JAXB.class, TldTaglib$JAXB.class, JavaWsdlMapping$JAXB.class, Connector$JAXB.class, Webservices$JAXB.class, FacesConfig$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "application".intern()), Application$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "application-client".intern()), ApplicationClient$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "ejb-jar".intern()), EjbJar$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "ejb-relation-name".intern()), com.envoisolutions.sxc.jaxb.StandardJAXBObjects.StringJAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "ejb-relationship-role".intern()), EjbRelationshipRole$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "description".intern()), Text$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "http-method".intern()), com.envoisolutions.sxc.jaxb.StandardJAXBObjects.StringJAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "web-app".intern()), WebApp$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "taglib".intern()), TldTaglib$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/j2ee".intern(), "java-wsdl-mapping".intern()), JavaWsdlMapping$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/j2ee".intern(), "connector".intern()), Connector$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "webservices".intern()), Webservices$JAXB.class);
+        rootElements.put(new QName("http://java.sun.com/xml/ns/javaee".intern(), "faces-config".intern()), FacesConfig$JAXB.class);
+    }
+
+    public Map<QName, Class<? extends JAXBObject>> getRootElements() {
+        return rootElements;
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/OrderingOthers$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/OrderingOthers%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/OrderingOthers$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/OrderingOthers$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,141 @@
+/*
+ * 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;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class OrderingOthers$JAXB
+        extends JAXBObject<OrderingOthers> {
+
+
+    public OrderingOthers$JAXB() {
+        super(OrderingOthers.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "ordering-othersType".intern()));
+    }
+
+    public static OrderingOthers readOrderingOthers(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeOrderingOthers(XoXMLStreamWriter writer, OrderingOthers orderingOthers, RuntimeContext context)
+            throws Exception {
+        _write(writer, orderingOthers, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, OrderingOthers orderingOthers, RuntimeContext context)
+            throws Exception {
+        _write(writer, orderingOthers, context);
+    }
+
+    public final static OrderingOthers _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        OrderingOthers orderingOthers = new OrderingOthers();
+        context.beforeUnmarshal(orderingOthers, LifecycleCallback.NONE);
+
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("ordering-othersType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, OrderingOthers.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, orderingOthers);
+                orderingOthers.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()) {
+            context.unexpectedElement(elementReader);
+        }
+
+        context.afterUnmarshal(orderingOthers, LifecycleCallback.NONE);
+
+        return orderingOthers;
+    }
+
+    public final OrderingOthers read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, OrderingOthers orderingOthers, RuntimeContext context)
+            throws Exception {
+        if (orderingOthers == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        if (OrderingOthers.class != orderingOthers.getClass()) {
+            context.unexpectedSubclass(writer, orderingOthers, OrderingOthers.class);
+            return;
+        }
+
+        context.beforeMarshal(orderingOthers, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = orderingOthers.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(orderingOthers, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        context.afterMarshal(orderingOthers, LifecycleCallback.NONE);
+    }
+
+}

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