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 [31/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/Timer$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Timer%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Timer$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/Timer$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,316 @@
+/*
+ * 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.datatype.DatatypeConfigurationException;
+import javax.xml.datatype.DatatypeFactory;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+import static org.apache.openejb.jee.NamedMethod$JAXB.readNamedMethod;
+import static org.apache.openejb.jee.NamedMethod$JAXB.writeNamedMethod;
+import static org.apache.openejb.jee.Text$JAXB.readText;
+import static org.apache.openejb.jee.Text$JAXB.writeText;
+import static org.apache.openejb.jee.TimerSchedule$JAXB.readTimerSchedule;
+import static org.apache.openejb.jee.TimerSchedule$JAXB.writeTimerSchedule;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class Timer$JAXB
+        extends JAXBObject<Timer> {
+
+    private final static DatatypeFactory datatypeFactory;
+
+    static {
+        try {
+            datatypeFactory = DatatypeFactory.newInstance();
+        } catch (DatatypeConfigurationException e) {
+            throw new RuntimeException("Unable to initialize DatatypeFactory", e);
+        }
+    }
+
+    public Timer$JAXB() {
+        super(Timer.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "timerType".intern()), Text$JAXB.class, TimerSchedule$JAXB.class, NamedMethod$JAXB.class);
+    }
+
+    public static Timer readTimer(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeTimer(XoXMLStreamWriter writer, Timer timer, RuntimeContext context)
+            throws Exception {
+        _write(writer, timer, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, Timer timer, RuntimeContext context)
+            throws Exception {
+        _write(writer, timer, context);
+    }
+
+    public final static Timer _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        Timer timer = new Timer();
+        context.beforeUnmarshal(timer, LifecycleCallback.NONE);
+
+        ArrayList<Text> descriptions = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("timerType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, Timer.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, timer);
+                timer.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 (("schedule" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: schedule
+                TimerSchedule schedule = readTimerSchedule(elementReader, context);
+                timer.schedule = schedule;
+            } else if (("start" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: start
+                XMLGregorianCalendar start = datatypeFactory.newXMLGregorianCalendar(elementReader.getElementAsString());
+                timer.start = start;
+            } else if (("end" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: end
+                XMLGregorianCalendar end = datatypeFactory.newXMLGregorianCalendar(elementReader.getElementAsString());
+                timer.end = end;
+            } else if (("timeout-method" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: timeoutMethod
+                NamedMethod timeoutMethod = readNamedMethod(elementReader, context);
+                timer.timeoutMethod = timeoutMethod;
+            } else if (("persistent" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: persistent
+                Boolean persistent = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+                timer.persistent = persistent;
+            } else if (("timezone" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: timezone
+                String timezoneRaw = elementReader.getElementAsString();
+
+                String timezone;
+                try {
+                    timezone = Adapters.collapsedStringAdapterAdapter.unmarshal(timezoneRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timer.timezone = timezone;
+            } else if (("info" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: info
+                String infoRaw = elementReader.getElementAsString();
+
+                String info;
+                try {
+                    info = Adapters.collapsedStringAdapterAdapter.unmarshal(infoRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timer.info = info;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "description"), new QName("http://java.sun.com/xml/ns/javaee", "schedule"), new QName("http://java.sun.com/xml/ns/javaee", "start"), new QName("http://java.sun.com/xml/ns/javaee", "end"), new QName("http://java.sun.com/xml/ns/javaee", "timeout-method"), new QName("http://java.sun.com/xml/ns/javaee", "persistent"), new QName("http://java.sun.com/xml/ns/javaee", "timezone"), new QName("http://java.sun.com/xml/ns/javaee", "info"));
+            }
+        }
+        if (descriptions != null) {
+            try {
+                timer.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+            } catch (Exception e) {
+                context.setterError(reader, Timer.class, "setDescriptions", Text[].class, e);
+            }
+        }
+
+        context.afterUnmarshal(timer, LifecycleCallback.NONE);
+
+        return timer;
+    }
+
+    public final Timer read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, Timer timer, RuntimeContext context)
+            throws Exception {
+        if (timer == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (Timer.class != timer.getClass()) {
+            context.unexpectedSubclass(writer, timer, Timer.class);
+            return;
+        }
+
+        context.beforeMarshal(timer, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = timer.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(timer, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: descriptions
+        Text[] descriptions = null;
+        try {
+            descriptions = timer.getDescriptions();
+        } catch (Exception e) {
+            context.getterError(timer, "descriptions", Timer.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(timer, "descriptions");
+                }
+            }
+        }
+
+        // ELEMENT: schedule
+        TimerSchedule schedule = timer.schedule;
+        if (schedule != null) {
+            writer.writeStartElement(prefix, "schedule", "http://java.sun.com/xml/ns/javaee");
+            writeTimerSchedule(writer, schedule, context);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(timer, "schedule");
+        }
+
+        // ELEMENT: start
+        XMLGregorianCalendar start = timer.start;
+        if (start != null) {
+            writer.writeStartElement(prefix, "start", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(start.toXMLFormat());
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: end
+        XMLGregorianCalendar end = timer.end;
+        if (end != null) {
+            writer.writeStartElement(prefix, "end", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(end.toXMLFormat());
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: timeoutMethod
+        NamedMethod timeoutMethod = timer.timeoutMethod;
+        if (timeoutMethod != null) {
+            writer.writeStartElement(prefix, "timeout-method", "http://java.sun.com/xml/ns/javaee");
+            writeNamedMethod(writer, timeoutMethod, context);
+            writer.writeEndElement();
+        } else {
+            context.unexpectedNullValue(timer, "timeoutMethod");
+        }
+
+        // ELEMENT: persistent
+        Boolean persistent = timer.persistent;
+        if (persistent != null) {
+            writer.writeStartElement(prefix, "persistent", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(Boolean.toString(persistent));
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: timezone
+        String timezoneRaw = timer.timezone;
+        String timezone = null;
+        try {
+            timezone = Adapters.collapsedStringAdapterAdapter.marshal(timezoneRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timer, "timezone", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (timezone != null) {
+            writer.writeStartElement(prefix, "timezone", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(timezone);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: info
+        String infoRaw = timer.info;
+        String info = null;
+        try {
+            info = Adapters.collapsedStringAdapterAdapter.marshal(infoRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timer, "info", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (info != null) {
+            writer.writeStartElement(prefix, "info", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(info);
+            writer.writeEndElement();
+        }
+
+        context.afterMarshal(timer, LifecycleCallback.NONE);
+    }
+
+}

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/TimerSchedule$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/TimerSchedule%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/TimerSchedule$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/TimerSchedule$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,333 @@
+/*
+ * 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 TimerSchedule$JAXB
+        extends JAXBObject<TimerSchedule> {
+
+
+    public TimerSchedule$JAXB() {
+        super(TimerSchedule.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "timer-scheduleType".intern()));
+    }
+
+    public static TimerSchedule readTimerSchedule(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeTimerSchedule(XoXMLStreamWriter writer, TimerSchedule timerSchedule, RuntimeContext context)
+            throws Exception {
+        _write(writer, timerSchedule, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, TimerSchedule timerSchedule, RuntimeContext context)
+            throws Exception {
+        _write(writer, timerSchedule, context);
+    }
+
+    public final static TimerSchedule _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        TimerSchedule timerSchedule = new TimerSchedule();
+        context.beforeUnmarshal(timerSchedule, LifecycleCallback.NONE);
+
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("timer-scheduleType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, TimerSchedule.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, timerSchedule);
+                timerSchedule.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 (("second" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: second
+                String secondRaw = elementReader.getElementAsString();
+
+                String second;
+                try {
+                    second = Adapters.collapsedStringAdapterAdapter.unmarshal(secondRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timerSchedule.second = second;
+            } else if (("minute" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: minute
+                String minuteRaw = elementReader.getElementAsString();
+
+                String minute;
+                try {
+                    minute = Adapters.collapsedStringAdapterAdapter.unmarshal(minuteRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timerSchedule.minute = minute;
+            } else if (("hour" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: hour
+                String hourRaw = elementReader.getElementAsString();
+
+                String hour;
+                try {
+                    hour = Adapters.collapsedStringAdapterAdapter.unmarshal(hourRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timerSchedule.hour = hour;
+            } else if (("day-of-month" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: dayOfMonth
+                String dayOfMonthRaw = elementReader.getElementAsString();
+
+                String dayOfMonth;
+                try {
+                    dayOfMonth = Adapters.collapsedStringAdapterAdapter.unmarshal(dayOfMonthRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timerSchedule.dayOfMonth = dayOfMonth;
+            } else if (("month" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: month
+                String monthRaw = elementReader.getElementAsString();
+
+                String month;
+                try {
+                    month = Adapters.collapsedStringAdapterAdapter.unmarshal(monthRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timerSchedule.month = month;
+            } else if (("day-of-week" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: dayOfWeek
+                String dayOfWeekRaw = elementReader.getElementAsString();
+
+                String dayOfWeek;
+                try {
+                    dayOfWeek = Adapters.collapsedStringAdapterAdapter.unmarshal(dayOfWeekRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timerSchedule.dayOfWeek = dayOfWeek;
+            } else if (("year" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: year
+                String yearRaw = elementReader.getElementAsString();
+
+                String year;
+                try {
+                    year = Adapters.collapsedStringAdapterAdapter.unmarshal(yearRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                timerSchedule.year = year;
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "second"), new QName("http://java.sun.com/xml/ns/javaee", "minute"), new QName("http://java.sun.com/xml/ns/javaee", "hour"), new QName("http://java.sun.com/xml/ns/javaee", "day-of-month"), new QName("http://java.sun.com/xml/ns/javaee", "month"), new QName("http://java.sun.com/xml/ns/javaee", "day-of-week"), new QName("http://java.sun.com/xml/ns/javaee", "year"));
+            }
+        }
+
+        context.afterUnmarshal(timerSchedule, LifecycleCallback.NONE);
+
+        return timerSchedule;
+    }
+
+    public final TimerSchedule read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, TimerSchedule timerSchedule, RuntimeContext context)
+            throws Exception {
+        if (timerSchedule == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+        if (TimerSchedule.class != timerSchedule.getClass()) {
+            context.unexpectedSubclass(writer, timerSchedule, TimerSchedule.class);
+            return;
+        }
+
+        context.beforeMarshal(timerSchedule, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = timerSchedule.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(timerSchedule, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ELEMENT: second
+        String secondRaw = timerSchedule.second;
+        String second = null;
+        try {
+            second = Adapters.collapsedStringAdapterAdapter.marshal(secondRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timerSchedule, "second", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (second != null) {
+            writer.writeStartElement(prefix, "second", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(second);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: minute
+        String minuteRaw = timerSchedule.minute;
+        String minute = null;
+        try {
+            minute = Adapters.collapsedStringAdapterAdapter.marshal(minuteRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timerSchedule, "minute", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (minute != null) {
+            writer.writeStartElement(prefix, "minute", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(minute);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: hour
+        String hourRaw = timerSchedule.hour;
+        String hour = null;
+        try {
+            hour = Adapters.collapsedStringAdapterAdapter.marshal(hourRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timerSchedule, "hour", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (hour != null) {
+            writer.writeStartElement(prefix, "hour", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(hour);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: dayOfMonth
+        String dayOfMonthRaw = timerSchedule.dayOfMonth;
+        String dayOfMonth = null;
+        try {
+            dayOfMonth = Adapters.collapsedStringAdapterAdapter.marshal(dayOfMonthRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timerSchedule, "dayOfMonth", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (dayOfMonth != null) {
+            writer.writeStartElement(prefix, "day-of-month", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(dayOfMonth);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: month
+        String monthRaw = timerSchedule.month;
+        String month = null;
+        try {
+            month = Adapters.collapsedStringAdapterAdapter.marshal(monthRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timerSchedule, "month", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (month != null) {
+            writer.writeStartElement(prefix, "month", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(month);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: dayOfWeek
+        String dayOfWeekRaw = timerSchedule.dayOfWeek;
+        String dayOfWeek = null;
+        try {
+            dayOfWeek = Adapters.collapsedStringAdapterAdapter.marshal(dayOfWeekRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timerSchedule, "dayOfWeek", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (dayOfWeek != null) {
+            writer.writeStartElement(prefix, "day-of-week", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(dayOfWeek);
+            writer.writeEndElement();
+        }
+
+        // ELEMENT: year
+        String yearRaw = timerSchedule.year;
+        String year = null;
+        try {
+            year = Adapters.collapsedStringAdapterAdapter.marshal(yearRaw);
+        } catch (Exception e) {
+            context.xmlAdapterError(timerSchedule, "year", CollapsedStringAdapter.class, String.class, String.class, e);
+        }
+        if (year != null) {
+            writer.writeStartElement(prefix, "year", "http://java.sun.com/xml/ns/javaee");
+            writer.writeCharacters(year);
+            writer.writeEndElement();
+        }
+
+        context.afterMarshal(timerSchedule, LifecycleCallback.NONE);
+    }
+
+}

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

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

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

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

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

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

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

Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/TldExtension$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/TldExtension%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/TldExtension$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/TldExtension$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.util.ArrayList;
+import java.util.List;
+
+@SuppressWarnings({
+        "StringEquality"
+})
+public class TldExtension$JAXB
+        extends JAXBObject<TldExtension> {
+
+
+    public TldExtension$JAXB() {
+        super(TldExtension.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "tld-extensionType".intern()));
+    }
+
+    public static TldExtension readTldExtension(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public static void writeTldExtension(XoXMLStreamWriter writer, TldExtension tldExtension, RuntimeContext context)
+            throws Exception {
+        _write(writer, tldExtension, context);
+    }
+
+    public void write(XoXMLStreamWriter writer, TldExtension tldExtension, RuntimeContext context)
+            throws Exception {
+        _write(writer, tldExtension, context);
+    }
+
+    public final static TldExtension _read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+
+        // Check for xsi:nil
+        if (reader.isXsiNil()) {
+            return null;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        TldExtension tldExtension = new TldExtension();
+        context.beforeUnmarshal(tldExtension, LifecycleCallback.NONE);
+
+        List<String> extensionElement = null;
+
+        // Check xsi:type
+        QName xsiType = reader.getXsiType();
+        if (xsiType != null) {
+            if (("tld-extensionType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+                return context.unexpectedXsiType(reader, TldExtension.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, tldExtension);
+                tldExtension.id = id;
+            } else if (("namespace" == attribute.getLocalName()) && (("" == attribute.getNamespace()) || (attribute.getNamespace() == null))) {
+                // ATTRIBUTE: namespace
+                tldExtension.namespace = Adapters.collapsedStringAdapterAdapter.unmarshal(attribute.getValue());
+            } else if (XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI != attribute.getNamespace()) {
+                context.unexpectedAttribute(attribute, new QName("", "id"), new QName("", "namespace"));
+            }
+        }
+
+        // Read elements
+        for (XoXMLStreamReader elementReader : reader.getChildElements()) {
+            if (("extension-element" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+                // ELEMENT: extensionElement
+                String extensionElementItemRaw = elementReader.getElementAsString();
+
+                String extensionElementItem;
+                try {
+                    extensionElementItem = Adapters.collapsedStringAdapterAdapter.unmarshal(extensionElementItemRaw);
+                } catch (Exception e) {
+                    context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+                    continue;
+                }
+
+                if (extensionElement == null) {
+                    extensionElement = tldExtension.extensionElement;
+                    if (extensionElement != null) {
+                        extensionElement.clear();
+                    } else {
+                        extensionElement = new ArrayList<String>();
+                    }
+                }
+                extensionElement.add(extensionElementItem);
+            } else {
+                context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "extension-element"));
+            }
+        }
+        if (extensionElement != null) {
+            tldExtension.extensionElement = extensionElement;
+        }
+
+        context.afterUnmarshal(tldExtension, LifecycleCallback.NONE);
+
+        return tldExtension;
+    }
+
+    public final TldExtension read(XoXMLStreamReader reader, RuntimeContext context)
+            throws Exception {
+        return _read(reader, context);
+    }
+
+    public final static void _write(XoXMLStreamWriter writer, TldExtension tldExtension, RuntimeContext context)
+            throws Exception {
+        if (tldExtension == null) {
+            writer.writeXsiNil();
+            return;
+        }
+
+        if (context == null) {
+            context = new RuntimeContext();
+        }
+
+        if (TldExtension.class != tldExtension.getClass()) {
+            context.unexpectedSubclass(writer, tldExtension, TldExtension.class);
+            return;
+        }
+
+        context.beforeMarshal(tldExtension, LifecycleCallback.NONE);
+
+
+        // ATTRIBUTE: id
+        String idRaw = tldExtension.id;
+        if (idRaw != null) {
+            String id = null;
+            try {
+                id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(tldExtension, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "id", id);
+        }
+
+        // ATTRIBUTE: namespace
+        String namespaceRaw = tldExtension.namespace;
+        if (namespaceRaw != null) {
+            String namespace = null;
+            try {
+                namespace = Adapters.collapsedStringAdapterAdapter.marshal(namespaceRaw);
+            } catch (Exception e) {
+                context.xmlAdapterError(tldExtension, "namespace", CollapsedStringAdapter.class, String.class, String.class, e);
+            }
+            writer.writeAttribute("", "", "namespace", namespace);
+        }
+
+        // ELEMENT: extensionElement
+        List<String> extensionElementRaw = tldExtension.extensionElement;
+        if (extensionElementRaw != null) {
+            for (String extensionElementItem : extensionElementRaw) {
+                String extensionElement = null;
+                try {
+                    extensionElement = Adapters.collapsedStringAdapterAdapter.marshal(extensionElementItem);
+                } catch (Exception e) {
+                    context.xmlAdapterError(tldExtension, "extensionElement", CollapsedStringAdapter.class, List.class, List.class, e);
+                }
+                if (extensionElement != null) {
+                    writer.writeStartElementWithAutoPrefix("http://java.sun.com/xml/ns/javaee", "extension-element");
+                    writer.writeCharacters(extensionElement);
+                    writer.writeEndElement();
+                } else {
+                    context.unexpectedNullValue(tldExtension, "extensionElement");
+                }
+            }
+        }
+
+        context.afterMarshal(tldExtension, LifecycleCallback.NONE);
+    }
+
+}

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