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 [11/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/FacesComponent$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesComponent%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesComponent$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesComponent$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,433 @@
+/*
+ * 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.FacesAttribute$JAXB.readFacesAttribute;
+import static org.apache.openejb.jee.FacesAttribute$JAXB.writeFacesAttribute;
+import static org.apache.openejb.jee.FacesComponentExtension$JAXB.readFacesComponentExtension;
+import static org.apache.openejb.jee.FacesComponentExtension$JAXB.writeFacesComponentExtension;
+import static org.apache.openejb.jee.FacesFacet$JAXB.readFacesFacet;
+import static org.apache.openejb.jee.FacesFacet$JAXB.writeFacesFacet;
+import static org.apache.openejb.jee.FacesProperty$JAXB.readFacesProperty;
+import static org.apache.openejb.jee.FacesProperty$JAXB.writeFacesProperty;
+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 FacesComponent$JAXB
+        extends JAXBObject<FacesComponent> {
+
+
+    public FacesComponent$JAXB() {
+        super(FacesComponent.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "faces-config-componentType".intern()), Text$JAXB.class, Icon$JAXB.class, FacesFacet$JAXB.class, FacesAttribute$JAXB.class, FacesProperty$JAXB.class, FacesComponentExtension$JAXB.class);
+    }
+
+    public static FacesComponent readFacesComponent(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeFacesComponent(XoXMLStreamWriter writer, FacesComponent facesComponent, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesComponent, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, FacesComponent facesComponent, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesComponent, context);
+    }
+
+    public final static FacesComponent _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        FacesComponent facesComponent = new FacesComponent();
+        context.beforeUnmarshal(facesComponent, LifecycleCallback.NONE);
+
+        ArrayList<Text> descriptions = null;
+        ArrayList<Text> displayNames = null;
+        LocalCollection<Icon> icon = null;
+        List<FacesFacet> facet = null;
+        List<FacesAttribute> attribute1 = null;
+        List<FacesProperty> property = null;
+        List<FacesComponentExtension> componentExtension = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("faces-config-componentType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, FacesComponent.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, facesComponent);
+                facesComponent.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 = facesComponent.icon;
+                    if (icon != null) {
+                        icon.clear();
+                    } else {
+                        icon = new LocalCollection<Icon>();
+                    }
+                }
+                icon.add(iconItem);
+            } else if (("component-type" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: componentType
+                String componentTypeRaw = elementReader.getElementAsString();
+
+                String componentType;
+                try {
+                    componentType = Adapters.collapsedStringAdapterAdapter.unmarshal(componentTypeRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                facesComponent.componentType = componentType;
+            } else if (("component-class" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: componentClass
+                String componentClassRaw = elementReader.getElementAsString();
+
+                String componentClass;
+                try {
+                    componentClass = Adapters.collapsedStringAdapterAdapter.unmarshal(componentClassRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                facesComponent.componentClass = componentClass;
+            } else if (("facet" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: facet
+                FacesFacet facetItem = readFacesFacet(elementReader, context);
+                if (facet == null) {
+                    facet = facesComponent.facet;
+                    if (facet != null) {
+                        facet.clear();
+                    } else {
+                        facet = new ArrayList<FacesFacet>();
+                    }
+                }
+                facet.add(facetItem);
+            } else if (("attribute" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: attribute
+                FacesAttribute attributeItem = readFacesAttribute(elementReader, context);
+                if (attribute1 == null) {
+                    attribute1 = facesComponent.attribute;
+                    if (attribute1 != null) {
+                        attribute1.clear();
+                    } else {
+                        attribute1 = new ArrayList<FacesAttribute>();
+                    }
+                }
+                attribute1.add(attributeItem);
+            } else if (("property" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: property
+                FacesProperty propertyItem = readFacesProperty(elementReader, context);
+                if (property == null) {
+                    property = facesComponent.property;
+                    if (property != null) {
+                        property.clear();
+                    } else {
+                        property = new ArrayList<FacesProperty>();
+                    }
+                }
+                property.add(propertyItem);
+            } else if (("component-extension" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: componentExtension
+                FacesComponentExtension componentExtensionItem = readFacesComponentExtension(elementReader, context);
+                if (componentExtension == null) {
+                    componentExtension = facesComponent.componentExtension;
+                    if (componentExtension != null) {
+                        componentExtension.clear();
+                    } else {
+                        componentExtension = new ArrayList<FacesComponentExtension>();
+                    }
+                }
+                componentExtension.add(componentExtensionItem);
+            } 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", "component-type"), new QName("http://java.sun.com/xml/ns/javaee", "component-class"), new QName("http://java.sun.com/xml/ns/javaee", "facet"), new QName("http://java.sun.com/xml/ns/javaee", "attribute"), new QName("http://java.sun.com/xml/ns/javaee", "property"), new QName("http://java.sun.com/xml/ns/javaee", "component-extension"));
+            }
+        }
+        if (descriptions != null) {
+            try {
+                facesComponent.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, FacesComponent.class, "setDescriptions", Text[].class, e);
+            }
+        }
+        if (displayNames != null) {
+            try {
+                facesComponent.setDisplayNames(displayNames.toArray(new Text[displayNames.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, FacesComponent.class, "setDisplayNames", Text[].class, e);
+            }
+        }
+        if (icon != null) {
+            facesComponent.icon = icon;
+        }
+        if (facet != null) {
+            facesComponent.facet = facet;
+        }
+        if (attribute1 != null) {
+            facesComponent.attribute = attribute1;
+        }
+        if (property != null) {
+            facesComponent.property = property;
+        }
+        if (componentExtension != null) {
+            facesComponent.componentExtension = componentExtension;
+        }
+
+        context.afterUnmarshal(facesComponent, LifecycleCallback.NONE);
+
+        return facesComponent;
+    }
+
+    public final FacesComponent read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, FacesComponent facesComponent, RuntimeContext context)
+            throws Exception {
+        if (facesComponent == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (FacesComponent.class != facesComponent.getClass()) {
+            context.unexpectedSubclass(writer, facesComponent, FacesComponent.class);
+            return;
+        }
+
+        context.beforeMarshal(facesComponent, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = facesComponent.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(facesComponent, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: descriptions
+        Text[] descriptions = null;
+        try {
+            descriptions = facesComponent.getDescriptions();
+        } catch (Exception e) {
+            context.getterError(facesComponent, "descriptions", FacesComponent.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(facesComponent, "descriptions");
+                }
+            }
+        }
+
+        // ELEMENT: displayNames
+        Text[] displayNames = null;
+        try {
+            displayNames = facesComponent.getDisplayNames();
+        } catch (Exception e) {
+            context.getterError(facesComponent, "displayNames", FacesComponent.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(facesComponent, "displayNames");
+                }
+            }
+        }
+
+        // ELEMENT: icon
+        LocalCollection<Icon> icon = facesComponent.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(facesComponent, "icon");
+                }
+            }
+        }
+
+        // ELEMENT: componentType
+        String componentTypeRaw = facesComponent.componentType;
+        String componentType = null;
+        try {
+            componentType = Adapters.collapsedStringAdapterAdapter.marshal(componentTypeRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(facesComponent, "componentType", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (componentType != null) {
+            writer.writeStartElement(prefix, "component-type", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(componentType);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(facesComponent, "componentType");
+        }
+
+        // ELEMENT: componentClass
+        String componentClassRaw = facesComponent.componentClass;
+        String componentClass = null;
+        try {
+            componentClass = Adapters.collapsedStringAdapterAdapter.marshal(componentClassRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(facesComponent, "componentClass", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (componentClass != null) {
+            writer.writeStartElement(prefix, "component-class", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(componentClass);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(facesComponent, "componentClass");
+        }
+
+        // ELEMENT: facet
+        List<FacesFacet> facet = facesComponent.facet;
+        if (facet != null) {
+            for (FacesFacet facetItem : facet) {
+                writer.writeStartElement(prefix, "facet", "http://java.sun.com/xml/ns/javaee");
+                if (facetItem != null) {
+                    writeFacesFacet(writer, facetItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: attribute
+        List<FacesAttribute> attribute = facesComponent.attribute;
+        if (attribute != null) {
+            for (FacesAttribute attributeItem : attribute) {
+                writer.writeStartElement(prefix, "attribute", "http://java.sun.com/xml/ns/javaee");
+                if (attributeItem != null) {
+                    writeFacesAttribute(writer, attributeItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: property
+        List<FacesProperty> property = facesComponent.property;
+        if (property != null) {
+            for (FacesProperty propertyItem : property) {
+                writer.writeStartElement(prefix, "property", "http://java.sun.com/xml/ns/javaee");
+                if (propertyItem != null) {
+                    writeFacesProperty(writer, propertyItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: componentExtension
+        List<FacesComponentExtension> componentExtension = facesComponent.componentExtension;
+        if (componentExtension != null) {
+            for (FacesComponentExtension componentExtensionItem : componentExtension) {
+                if (componentExtensionItem != null) {
+                    writer.writeStartElement(prefix, "component-extension", "http://java.sun.com/xml/ns/javaee");
+                    writeFacesComponentExtension(writer, componentExtensionItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        context.afterMarshal(facesComponent, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesComponentExtension$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesComponentExtension%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesComponentExtension$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesComponentExtension$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,164 @@
+/*
+ * 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 FacesComponentExtension$JAXB
+        extends JAXBObject<FacesComponentExtension> {
+
+
+    public FacesComponentExtension$JAXB() {
+        super(FacesComponentExtension.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "faces-config-component-extensionType".intern()));
+    }
+
+    public static FacesComponentExtension readFacesComponentExtension(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeFacesComponentExtension(XoXMLStreamWriter writer, FacesComponentExtension facesComponentExtension, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesComponentExtension, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, FacesComponentExtension facesComponentExtension, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesComponentExtension, context);
+    }
+
+    public final static FacesComponentExtension _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        FacesComponentExtension facesComponentExtension = new FacesComponentExtension();
+        context.beforeUnmarshal(facesComponentExtension, LifecycleCallback.NONE);
+
+        List<Object> any = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("faces-config-component-extensionType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, FacesComponentExtension.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, facesComponentExtension);
+                facesComponentExtension.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()) {
+            // ELEMENT_REF: any
+            if (any == null) {
+                any = facesComponentExtension.any;
+                if (any != null) {
+                    any.clear();
+                } else {
+                    any = new ArrayList<Object>();
+                }
+            }
+            any.add(context.readXmlAny(elementReader, Object.class, true));
+        }
+        if (any != null) {
+            facesComponentExtension.any = any;
+        }
+
+        context.afterUnmarshal(facesComponentExtension, LifecycleCallback.NONE);
+
+        return facesComponentExtension;
+    }
+
+    public final FacesComponentExtension read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, FacesComponentExtension facesComponentExtension, RuntimeContext context)
+            throws Exception {
+        if (facesComponentExtension == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        if (FacesComponentExtension.class != facesComponentExtension.getClass()) {
+            context.unexpectedSubclass(writer, facesComponentExtension, FacesComponentExtension.class);
+            return;
+        }
+
+        context.beforeMarshal(facesComponentExtension, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = facesComponentExtension.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(facesComponentExtension, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT_REF: any
+        List<Object> any = facesComponentExtension.any;
+        if (any != null) {
+            for (Object anyItem : any) {
+                context.writeXmlAny(writer, facesComponentExtension, "any", anyItem);
+            }
+        }
+
+        context.afterMarshal(facesComponentExtension, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConfig$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConfig%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConfig$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConfig$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,656 @@
+/*
+ * 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.FacesAbsoluteOrdering$JAXB.readFacesAbsoluteOrdering;
+import static org.apache.openejb.jee.FacesAbsoluteOrdering$JAXB.writeFacesAbsoluteOrdering;
+import static org.apache.openejb.jee.FacesApplication$JAXB.readFacesApplication;
+import static org.apache.openejb.jee.FacesApplication$JAXB.writeFacesApplication;
+import static org.apache.openejb.jee.FacesBehavior$JAXB.readFacesBehavior;
+import static org.apache.openejb.jee.FacesBehavior$JAXB.writeFacesBehavior;
+import static org.apache.openejb.jee.FacesComponent$JAXB.readFacesComponent;
+import static org.apache.openejb.jee.FacesComponent$JAXB.writeFacesComponent;
+import static org.apache.openejb.jee.FacesConverter$JAXB.readFacesConverter;
+import static org.apache.openejb.jee.FacesConverter$JAXB.writeFacesConverter;
+import static org.apache.openejb.jee.FacesExtension$JAXB.readFacesExtension;
+import static org.apache.openejb.jee.FacesExtension$JAXB.writeFacesExtension;
+import static org.apache.openejb.jee.FacesFactory$JAXB.readFacesFactory;
+import static org.apache.openejb.jee.FacesFactory$JAXB.writeFacesFactory;
+import static org.apache.openejb.jee.FacesLifecycle$JAXB.readFacesLifecycle;
+import static org.apache.openejb.jee.FacesLifecycle$JAXB.writeFacesLifecycle;
+import static org.apache.openejb.jee.FacesManagedBean$JAXB.readFacesManagedBean;
+import static org.apache.openejb.jee.FacesManagedBean$JAXB.writeFacesManagedBean;
+import static org.apache.openejb.jee.FacesNavigationRule$JAXB.readFacesNavigationRule;
+import static org.apache.openejb.jee.FacesNavigationRule$JAXB.writeFacesNavigationRule;
+import static org.apache.openejb.jee.FacesOrdering$JAXB.readFacesOrdering;
+import static org.apache.openejb.jee.FacesOrdering$JAXB.writeFacesOrdering;
+import static org.apache.openejb.jee.FacesReferencedBean$JAXB.readFacesReferencedBean;
+import static org.apache.openejb.jee.FacesReferencedBean$JAXB.writeFacesReferencedBean;
+import static org.apache.openejb.jee.FacesRenderKit$JAXB.readFacesRenderKit;
+import static org.apache.openejb.jee.FacesRenderKit$JAXB.writeFacesRenderKit;
+import static org.apache.openejb.jee.FacesValidator$JAXB.readFacesValidator;
+import static org.apache.openejb.jee.FacesValidator$JAXB.writeFacesValidator;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class FacesConfig$JAXB
+        extends JAXBObject<FacesConfig> {
+
+
+    public FacesConfig$JAXB() {
+        super(FacesConfig.class, new QName("http://java.sun.com/xml/ns/javaee".intern(), "faces-config".intern()), new QName("http://java.sun.com/xml/ns/javaee".intern(), "faces-configType".intern()), FacesApplication$JAXB.class, FacesOrdering$JAXB.class, FacesAbsoluteOrdering$JAXB.class, FacesFactory$JAXB.class, FacesComponent$JAXB.class, FacesConverter$JAXB.class, FacesManagedBean$JAXB.class, FacesNavigationRule$JAXB.class, FacesReferencedBean$JAXB.class, FacesRenderKit$JAXB.class, FacesLifecycle$JAXB.class, FacesValidator$JAXB.class, FacesBehavior$JAXB.class, FacesExtension$JAXB.class);
+    }
+
+    public static FacesConfig readFacesConfig(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeFacesConfig(XoXMLStreamWriter writer, FacesConfig facesConfig, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesConfig, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, FacesConfig facesConfig, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesConfig, context);
+    }
+
+    public final static FacesConfig _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        FacesConfig facesConfig = new FacesConfig();
+        context.beforeUnmarshal(facesConfig, LifecycleCallback.NONE);
+
+        List<FacesApplication> application = null;
+        List<FacesOrdering> ordering = null;
+        List<FacesAbsoluteOrdering> absoluteOrdering = null;
+        List<FacesFactory> factory = null;
+        List<FacesComponent> component = null;
+        List<FacesConverter> converter = null;
+        List<FacesManagedBean> managedBean = null;
+        List<String> name = null;
+        List<FacesNavigationRule> navigationRule = null;
+        List<FacesReferencedBean> referencedBean = null;
+        List<FacesRenderKit> renderKit = null;
+        List<FacesLifecycle> lifecycle = null;
+        List<FacesValidator> validator = null;
+        List<FacesBehavior> behavior = null;
+        List<FacesExtension> facesConfigExtension = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("faces-configType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, FacesConfig.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, facesConfig);
+                facesConfig.id = id;
+            } else if (("version" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: version
+                facesConfig.version = Adapters.collapsedStringAdapterAdapter.unmarshal(attribute.getValue());
+            } else if (("metadata-complete" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: metadataComplete
+                Boolean metadataComplete = ("1".equals(attribute.getValue()) || "true".equals(attribute.getValue()));
+                facesConfig.metadataComplete = metadataComplete;
+            } else if (XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI != attribute.getNamespace()) {
+                context.unexpectedAttribute(attribute, new QName("", "id"), new QName("", "version"), new QName("", "metadata-complete"));
+            }
+        }
+
+        // Read elements
+        for (XoXMLStreamReader elementReader : reader.getChildElements()) {
+            if (("application" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: application
+                FacesApplication applicationItem = readFacesApplication(elementReader, context);
+                if (application == null) {
+                    application = facesConfig.application;
+                    if (application != null) {
+                        application.clear();
+                    } else {
+                        application = new ArrayList<FacesApplication>();
+                    }
+                }
+                application.add(applicationItem);
+            } else if (("ordering" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: ordering
+                FacesOrdering orderingItem = readFacesOrdering(elementReader, context);
+                if (ordering == null) {
+                    ordering = facesConfig.ordering;
+                    if (ordering != null) {
+                        ordering.clear();
+                    } else {
+                        ordering = new ArrayList<FacesOrdering>();
+                    }
+                }
+                ordering.add(orderingItem);
+            } else if (("absolute-ordering" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: absoluteOrdering
+                FacesAbsoluteOrdering absoluteOrderingItem = readFacesAbsoluteOrdering(elementReader, context);
+                if (absoluteOrdering == null) {
+                    absoluteOrdering = facesConfig.absoluteOrdering;
+                    if (absoluteOrdering != null) {
+                        absoluteOrdering.clear();
+                    } else {
+                        absoluteOrdering = new ArrayList<FacesAbsoluteOrdering>();
+                    }
+                }
+                absoluteOrdering.add(absoluteOrderingItem);
+            } else if (("factory" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: factory
+                FacesFactory factoryItem = readFacesFactory(elementReader, context);
+                if (factory == null) {
+                    factory = facesConfig.factory;
+                    if (factory != null) {
+                        factory.clear();
+                    } else {
+                        factory = new ArrayList<FacesFactory>();
+                    }
+                }
+                factory.add(factoryItem);
+            } else if (("component" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: component
+                FacesComponent componentItem = readFacesComponent(elementReader, context);
+                if (component == null) {
+                    component = facesConfig.component;
+                    if (component != null) {
+                        component.clear();
+                    } else {
+                        component = new ArrayList<FacesComponent>();
+                    }
+                }
+                component.add(componentItem);
+            } else if (("converter" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: converter
+                FacesConverter converterItem = readFacesConverter(elementReader, context);
+                if (converter == null) {
+                    converter = facesConfig.converter;
+                    if (converter != null) {
+                        converter.clear();
+                    } else {
+                        converter = new ArrayList<FacesConverter>();
+                    }
+                }
+                converter.add(converterItem);
+            } else if (("managed-bean" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: managedBean
+                FacesManagedBean managedBeanItem = readFacesManagedBean(elementReader, context);
+                if (managedBean == null) {
+                    managedBean = facesConfig.managedBean;
+                    if (managedBean != null) {
+                        managedBean.clear();
+                    } else {
+                        managedBean = new ArrayList<FacesManagedBean>();
+                    }
+                }
+                managedBean.add(managedBeanItem);
+            } else if (("name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: name
+                String nameItemRaw = null;
+                if (!elementReader.isXsiNil()) {
+                    nameItemRaw = elementReader.getElementAsString();
+                }
+
+                String nameItem;
+                try {
+                    nameItem = Adapters.collapsedStringAdapterAdapter.unmarshal(nameItemRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                if (name == null) {
+                    name = facesConfig.name;
+                    if (name != null) {
+                        name.clear();
+                    } else {
+                        name = new ArrayList<String>();
+                    }
+                }
+                name.add(nameItem);
+            } else if (("navigation-rule" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: navigationRule
+                FacesNavigationRule navigationRuleItem = readFacesNavigationRule(elementReader, context);
+                if (navigationRule == null) {
+                    navigationRule = facesConfig.navigationRule;
+                    if (navigationRule != null) {
+                        navigationRule.clear();
+                    } else {
+                        navigationRule = new ArrayList<FacesNavigationRule>();
+                    }
+                }
+                navigationRule.add(navigationRuleItem);
+            } else if (("referenced-bean" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: referencedBean
+                FacesReferencedBean referencedBeanItem = readFacesReferencedBean(elementReader, context);
+                if (referencedBean == null) {
+                    referencedBean = facesConfig.referencedBean;
+                    if (referencedBean != null) {
+                        referencedBean.clear();
+                    } else {
+                        referencedBean = new ArrayList<FacesReferencedBean>();
+                    }
+                }
+                referencedBean.add(referencedBeanItem);
+            } else if (("render-kit" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: renderKit
+                FacesRenderKit renderKitItem = readFacesRenderKit(elementReader, context);
+                if (renderKit == null) {
+                    renderKit = facesConfig.renderKit;
+                    if (renderKit != null) {
+                        renderKit.clear();
+                    } else {
+                        renderKit = new ArrayList<FacesRenderKit>();
+                    }
+                }
+                renderKit.add(renderKitItem);
+            } else if (("lifecycle" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: lifecycle
+                FacesLifecycle lifecycleItem = readFacesLifecycle(elementReader, context);
+                if (lifecycle == null) {
+                    lifecycle = facesConfig.lifecycle;
+                    if (lifecycle != null) {
+                        lifecycle.clear();
+                    } else {
+                        lifecycle = new ArrayList<FacesLifecycle>();
+                    }
+                }
+                lifecycle.add(lifecycleItem);
+            } else if (("validator" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: validator
+                FacesValidator validatorItem = readFacesValidator(elementReader, context);
+                if (validator == null) {
+                    validator = facesConfig.validator;
+                    if (validator != null) {
+                        validator.clear();
+                    } else {
+                        validator = new ArrayList<FacesValidator>();
+                    }
+                }
+                validator.add(validatorItem);
+            } else if (("behavior" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: behavior
+                FacesBehavior behaviorItem = readFacesBehavior(elementReader, context);
+                if (behavior == null) {
+                    behavior = facesConfig.behavior;
+                    if (behavior != null) {
+                        behavior.clear();
+                    } else {
+                        behavior = new ArrayList<FacesBehavior>();
+                    }
+                }
+                behavior.add(behaviorItem);
+            } else if (("faces-config-extension" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: facesConfigExtension
+                FacesExtension facesConfigExtensionItem = readFacesExtension(elementReader, context);
+                if (facesConfigExtension == null) {
+                    facesConfigExtension = facesConfig.facesConfigExtension;
+                    if (facesConfigExtension != null) {
+                        facesConfigExtension.clear();
+                    } else {
+                        facesConfigExtension = new ArrayList<FacesExtension>();
+                    }
+                }
+                facesConfigExtension.add(facesConfigExtensionItem);
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "application"), new QName("http://java.sun.com/xml/ns/javaee", "ordering"), new QName("http://java.sun.com/xml/ns/javaee", "absolute-ordering"), new QName("http://java.sun.com/xml/ns/javaee", "factory"), new QName("http://java.sun.com/xml/ns/javaee", "component"), new QName("http://java.sun.com/xml/ns/javaee", "converter"), new QName("http://java.sun.com/xml/ns/javaee", "managed-bean"), new QName("http://java.sun.com/xml/ns/javaee", "name"), new QName("http://java.sun.com/xml/ns/javaee", "navigation-rule"), new QName("http://java.sun.com/xml/ns/javaee", "referenced-bean"), new QName("http://java.sun.com/xml/ns/javaee", "render-kit"), new QName("http://java.sun.com/xml/ns/javaee", "lifecycle"), new QName("http://java.sun.com/xml/ns/javaee", "validator"), new QName("http://java.sun.com/xml/ns/javaee", "behavior"), new QName("http://java.sun.com/xml/ns/javaee", "faces-config-
 extension"));
+            }
+        }
+        if (application != null) {
+            facesConfig.application = application;
+        }
+        if (ordering != null) {
+            facesConfig.ordering = ordering;
+        }
+        if (absoluteOrdering != null) {
+            facesConfig.absoluteOrdering = absoluteOrdering;
+        }
+        if (factory != null) {
+            facesConfig.factory = factory;
+        }
+        if (component != null) {
+            facesConfig.component = component;
+        }
+        if (converter != null) {
+            facesConfig.converter = converter;
+        }
+        if (managedBean != null) {
+            facesConfig.managedBean = managedBean;
+        }
+        if (name != null) {
+            facesConfig.name = name;
+        }
+        if (navigationRule != null) {
+            facesConfig.navigationRule = navigationRule;
+        }
+        if (referencedBean != null) {
+            facesConfig.referencedBean = referencedBean;
+        }
+        if (renderKit != null) {
+            facesConfig.renderKit = renderKit;
+        }
+        if (lifecycle != null) {
+            facesConfig.lifecycle = lifecycle;
+        }
+        if (validator != null) {
+            facesConfig.validator = validator;
+        }
+        if (behavior != null) {
+            facesConfig.behavior = behavior;
+        }
+        if (facesConfigExtension != null) {
+            facesConfig.facesConfigExtension = facesConfigExtension;
+        }
+
+        context.afterUnmarshal(facesConfig, LifecycleCallback.NONE);
+
+        return facesConfig;
+    }
+
+    public final FacesConfig read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, FacesConfig facesConfig, RuntimeContext context)
+            throws Exception {
+        if (facesConfig == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (FacesConfig.class != facesConfig.getClass()) {
+            context.unexpectedSubclass(writer, facesConfig, FacesConfig.class);
+            return;
+        }
+
+        context.beforeMarshal(facesConfig, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = facesConfig.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(facesConfig, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ATTRIBUTE: version
+        String versionRaw = facesConfig.version;
+        if (versionRaw != null) {
+            String version = null;
+            try {
+                version = Adapters.collapsedStringAdapterAdapter.marshal(versionRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(facesConfig, "version", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "version", version);
+        }
+
+        // ATTRIBUTE: metadataComplete
+        Boolean metadataComplete = facesConfig.metadataComplete;
+        if (metadataComplete != null) {
+            writer.writeAttribute("", "", "metadata-complete", Boolean.toString(metadataComplete));
+        }
+
+        // ELEMENT: application
+        List<FacesApplication> application = facesConfig.application;
+        if (application != null) {
+            for (FacesApplication applicationItem : application) {
+                writer.writeStartElement(prefix, "application", "http://java.sun.com/xml/ns/javaee");
+                if (applicationItem != null) {
+                    writeFacesApplication(writer, applicationItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: ordering
+        List<FacesOrdering> ordering = facesConfig.ordering;
+        if (ordering != null) {
+            for (FacesOrdering orderingItem : ordering) {
+                writer.writeStartElement(prefix, "ordering", "http://java.sun.com/xml/ns/javaee");
+                if (orderingItem != null) {
+                    writeFacesOrdering(writer, orderingItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: absoluteOrdering
+        List<FacesAbsoluteOrdering> absoluteOrdering = facesConfig.absoluteOrdering;
+        if (absoluteOrdering != null) {
+            for (FacesAbsoluteOrdering absoluteOrderingItem : absoluteOrdering) {
+                if (absoluteOrderingItem != null) {
+                    writer.writeStartElement(prefix, "absolute-ordering", "http://java.sun.com/xml/ns/javaee");
+                    writeFacesAbsoluteOrdering(writer, absoluteOrderingItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: factory
+        List<FacesFactory> factory = facesConfig.factory;
+        if (factory != null) {
+            for (FacesFactory factoryItem : factory) {
+                writer.writeStartElement(prefix, "factory", "http://java.sun.com/xml/ns/javaee");
+                if (factoryItem != null) {
+                    writeFacesFactory(writer, factoryItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: component
+        List<FacesComponent> component = facesConfig.component;
+        if (component != null) {
+            for (FacesComponent componentItem : component) {
+                writer.writeStartElement(prefix, "component", "http://java.sun.com/xml/ns/javaee");
+                if (componentItem != null) {
+                    writeFacesComponent(writer, componentItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: converter
+        List<FacesConverter> converter = facesConfig.converter;
+        if (converter != null) {
+            for (FacesConverter converterItem : converter) {
+                writer.writeStartElement(prefix, "converter", "http://java.sun.com/xml/ns/javaee");
+                if (converterItem != null) {
+                    writeFacesConverter(writer, converterItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: managedBean
+        List<FacesManagedBean> managedBean = facesConfig.managedBean;
+        if (managedBean != null) {
+            for (FacesManagedBean managedBeanItem : managedBean) {
+                if (managedBeanItem != null) {
+                    writer.writeStartElement(prefix, "managed-bean", "http://java.sun.com/xml/ns/javaee");
+                    writeFacesManagedBean(writer, managedBeanItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: name
+        List<String> nameRaw = facesConfig.name;
+        if (nameRaw != null) {
+            for (String nameItem : nameRaw) {
+                String name = null;
+                try {
+                    name = Adapters.collapsedStringAdapterAdapter.marshal(nameItem);
+                } catch (Exception e) {
+                    context.xmlAdapterError(facesConfig, "name", CollapsedStringAdapter.class, List.class, List.class, e);
+                }
+                writer.writeStartElement(prefix, "name", "http://java.sun.com/xml/ns/javaee");
+                if (name != null) {
+                    writer.writeCharacters(name);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: navigationRule
+        List<FacesNavigationRule> navigationRule = facesConfig.navigationRule;
+        if (navigationRule != null) {
+            for (FacesNavigationRule navigationRuleItem : navigationRule) {
+                if (navigationRuleItem != null) {
+                    writer.writeStartElement(prefix, "navigation-rule", "http://java.sun.com/xml/ns/javaee");
+                    writeFacesNavigationRule(writer, navigationRuleItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: referencedBean
+        List<FacesReferencedBean> referencedBean = facesConfig.referencedBean;
+        if (referencedBean != null) {
+            for (FacesReferencedBean referencedBeanItem : referencedBean) {
+                if (referencedBeanItem != null) {
+                    writer.writeStartElement(prefix, "referenced-bean", "http://java.sun.com/xml/ns/javaee");
+                    writeFacesReferencedBean(writer, referencedBeanItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: renderKit
+        List<FacesRenderKit> renderKit = facesConfig.renderKit;
+        if (renderKit != null) {
+            for (FacesRenderKit renderKitItem : renderKit) {
+                if (renderKitItem != null) {
+                    writer.writeStartElement(prefix, "render-kit", "http://java.sun.com/xml/ns/javaee");
+                    writeFacesRenderKit(writer, renderKitItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        // ELEMENT: lifecycle
+        List<FacesLifecycle> lifecycle = facesConfig.lifecycle;
+        if (lifecycle != null) {
+            for (FacesLifecycle lifecycleItem : lifecycle) {
+                writer.writeStartElement(prefix, "lifecycle", "http://java.sun.com/xml/ns/javaee");
+                if (lifecycleItem != null) {
+                    writeFacesLifecycle(writer, lifecycleItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: validator
+        List<FacesValidator> validator = facesConfig.validator;
+        if (validator != null) {
+            for (FacesValidator validatorItem : validator) {
+                writer.writeStartElement(prefix, "validator", "http://java.sun.com/xml/ns/javaee");
+                if (validatorItem != null) {
+                    writeFacesValidator(writer, validatorItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: behavior
+        List<FacesBehavior> behavior = facesConfig.behavior;
+        if (behavior != null) {
+            for (FacesBehavior behaviorItem : behavior) {
+                writer.writeStartElement(prefix, "behavior", "http://java.sun.com/xml/ns/javaee");
+                if (behaviorItem != null) {
+                    writeFacesBehavior(writer, behaviorItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: facesConfigExtension
+        List<FacesExtension> facesConfigExtension = facesConfig.facesConfigExtension;
+        if (facesConfigExtension != null) {
+            for (FacesExtension facesConfigExtensionItem : facesConfigExtension) {
+                if (facesConfigExtensionItem != null) {
+                    writer.writeStartElement(prefix, "faces-config-extension", "http://java.sun.com/xml/ns/javaee");
+                    writeFacesExtension(writer, facesConfigExtensionItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        context.afterMarshal(facesConfig, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConverter$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConverter%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConverter$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConverter$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,426 @@
+/*
+ * 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.FacesAttribute$JAXB.readFacesAttribute;
+import static org.apache.openejb.jee.FacesAttribute$JAXB.writeFacesAttribute;
+import static org.apache.openejb.jee.FacesConverterExtension$JAXB.readFacesConverterExtension;
+import static org.apache.openejb.jee.FacesConverterExtension$JAXB.writeFacesConverterExtension;
+import static org.apache.openejb.jee.FacesProperty$JAXB.readFacesProperty;
+import static org.apache.openejb.jee.FacesProperty$JAXB.writeFacesProperty;
+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 FacesConverter$JAXB
+        extends JAXBObject<FacesConverter> {
+
+
+    public FacesConverter$JAXB() {
+        super(FacesConverter.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "faces-config-converterType".intern()), Text$JAXB.class, Icon$JAXB.class, FacesAttribute$JAXB.class, FacesProperty$JAXB.class, FacesConverterExtension$JAXB.class);
+    }
+
+    public static FacesConverter readFacesConverter(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeFacesConverter(XoXMLStreamWriter writer, FacesConverter facesConverter, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesConverter, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, FacesConverter facesConverter, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesConverter, context);
+    }
+
+    public final static FacesConverter _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        FacesConverter facesConverter = new FacesConverter();
+        context.beforeUnmarshal(facesConverter, LifecycleCallback.NONE);
+
+        ArrayList<Text> descriptions = null;
+        ArrayList<Text> displayNames = null;
+        LocalCollection<Icon> icon = null;
+        List<FacesAttribute> attribute1 = null;
+        List<FacesProperty> property = null;
+        List<FacesConverterExtension> converterExtension = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("faces-config-converterType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, FacesConverter.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, facesConverter);
+                facesConverter.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 = facesConverter.icon;
+                    if (icon != null) {
+                        icon.clear();
+                    } else {
+                        icon = new LocalCollection<Icon>();
+                    }
+                }
+                icon.add(iconItem);
+            } else if (("converter-id" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: converterId
+                String converterIdRaw = elementReader.getElementAsString();
+
+                String converterId;
+                try {
+                    converterId = Adapters.collapsedStringAdapterAdapter.unmarshal(converterIdRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                facesConverter.converterId = converterId;
+            } else if (("converter-for-class" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: converterForClass
+                String converterForClassRaw = elementReader.getElementAsString();
+
+                String converterForClass;
+                try {
+                    converterForClass = Adapters.collapsedStringAdapterAdapter.unmarshal(converterForClassRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                facesConverter.converterForClass = converterForClass;
+            } else if (("converter-class" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: converterClass
+                String converterClassRaw = elementReader.getElementAsString();
+
+                String converterClass;
+                try {
+                    converterClass = Adapters.collapsedStringAdapterAdapter.unmarshal(converterClassRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                facesConverter.converterClass = converterClass;
+            } else if (("attribute" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: attribute
+                FacesAttribute attributeItem = readFacesAttribute(elementReader, context);
+                if (attribute1 == null) {
+                    attribute1 = facesConverter.attribute;
+                    if (attribute1 != null) {
+                        attribute1.clear();
+                    } else {
+                        attribute1 = new ArrayList<FacesAttribute>();
+                    }
+                }
+                attribute1.add(attributeItem);
+            } else if (("property" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: property
+                FacesProperty propertyItem = readFacesProperty(elementReader, context);
+                if (property == null) {
+                    property = facesConverter.property;
+                    if (property != null) {
+                        property.clear();
+                    } else {
+                        property = new ArrayList<FacesProperty>();
+                    }
+                }
+                property.add(propertyItem);
+            } else if (("converter-extension" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: converterExtension
+                FacesConverterExtension converterExtensionItem = readFacesConverterExtension(elementReader, context);
+                if (converterExtension == null) {
+                    converterExtension = facesConverter.converterExtension;
+                    if (converterExtension != null) {
+                        converterExtension.clear();
+                    } else {
+                        converterExtension = new ArrayList<FacesConverterExtension>();
+                    }
+                }
+                converterExtension.add(converterExtensionItem);
+            } 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", "converter-id"), new QName("http://java.sun.com/xml/ns/javaee", "converter-for-class"), new QName("http://java.sun.com/xml/ns/javaee", "converter-class"), new QName("http://java.sun.com/xml/ns/javaee", "attribute"), new QName("http://java.sun.com/xml/ns/javaee", "property"), new QName("http://java.sun.com/xml/ns/javaee", "converter-extension"));
+            }
+        }
+        if (descriptions != null) {
+            try {
+                facesConverter.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, FacesConverter.class, "setDescriptions", Text[].class, e);
+            }
+        }
+        if (displayNames != null) {
+            try {
+                facesConverter.setDisplayNames(displayNames.toArray(new Text[displayNames.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, FacesConverter.class, "setDisplayNames", Text[].class, e);
+            }
+        }
+        if (icon != null) {
+            facesConverter.icon = icon;
+        }
+        if (attribute1 != null) {
+            facesConverter.attribute = attribute1;
+        }
+        if (property != null) {
+            facesConverter.property = property;
+        }
+        if (converterExtension != null) {
+            facesConverter.converterExtension = converterExtension;
+        }
+
+        context.afterUnmarshal(facesConverter, LifecycleCallback.NONE);
+
+        return facesConverter;
+    }
+
+    public final FacesConverter read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, FacesConverter facesConverter, RuntimeContext context)
+            throws Exception {
+        if (facesConverter == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (FacesConverter.class != facesConverter.getClass()) {
+            context.unexpectedSubclass(writer, facesConverter, FacesConverter.class);
+            return;
+        }
+
+        context.beforeMarshal(facesConverter, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = facesConverter.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(facesConverter, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: descriptions
+        Text[] descriptions = null;
+        try {
+            descriptions = facesConverter.getDescriptions();
+        } catch (Exception e) {
+            context.getterError(facesConverter, "descriptions", FacesConverter.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(facesConverter, "descriptions");
+                }
+            }
+        }
+
+        // ELEMENT: displayNames
+        Text[] displayNames = null;
+        try {
+            displayNames = facesConverter.getDisplayNames();
+        } catch (Exception e) {
+            context.getterError(facesConverter, "displayNames", FacesConverter.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(facesConverter, "displayNames");
+                }
+            }
+        }
+
+        // ELEMENT: icon
+        LocalCollection<Icon> icon = facesConverter.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(facesConverter, "icon");
+                }
+            }
+        }
+
+        // ELEMENT: converterId
+        String converterIdRaw = facesConverter.converterId;
+        String converterId = null;
+        try {
+            converterId = Adapters.collapsedStringAdapterAdapter.marshal(converterIdRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(facesConverter, "converterId", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (converterId != null) {
+            writer.writeStartElement(prefix, "converter-id", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(converterId);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: converterForClass
+        String converterForClassRaw = facesConverter.converterForClass;
+        String converterForClass = null;
+        try {
+            converterForClass = Adapters.collapsedStringAdapterAdapter.marshal(converterForClassRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(facesConverter, "converterForClass", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (converterForClass != null) {
+            writer.writeStartElement(prefix, "converter-for-class", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(converterForClass);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: converterClass
+        String converterClassRaw = facesConverter.converterClass;
+        String converterClass = null;
+        try {
+            converterClass = Adapters.collapsedStringAdapterAdapter.marshal(converterClassRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(facesConverter, "converterClass", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (converterClass != null) {
+            writer.writeStartElement(prefix, "converter-class", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(converterClass);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(facesConverter, "converterClass");
+        }
+
+        // ELEMENT: attribute
+        List<FacesAttribute> attribute = facesConverter.attribute;
+        if (attribute != null) {
+            for (FacesAttribute attributeItem : attribute) {
+                writer.writeStartElement(prefix, "attribute", "http://java.sun.com/xml/ns/javaee");
+                if (attributeItem != null) {
+                    writeFacesAttribute(writer, attributeItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: property
+        List<FacesProperty> property = facesConverter.property;
+        if (property != null) {
+            for (FacesProperty propertyItem : property) {
+                writer.writeStartElement(prefix, "property", "http://java.sun.com/xml/ns/javaee");
+                if (propertyItem != null) {
+                    writeFacesProperty(writer, propertyItem, context);
+                } else {
+                    writer.writeXsiNil();
+                }
+                writer.writeEndElement();
+            }
+        }
+
+        // ELEMENT: converterExtension
+        List<FacesConverterExtension> converterExtension = facesConverter.converterExtension;
+        if (converterExtension != null) {
+            for (FacesConverterExtension converterExtensionItem : converterExtension) {
+                if (converterExtensionItem != null) {
+                    writer.writeStartElement(prefix, "converter-extension", "http://java.sun.com/xml/ns/javaee");
+                    writeFacesConverterExtension(writer, converterExtensionItem, context);
+                    writer.writeEndElement();
+                }
+            }
+        }
+
+        context.afterMarshal(facesConverter, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConverterExtension$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConverterExtension%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConverterExtension$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/FacesConverterExtension$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,164 @@
+/*
+ * 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 FacesConverterExtension$JAXB
+        extends JAXBObject<FacesConverterExtension> {
+
+
+    public FacesConverterExtension$JAXB() {
+        super(FacesConverterExtension.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "faces-config-converter-extensionType".intern()));
+    }
+
+    public static FacesConverterExtension readFacesConverterExtension(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeFacesConverterExtension(XoXMLStreamWriter writer, FacesConverterExtension facesConverterExtension, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesConverterExtension, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, FacesConverterExtension facesConverterExtension, RuntimeContext context)
+            throws Exception {
+        _write(writer, facesConverterExtension, context);
+    }
+
+    public final static FacesConverterExtension _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        FacesConverterExtension facesConverterExtension = new FacesConverterExtension();
+        context.beforeUnmarshal(facesConverterExtension, LifecycleCallback.NONE);
+
+        List<Object> any = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("faces-config-converter-extensionType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, FacesConverterExtension.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, facesConverterExtension);
+                facesConverterExtension.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()) {
+            // ELEMENT_REF: any
+            if (any == null) {
+                any = facesConverterExtension.any;
+                if (any != null) {
+                    any.clear();
+                } else {
+                    any = new ArrayList<Object>();
+                }
+            }
+            any.add(context.readXmlAny(elementReader, Object.class, true));
+        }
+        if (any != null) {
+            facesConverterExtension.any = any;
+        }
+
+        context.afterUnmarshal(facesConverterExtension, LifecycleCallback.NONE);
+
+        return facesConverterExtension;
+    }
+
+    public final FacesConverterExtension read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, FacesConverterExtension facesConverterExtension, RuntimeContext context)
+            throws Exception {
+        if (facesConverterExtension == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        if (FacesConverterExtension.class != facesConverterExtension.getClass()) {
+            context.unexpectedSubclass(writer, facesConverterExtension, FacesConverterExtension.class);
+            return;
+        }
+
+        context.beforeMarshal(facesConverterExtension, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = facesConverterExtension.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(facesConverterExtension, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT_REF: any
+        List<Object> any = facesConverterExtension.any;
+        if (any != null) {
+            for (Object anyItem : any) {
+                context.writeXmlAny(writer, facesConverterExtension, "any", anyItem);
+            }
+        }
+
+        context.afterMarshal(facesConverterExtension, LifecycleCallback.NONE);
+    }
+
+}

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