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 [24/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/OutboundResourceAdapter$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/OutboundResourceAdapter%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/OutboundResourceAdapter$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/OutboundResourceAdapter$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,235 @@
+/*
+ * 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.AuthenticationMechanism$JAXB.readAuthenticationMechanism;
+import static org.apache.openejb.jee.AuthenticationMechanism$JAXB.writeAuthenticationMechanism;
+import static org.apache.openejb.jee.ConnectionDefinition$JAXB.readConnectionDefinition;
+import static org.apache.openejb.jee.ConnectionDefinition$JAXB.writeConnectionDefinition;
+import static org.apache.openejb.jee.TransactionSupportType$JAXB.parseTransactionSupportType;
+import static org.apache.openejb.jee.TransactionSupportType$JAXB.toStringTransactionSupportType;
+
+@SuppressWarnings({
+ "StringEquality"
+})
+public class OutboundResourceAdapter$JAXB
+ extends JAXBObject<OutboundResourceAdapter> {
+
+
+ public OutboundResourceAdapter$JAXB() {
+ super(OutboundResourceAdapter.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "outbound-resourceadapterType".intern()), ConnectionDefinition$JAXB.class, TransactionSupportType$JAXB.class, AuthenticationMechanism$JAXB.class);
+ }
+
+ public static OutboundResourceAdapter readOutboundResourceAdapter(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public static void writeOutboundResourceAdapter(XoXMLStreamWriter writer, OutboundResourceAdapter outboundResourceAdapter, RuntimeContext context)
+ throws Exception {
+ _write(writer, outboundResourceAdapter, context);
+ }
+
+ public void write(XoXMLStreamWriter writer, OutboundResourceAdapter outboundResourceAdapter, RuntimeContext context)
+ throws Exception {
+ _write(writer, outboundResourceAdapter, context);
+ }
+
+ public final static OutboundResourceAdapter _read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+
+ // Check for xsi:nil
+ if (reader.isXsiNil()) {
+ return null;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ OutboundResourceAdapter outboundResourceAdapter = new OutboundResourceAdapter();
+ context.beforeUnmarshal(outboundResourceAdapter, LifecycleCallback.NONE);
+
+ List<ConnectionDefinition> connectionDefinition = null;
+ List<AuthenticationMechanism> authenticationMechanism = null;
+
+ // Check xsi:type
+ QName xsiType = reader.getXsiType();
+ if (xsiType != null) {
+ if (("outbound-resourceadapterType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+ return context.unexpectedXsiType(reader, OutboundResourceAdapter.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, outboundResourceAdapter);
+ outboundResourceAdapter.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 (("connection-definition" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: connectionDefinition
+ ConnectionDefinition connectionDefinitionItem = readConnectionDefinition(elementReader, context);
+ if (connectionDefinition == null) {
+ connectionDefinition = outboundResourceAdapter.connectionDefinition;
+ if (connectionDefinition != null) {
+ connectionDefinition.clear();
+ } else {
+ connectionDefinition = new ArrayList<ConnectionDefinition>();
+ }
+ }
+ connectionDefinition.add(connectionDefinitionItem);
+ } else if (("transaction-support" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: transactionSupport
+ TransactionSupportType transactionSupport = parseTransactionSupportType(elementReader, context, elementReader.getElementAsString());
+ if (transactionSupport != null) {
+ outboundResourceAdapter.transactionSupport = transactionSupport;
+ }
+ } else if (("authentication-mechanism" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: authenticationMechanism
+ AuthenticationMechanism authenticationMechanismItem = readAuthenticationMechanism(elementReader, context);
+ if (authenticationMechanism == null) {
+ authenticationMechanism = outboundResourceAdapter.authenticationMechanism;
+ if (authenticationMechanism != null) {
+ authenticationMechanism.clear();
+ } else {
+ authenticationMechanism = new ArrayList<AuthenticationMechanism>();
+ }
+ }
+ authenticationMechanism.add(authenticationMechanismItem);
+ } else if (("reauthentication-support" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: reauthenticationSupport
+ Boolean reauthenticationSupport = ("1".equals(elementReader.getElementAsString()) || "true".equals(elementReader.getElementAsString()));
+ outboundResourceAdapter.reauthenticationSupport = reauthenticationSupport;
+ } else {
+ context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "connection-definition"), new QName("http://java.sun.com/xml/ns/javaee", "transaction-support"), new QName("http://java.sun.com/xml/ns/javaee", "authentication-mechanism"), new QName("http://java.sun.com/xml/ns/javaee", "reauthentication-support"));
+ }
+ }
+ if (connectionDefinition != null) {
+ outboundResourceAdapter.connectionDefinition = connectionDefinition;
+ }
+ if (authenticationMechanism != null) {
+ outboundResourceAdapter.authenticationMechanism = authenticationMechanism;
+ }
+
+ context.afterUnmarshal(outboundResourceAdapter, LifecycleCallback.NONE);
+
+ return outboundResourceAdapter;
+ }
+
+ public final OutboundResourceAdapter read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public final static void _write(XoXMLStreamWriter writer, OutboundResourceAdapter outboundResourceAdapter, RuntimeContext context)
+ throws Exception {
+ if (outboundResourceAdapter == null) {
+ writer.writeXsiNil();
+ return;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+ if (OutboundResourceAdapter.class != outboundResourceAdapter.getClass()) {
+ context.unexpectedSubclass(writer, outboundResourceAdapter, OutboundResourceAdapter.class);
+ return;
+ }
+
+ context.beforeMarshal(outboundResourceAdapter, LifecycleCallback.NONE);
+
+
+ // ATTRIBUTE: id
+ String idRaw = outboundResourceAdapter.id;
+ if (idRaw != null) {
+ String id = null;
+ try {
+ id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(outboundResourceAdapter, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ writer.writeAttribute("", "", "id", id);
+ }
+
+ // ELEMENT: connectionDefinition
+ List<ConnectionDefinition> connectionDefinition = outboundResourceAdapter.connectionDefinition;
+ if (connectionDefinition != null) {
+ for (ConnectionDefinition connectionDefinitionItem : connectionDefinition) {
+ if (connectionDefinitionItem != null) {
+ writer.writeStartElement(prefix, "connection-definition", "http://java.sun.com/xml/ns/javaee");
+ writeConnectionDefinition(writer, connectionDefinitionItem, context);
+ writer.writeEndElement();
+ }
+ }
+ }
+
+ // ELEMENT: transactionSupport
+ TransactionSupportType transactionSupport = outboundResourceAdapter.transactionSupport;
+ if (transactionSupport != null) {
+ writer.writeStartElement(prefix, "transaction-support", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(toStringTransactionSupportType(outboundResourceAdapter, null, context, transactionSupport));
+ writer.writeEndElement();
+ }
+
+ // ELEMENT: authenticationMechanism
+ List<AuthenticationMechanism> authenticationMechanism = outboundResourceAdapter.authenticationMechanism;
+ if (authenticationMechanism != null) {
+ for (AuthenticationMechanism authenticationMechanismItem : authenticationMechanism) {
+ if (authenticationMechanismItem != null) {
+ writer.writeStartElement(prefix, "authentication-mechanism", "http://java.sun.com/xml/ns/javaee");
+ writeAuthenticationMechanism(writer, authenticationMechanismItem, context);
+ writer.writeEndElement();
+ }
+ }
+ }
+
+ // ELEMENT: reauthenticationSupport
+ Boolean reauthenticationSupport = outboundResourceAdapter.reauthenticationSupport;
+ if (reauthenticationSupport != null) {
+ writer.writeStartElement(prefix, "reauthentication-support", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(Boolean.toString(reauthenticationSupport));
+ writer.writeEndElement();
+ }
+
+ context.afterMarshal(outboundResourceAdapter, LifecycleCallback.NONE);
+ }
+
+}
Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/OutboundResourceAdapter$JAXB.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PackageMapping$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PackageMapping%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PackageMapping$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PackageMapping$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,202 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBObject;
+import com.envoisolutions.sxc.jaxb.LifecycleCallback;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.Attribute;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+import com.envoisolutions.sxc.util.XoXMLStreamWriter;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.namespace.QName;
+
+@SuppressWarnings({
+ "StringEquality"
+})
+public class PackageMapping$JAXB
+ extends JAXBObject<PackageMapping> {
+
+
+ public PackageMapping$JAXB() {
+ super(PackageMapping.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "package-mappingType".intern()));
+ }
+
+ public static PackageMapping readPackageMapping(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public static void writePackageMapping(XoXMLStreamWriter writer, PackageMapping packageMapping, RuntimeContext context)
+ throws Exception {
+ _write(writer, packageMapping, context);
+ }
+
+ public void write(XoXMLStreamWriter writer, PackageMapping packageMapping, RuntimeContext context)
+ throws Exception {
+ _write(writer, packageMapping, context);
+ }
+
+ public final static PackageMapping _read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+
+ // Check for xsi:nil
+ if (reader.isXsiNil()) {
+ return null;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ PackageMapping packageMapping = new PackageMapping();
+ context.beforeUnmarshal(packageMapping, LifecycleCallback.NONE);
+
+
+ // Check xsi:type
+ QName xsiType = reader.getXsiType();
+ if (xsiType != null) {
+ if (("package-mappingType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+ return context.unexpectedXsiType(reader, PackageMapping.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, packageMapping);
+ packageMapping.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 (("package-type" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: packageType
+ String packageTypeRaw = elementReader.getElementAsString();
+
+ String packageType;
+ try {
+ packageType = Adapters.collapsedStringAdapterAdapter.unmarshal(packageTypeRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ packageMapping.packageType = packageType;
+ } else if (("namespaceURI" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: namespaceURI
+ String namespaceURIRaw = elementReader.getElementAsString();
+
+ String namespaceURI;
+ try {
+ namespaceURI = Adapters.collapsedStringAdapterAdapter.unmarshal(namespaceURIRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ packageMapping.namespaceURI = namespaceURI;
+ } else {
+ context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "package-type"), new QName("http://java.sun.com/xml/ns/javaee", "namespaceURI"));
+ }
+ }
+
+ context.afterUnmarshal(packageMapping, LifecycleCallback.NONE);
+
+ return packageMapping;
+ }
+
+ public final PackageMapping read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public final static void _write(XoXMLStreamWriter writer, PackageMapping packageMapping, RuntimeContext context)
+ throws Exception {
+ if (packageMapping == null) {
+ writer.writeXsiNil();
+ return;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+ if (PackageMapping.class != packageMapping.getClass()) {
+ context.unexpectedSubclass(writer, packageMapping, PackageMapping.class);
+ return;
+ }
+
+ context.beforeMarshal(packageMapping, LifecycleCallback.NONE);
+
+
+ // ATTRIBUTE: id
+ String idRaw = packageMapping.id;
+ if (idRaw != null) {
+ String id = null;
+ try {
+ id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(packageMapping, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ writer.writeAttribute("", "", "id", id);
+ }
+
+ // ELEMENT: packageType
+ String packageTypeRaw = packageMapping.packageType;
+ String packageType = null;
+ try {
+ packageType = Adapters.collapsedStringAdapterAdapter.marshal(packageTypeRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(packageMapping, "packageType", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (packageType != null) {
+ writer.writeStartElement(prefix, "package-type", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(packageType);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(packageMapping, "packageType");
+ }
+
+ // ELEMENT: namespaceURI
+ String namespaceURIRaw = packageMapping.namespaceURI;
+ String namespaceURI = null;
+ try {
+ namespaceURI = Adapters.collapsedStringAdapterAdapter.marshal(namespaceURIRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(packageMapping, "namespaceURI", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (namespaceURI != null) {
+ writer.writeStartElement(prefix, "namespaceURI", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(namespaceURI);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(packageMapping, "namespaceURI");
+ }
+
+ context.afterMarshal(packageMapping, LifecycleCallback.NONE);
+ }
+
+}
Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PackageMapping$JAXB.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ParamValue$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ParamValue%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ParamValue$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ParamValue$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,240 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBObject;
+import com.envoisolutions.sxc.jaxb.LifecycleCallback;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.Attribute;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+import com.envoisolutions.sxc.util.XoXMLStreamWriter;
+
+import javax.xml.XMLConstants;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.namespace.QName;
+import java.util.ArrayList;
+
+import static org.apache.openejb.jee.Text$JAXB.readText;
+import static org.apache.openejb.jee.Text$JAXB.writeText;
+
+@SuppressWarnings({
+ "StringEquality"
+})
+public class ParamValue$JAXB
+ extends JAXBObject<ParamValue> {
+
+
+ public ParamValue$JAXB() {
+ super(ParamValue.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "param-valueType".intern()), Text$JAXB.class);
+ }
+
+ public static ParamValue readParamValue(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public static void writeParamValue(XoXMLStreamWriter writer, ParamValue paramValue, RuntimeContext context)
+ throws Exception {
+ _write(writer, paramValue, context);
+ }
+
+ public void write(XoXMLStreamWriter writer, ParamValue paramValue, RuntimeContext context)
+ throws Exception {
+ _write(writer, paramValue, context);
+ }
+
+ public final static ParamValue _read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+
+ // Check for xsi:nil
+ if (reader.isXsiNil()) {
+ return null;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ ParamValue paramValue = new ParamValue();
+ context.beforeUnmarshal(paramValue, LifecycleCallback.NONE);
+
+ ArrayList<Text> descriptions = null;
+
+ // Check xsi:type
+ QName xsiType = reader.getXsiType();
+ if (xsiType != null) {
+ if (("param-valueType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+ return context.unexpectedXsiType(reader, ParamValue.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, paramValue);
+ paramValue.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 (("param-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: paramName
+ String paramNameRaw = elementReader.getElementAsString();
+
+ String paramName;
+ try {
+ paramName = Adapters.collapsedStringAdapterAdapter.unmarshal(paramNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ paramValue.paramName = paramName;
+ } else if (("param-value" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: paramValue
+ String paramValue1Raw = elementReader.getElementAsString();
+
+ String paramValue1;
+ try {
+ paramValue1 = Adapters.collapsedStringAdapterAdapter.unmarshal(paramValue1Raw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ paramValue.paramValue = paramValue1;
+ } else {
+ context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "description"), new QName("http://java.sun.com/xml/ns/javaee", "param-name"), new QName("http://java.sun.com/xml/ns/javaee", "param-value"));
+ }
+ }
+ if (descriptions != null) {
+ try {
+ paramValue.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+ } catch (Exception e) {
+ context.setterError(reader, ParamValue.class, "setDescriptions", Text[].class, e);
+ }
+ }
+
+ context.afterUnmarshal(paramValue, LifecycleCallback.NONE);
+
+ return paramValue;
+ }
+
+ public final ParamValue read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public final static void _write(XoXMLStreamWriter writer, ParamValue paramValue, RuntimeContext context)
+ throws Exception {
+ if (paramValue == null) {
+ writer.writeXsiNil();
+ return;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+ if (ParamValue.class != paramValue.getClass()) {
+ context.unexpectedSubclass(writer, paramValue, ParamValue.class);
+ return;
+ }
+
+ context.beforeMarshal(paramValue, LifecycleCallback.NONE);
+
+
+ // ATTRIBUTE: id
+ String idRaw = paramValue.id;
+ if (idRaw != null) {
+ String id = null;
+ try {
+ id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(paramValue, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ writer.writeAttribute("", "", "id", id);
+ }
+
+ // ELEMENT: descriptions
+ Text[] descriptions = null;
+ try {
+ descriptions = paramValue.getDescriptions();
+ } catch (Exception e) {
+ context.getterError(paramValue, "descriptions", ParamValue.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(paramValue, "descriptions");
+ }
+ }
+ }
+
+ // ELEMENT: paramName
+ String paramNameRaw = paramValue.paramName;
+ String paramName = null;
+ try {
+ paramName = Adapters.collapsedStringAdapterAdapter.marshal(paramNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(paramValue, "paramName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (paramName != null) {
+ writer.writeStartElement(prefix, "param-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(paramName);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(paramValue, "paramName");
+ }
+
+ // ELEMENT: paramValue
+ String paramValueRaw = paramValue.paramValue;
+ String paramValue1 = null;
+ try {
+ paramValue1 = Adapters.collapsedStringAdapterAdapter.marshal(paramValueRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(paramValue, "paramValue", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (paramValue1 != null) {
+ writer.writeStartElement(prefix, "param-value", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(paramValue1);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(paramValue, "paramValue");
+ }
+
+ context.afterMarshal(paramValue, LifecycleCallback.NONE);
+ }
+
+}
Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/ParamValue$JAXB.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextRef$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextRef%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextRef$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextRef$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,375 @@
+/*
+ * 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.LinkedHashSet;
+import java.util.List;
+import java.util.Set;
+
+import static org.apache.openejb.jee.InjectionTarget$JAXB.readInjectionTarget;
+import static org.apache.openejb.jee.InjectionTarget$JAXB.writeInjectionTarget;
+import static org.apache.openejb.jee.PersistenceContextType$JAXB.parsePersistenceContextType;
+import static org.apache.openejb.jee.PersistenceContextType$JAXB.toStringPersistenceContextType;
+import static org.apache.openejb.jee.Property$JAXB.readProperty;
+import static org.apache.openejb.jee.Property$JAXB.writeProperty;
+import static org.apache.openejb.jee.Text$JAXB.readText;
+import static org.apache.openejb.jee.Text$JAXB.writeText;
+
+@SuppressWarnings({
+ "StringEquality"
+})
+public class PersistenceContextRef$JAXB
+ extends JAXBObject<PersistenceContextRef> {
+
+
+ public PersistenceContextRef$JAXB() {
+ super(PersistenceContextRef.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "persistence-context-refType".intern()), Text$JAXB.class, PersistenceContextType$JAXB.class, Property$JAXB.class, InjectionTarget$JAXB.class);
+ }
+
+ public static PersistenceContextRef readPersistenceContextRef(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public static void writePersistenceContextRef(XoXMLStreamWriter writer, PersistenceContextRef persistenceContextRef, RuntimeContext context)
+ throws Exception {
+ _write(writer, persistenceContextRef, context);
+ }
+
+ public void write(XoXMLStreamWriter writer, PersistenceContextRef persistenceContextRef, RuntimeContext context)
+ throws Exception {
+ _write(writer, persistenceContextRef, context);
+ }
+
+ public final static PersistenceContextRef _read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+
+ // Check for xsi:nil
+ if (reader.isXsiNil()) {
+ return null;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ PersistenceContextRef persistenceContextRef = new PersistenceContextRef();
+ context.beforeUnmarshal(persistenceContextRef, LifecycleCallback.NONE);
+
+ ArrayList<Text> descriptions = null;
+ List<Property> persistenceProperty = null;
+ Set<InjectionTarget> injectionTarget = null;
+
+ // Check xsi:type
+ QName xsiType = reader.getXsiType();
+ if (xsiType != null) {
+ if (("persistence-context-refType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+ return context.unexpectedXsiType(reader, PersistenceContextRef.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, persistenceContextRef);
+ persistenceContextRef.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 (("persistence-context-ref-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: persistenceContextRefName
+ String persistenceContextRefNameRaw = elementReader.getElementAsString();
+
+ String persistenceContextRefName;
+ try {
+ persistenceContextRefName = Adapters.collapsedStringAdapterAdapter.unmarshal(persistenceContextRefNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ persistenceContextRef.persistenceContextRefName = persistenceContextRefName;
+ } else if (("persistence-unit-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: persistenceUnitName
+ String persistenceUnitNameRaw = elementReader.getElementAsString();
+
+ String persistenceUnitName;
+ try {
+ persistenceUnitName = Adapters.collapsedStringAdapterAdapter.unmarshal(persistenceUnitNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ persistenceContextRef.persistenceUnitName = persistenceUnitName;
+ } else if (("persistence-context-type" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: persistenceContextType
+ PersistenceContextType persistenceContextType = parsePersistenceContextType(elementReader, context, elementReader.getElementAsString());
+ if (persistenceContextType != null) {
+ persistenceContextRef.persistenceContextType = persistenceContextType;
+ }
+ } else if (("persistence-property" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: persistenceProperty
+ Property persistencePropertyItem = readProperty(elementReader, context);
+ if (persistenceProperty == null) {
+ persistenceProperty = persistenceContextRef.persistenceProperty;
+ if (persistenceProperty != null) {
+ persistenceProperty.clear();
+ } else {
+ persistenceProperty = new ArrayList<Property>();
+ }
+ }
+ persistenceProperty.add(persistencePropertyItem);
+ } else if (("mapped-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: mappedName
+ String mappedNameRaw = elementReader.getElementAsString();
+
+ String mappedName;
+ try {
+ mappedName = Adapters.collapsedStringAdapterAdapter.unmarshal(mappedNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ persistenceContextRef.mappedName = mappedName;
+ } else if (("injection-target" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: injectionTarget
+ InjectionTarget injectionTargetItem = readInjectionTarget(elementReader, context);
+ if (injectionTarget == null) {
+ injectionTarget = persistenceContextRef.injectionTarget;
+ if (injectionTarget != null) {
+ injectionTarget.clear();
+ } else {
+ injectionTarget = new LinkedHashSet<InjectionTarget>();
+ }
+ }
+ injectionTarget.add(injectionTargetItem);
+ } else if (("lookup-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: lookupName
+ String lookupNameRaw = elementReader.getElementAsString();
+
+ String lookupName;
+ try {
+ lookupName = Adapters.collapsedStringAdapterAdapter.unmarshal(lookupNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ persistenceContextRef.lookupName = lookupName;
+ } else {
+ context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "description"), new QName("http://java.sun.com/xml/ns/javaee", "persistence-context-ref-name"), new QName("http://java.sun.com/xml/ns/javaee", "persistence-unit-name"), new QName("http://java.sun.com/xml/ns/javaee", "persistence-context-type"), new QName("http://java.sun.com/xml/ns/javaee", "persistence-property"), new QName("http://java.sun.com/xml/ns/javaee", "mapped-name"), new QName("http://java.sun.com/xml/ns/javaee", "injection-target"), new QName("http://java.sun.com/xml/ns/javaee", "lookup-name"));
+ }
+ }
+ if (descriptions != null) {
+ try {
+ persistenceContextRef.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+ } catch (Exception e) {
+ context.setterError(reader, PersistenceContextRef.class, "setDescriptions", Text[].class, e);
+ }
+ }
+ if (persistenceProperty != null) {
+ persistenceContextRef.persistenceProperty = persistenceProperty;
+ }
+ if (injectionTarget != null) {
+ persistenceContextRef.injectionTarget = injectionTarget;
+ }
+
+ context.afterUnmarshal(persistenceContextRef, LifecycleCallback.NONE);
+
+ return persistenceContextRef;
+ }
+
+ public final PersistenceContextRef read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public final static void _write(XoXMLStreamWriter writer, PersistenceContextRef persistenceContextRef, RuntimeContext context)
+ throws Exception {
+ if (persistenceContextRef == null) {
+ writer.writeXsiNil();
+ return;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+ if (PersistenceContextRef.class != persistenceContextRef.getClass()) {
+ context.unexpectedSubclass(writer, persistenceContextRef, PersistenceContextRef.class);
+ return;
+ }
+
+ context.beforeMarshal(persistenceContextRef, LifecycleCallback.NONE);
+
+
+ // ATTRIBUTE: id
+ String idRaw = persistenceContextRef.id;
+ if (idRaw != null) {
+ String id = null;
+ try {
+ id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceContextRef, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ writer.writeAttribute("", "", "id", id);
+ }
+
+ // ELEMENT: descriptions
+ Text[] descriptions = null;
+ try {
+ descriptions = persistenceContextRef.getDescriptions();
+ } catch (Exception e) {
+ context.getterError(persistenceContextRef, "descriptions", PersistenceContextRef.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(persistenceContextRef, "descriptions");
+ }
+ }
+ }
+
+ // ELEMENT: persistenceContextRefName
+ String persistenceContextRefNameRaw = persistenceContextRef.persistenceContextRefName;
+ String persistenceContextRefName = null;
+ try {
+ persistenceContextRefName = Adapters.collapsedStringAdapterAdapter.marshal(persistenceContextRefNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceContextRef, "persistenceContextRefName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (persistenceContextRefName != null) {
+ writer.writeStartElement(prefix, "persistence-context-ref-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(persistenceContextRefName);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(persistenceContextRef, "persistenceContextRefName");
+ }
+
+ // ELEMENT: persistenceUnitName
+ String persistenceUnitNameRaw = persistenceContextRef.persistenceUnitName;
+ String persistenceUnitName = null;
+ try {
+ persistenceUnitName = Adapters.collapsedStringAdapterAdapter.marshal(persistenceUnitNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceContextRef, "persistenceUnitName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (persistenceUnitName != null) {
+ writer.writeStartElement(prefix, "persistence-unit-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(persistenceUnitName);
+ writer.writeEndElement();
+ }
+
+ // ELEMENT: persistenceContextType
+ PersistenceContextType persistenceContextType = persistenceContextRef.persistenceContextType;
+ if (persistenceContextType != null) {
+ writer.writeStartElement(prefix, "persistence-context-type", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(toStringPersistenceContextType(persistenceContextRef, null, context, persistenceContextType));
+ writer.writeEndElement();
+ }
+
+ // ELEMENT: persistenceProperty
+ List<Property> persistenceProperty = persistenceContextRef.persistenceProperty;
+ if (persistenceProperty != null) {
+ for (Property persistencePropertyItem : persistenceProperty) {
+ if (persistencePropertyItem != null) {
+ writer.writeStartElement(prefix, "persistence-property", "http://java.sun.com/xml/ns/javaee");
+ writeProperty(writer, persistencePropertyItem, context);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(persistenceContextRef, "persistenceProperty");
+ }
+ }
+ }
+
+ // ELEMENT: mappedName
+ String mappedNameRaw = persistenceContextRef.mappedName;
+ String mappedName = null;
+ try {
+ mappedName = Adapters.collapsedStringAdapterAdapter.marshal(mappedNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceContextRef, "mappedName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (mappedName != null) {
+ writer.writeStartElement(prefix, "mapped-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(mappedName);
+ writer.writeEndElement();
+ }
+
+ // ELEMENT: injectionTarget
+ Set<InjectionTarget> injectionTarget = persistenceContextRef.injectionTarget;
+ if (injectionTarget != null) {
+ for (InjectionTarget injectionTargetItem : injectionTarget) {
+ if (injectionTargetItem != null) {
+ writer.writeStartElement(prefix, "injection-target", "http://java.sun.com/xml/ns/javaee");
+ writeInjectionTarget(writer, injectionTargetItem, context);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(persistenceContextRef, "injectionTarget");
+ }
+ }
+ }
+
+ // ELEMENT: lookupName
+ String lookupNameRaw = persistenceContextRef.lookupName;
+ String lookupName = null;
+ try {
+ lookupName = Adapters.collapsedStringAdapterAdapter.marshal(lookupNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceContextRef, "lookupName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (lookupName != null) {
+ writer.writeStartElement(prefix, "lookup-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(lookupName);
+ writer.writeEndElement();
+ }
+
+ context.afterMarshal(persistenceContextRef, LifecycleCallback.NONE);
+ }
+
+}
Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextRef$JAXB.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextType$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextType%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextType$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextType$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBEnum;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+
+import javax.xml.namespace.QName;
+
+public class PersistenceContextType$JAXB
+ extends JAXBEnum<PersistenceContextType> {
+
+
+ public PersistenceContextType$JAXB() {
+ super(PersistenceContextType.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "persistenceContextType".intern()));
+ }
+
+ public PersistenceContextType parse(XoXMLStreamReader reader, RuntimeContext context, String value)
+ throws Exception {
+ return parsePersistenceContextType(reader, context, value);
+ }
+
+ public String toString(Object bean, String parameterName, RuntimeContext context, PersistenceContextType persistenceContextType)
+ throws Exception {
+ return toStringPersistenceContextType(bean, parameterName, context, persistenceContextType);
+ }
+
+ public static PersistenceContextType parsePersistenceContextType(XoXMLStreamReader reader, RuntimeContext context, String value)
+ throws Exception {
+ if ("Transaction".equals(value)) {
+ return PersistenceContextType.TRANSACTION;
+ } else if ("Extended".equals(value)) {
+ return PersistenceContextType.EXTENDED;
+ } else {
+ context.unexpectedEnumValue(reader, PersistenceContextType.class, value, "Transaction", "Extended");
+ return null;
+ }
+ }
+
+ public static String toStringPersistenceContextType(Object bean, String parameterName, RuntimeContext context, PersistenceContextType persistenceContextType)
+ throws Exception {
+ if (PersistenceContextType.TRANSACTION == persistenceContextType) {
+ return "Transaction";
+ } else if (PersistenceContextType.EXTENDED == persistenceContextType) {
+ return "Extended";
+ } else {
+ context.unexpectedEnumConst(bean, parameterName, persistenceContextType, PersistenceContextType.TRANSACTION, PersistenceContextType.EXTENDED);
+ return null;
+ }
+ }
+
+}
Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceContextType$JAXB.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceType$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceType%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceType$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceType$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.openejb.jee;
+
+import com.envoisolutions.sxc.jaxb.JAXBEnum;
+import com.envoisolutions.sxc.jaxb.RuntimeContext;
+import com.envoisolutions.sxc.util.XoXMLStreamReader;
+
+import javax.xml.namespace.QName;
+
+public class PersistenceType$JAXB
+ extends JAXBEnum<PersistenceType> {
+
+
+ public PersistenceType$JAXB() {
+ super(PersistenceType.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "persistenceType".intern()));
+ }
+
+ public PersistenceType parse(XoXMLStreamReader reader, RuntimeContext context, String value)
+ throws Exception {
+ return parsePersistenceType(reader, context, value);
+ }
+
+ public String toString(Object bean, String parameterName, RuntimeContext context, PersistenceType persistenceType)
+ throws Exception {
+ return toStringPersistenceType(bean, parameterName, context, persistenceType);
+ }
+
+ public static PersistenceType parsePersistenceType(XoXMLStreamReader reader, RuntimeContext context, String value)
+ throws Exception {
+ if ("Bean".equals(value)) {
+ return PersistenceType.BEAN;
+ } else if ("Container".equals(value)) {
+ return PersistenceType.CONTAINER;
+ } else {
+ context.unexpectedEnumValue(reader, PersistenceType.class, value, "Bean", "Container");
+ return null;
+ }
+ }
+
+ public static String toStringPersistenceType(Object bean, String parameterName, RuntimeContext context, PersistenceType persistenceType)
+ throws Exception {
+ if (PersistenceType.BEAN == persistenceType) {
+ return "Bean";
+ } else if (PersistenceType.CONTAINER == persistenceType) {
+ return "Container";
+ } else {
+ context.unexpectedEnumConst(bean, parameterName, persistenceType, PersistenceType.BEAN, PersistenceType.CONTAINER);
+ return null;
+ }
+ }
+
+}
Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceType$JAXB.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceUnitRef$JAXB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceUnitRef%24JAXB.java?rev=1419199&view=auto
==============================================================================
--- openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceUnitRef$JAXB.java (added)
+++ openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceUnitRef$JAXB.java Mon Dec 10 05:08:14 2012
@@ -0,0 +1,326 @@
+/*
+ * 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.LinkedHashSet;
+import java.util.Set;
+
+import static org.apache.openejb.jee.InjectionTarget$JAXB.readInjectionTarget;
+import static org.apache.openejb.jee.InjectionTarget$JAXB.writeInjectionTarget;
+import static org.apache.openejb.jee.Text$JAXB.readText;
+import static org.apache.openejb.jee.Text$JAXB.writeText;
+
+@SuppressWarnings({
+ "StringEquality"
+})
+public class PersistenceUnitRef$JAXB
+ extends JAXBObject<PersistenceUnitRef> {
+
+
+ public PersistenceUnitRef$JAXB() {
+ super(PersistenceUnitRef.class, null, new QName("http://java.sun.com/xml/ns/javaee".intern(), "persistence-unit-refType".intern()), Text$JAXB.class, InjectionTarget$JAXB.class);
+ }
+
+ public static PersistenceUnitRef readPersistenceUnitRef(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public static void writePersistenceUnitRef(XoXMLStreamWriter writer, PersistenceUnitRef persistenceUnitRef, RuntimeContext context)
+ throws Exception {
+ _write(writer, persistenceUnitRef, context);
+ }
+
+ public void write(XoXMLStreamWriter writer, PersistenceUnitRef persistenceUnitRef, RuntimeContext context)
+ throws Exception {
+ _write(writer, persistenceUnitRef, context);
+ }
+
+ public final static PersistenceUnitRef _read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+
+ // Check for xsi:nil
+ if (reader.isXsiNil()) {
+ return null;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ PersistenceUnitRef persistenceUnitRef = new PersistenceUnitRef();
+ context.beforeUnmarshal(persistenceUnitRef, LifecycleCallback.NONE);
+
+ ArrayList<Text> descriptions = null;
+ Set<InjectionTarget> injectionTarget = null;
+
+ // Check xsi:type
+ QName xsiType = reader.getXsiType();
+ if (xsiType != null) {
+ if (("persistence-unit-refType" != xsiType.getLocalPart()) || ("http://java.sun.com/xml/ns/javaee" != xsiType.getNamespaceURI())) {
+ return context.unexpectedXsiType(reader, PersistenceUnitRef.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, persistenceUnitRef);
+ persistenceUnitRef.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 (("persistence-unit-ref-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: persistenceUnitRefName
+ String persistenceUnitRefNameRaw = elementReader.getElementAsString();
+
+ String persistenceUnitRefName;
+ try {
+ persistenceUnitRefName = Adapters.collapsedStringAdapterAdapter.unmarshal(persistenceUnitRefNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ persistenceUnitRef.persistenceUnitRefName = persistenceUnitRefName;
+ } else if (("persistence-unit-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: persistenceUnitName
+ String persistenceUnitNameRaw = elementReader.getElementAsString();
+
+ String persistenceUnitName;
+ try {
+ persistenceUnitName = Adapters.collapsedStringAdapterAdapter.unmarshal(persistenceUnitNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ persistenceUnitRef.persistenceUnitName = persistenceUnitName;
+ } else if (("mapped-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: mappedName
+ String mappedNameRaw = elementReader.getElementAsString();
+
+ String mappedName;
+ try {
+ mappedName = Adapters.collapsedStringAdapterAdapter.unmarshal(mappedNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ persistenceUnitRef.mappedName = mappedName;
+ } else if (("injection-target" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: injectionTarget
+ InjectionTarget injectionTargetItem = readInjectionTarget(elementReader, context);
+ if (injectionTarget == null) {
+ injectionTarget = persistenceUnitRef.injectionTarget;
+ if (injectionTarget != null) {
+ injectionTarget.clear();
+ } else {
+ injectionTarget = new LinkedHashSet<InjectionTarget>();
+ }
+ }
+ injectionTarget.add(injectionTargetItem);
+ } else if (("lookup-name" == elementReader.getLocalName()) && ("http://java.sun.com/xml/ns/javaee" == elementReader.getNamespaceURI())) {
+ // ELEMENT: lookupName
+ String lookupNameRaw = elementReader.getElementAsString();
+
+ String lookupName;
+ try {
+ lookupName = Adapters.collapsedStringAdapterAdapter.unmarshal(lookupNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(elementReader, CollapsedStringAdapter.class, String.class, String.class, e);
+ continue;
+ }
+
+ persistenceUnitRef.lookupName = lookupName;
+ } else {
+ context.unexpectedElement(elementReader, new QName("http://java.sun.com/xml/ns/javaee", "description"), new QName("http://java.sun.com/xml/ns/javaee", "persistence-unit-ref-name"), new QName("http://java.sun.com/xml/ns/javaee", "persistence-unit-name"), new QName("http://java.sun.com/xml/ns/javaee", "mapped-name"), new QName("http://java.sun.com/xml/ns/javaee", "injection-target"), new QName("http://java.sun.com/xml/ns/javaee", "lookup-name"));
+ }
+ }
+ if (descriptions != null) {
+ try {
+ persistenceUnitRef.setDescriptions(descriptions.toArray(new Text[descriptions.size()]));
+ } catch (Exception e) {
+ context.setterError(reader, PersistenceUnitRef.class, "setDescriptions", Text[].class, e);
+ }
+ }
+ if (injectionTarget != null) {
+ persistenceUnitRef.injectionTarget = injectionTarget;
+ }
+
+ context.afterUnmarshal(persistenceUnitRef, LifecycleCallback.NONE);
+
+ return persistenceUnitRef;
+ }
+
+ public final PersistenceUnitRef read(XoXMLStreamReader reader, RuntimeContext context)
+ throws Exception {
+ return _read(reader, context);
+ }
+
+ public final static void _write(XoXMLStreamWriter writer, PersistenceUnitRef persistenceUnitRef, RuntimeContext context)
+ throws Exception {
+ if (persistenceUnitRef == null) {
+ writer.writeXsiNil();
+ return;
+ }
+
+ if (context == null) {
+ context = new RuntimeContext();
+ }
+
+ String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
+ if (PersistenceUnitRef.class != persistenceUnitRef.getClass()) {
+ context.unexpectedSubclass(writer, persistenceUnitRef, PersistenceUnitRef.class);
+ return;
+ }
+
+ context.beforeMarshal(persistenceUnitRef, LifecycleCallback.NONE);
+
+
+ // ATTRIBUTE: id
+ String idRaw = persistenceUnitRef.id;
+ if (idRaw != null) {
+ String id = null;
+ try {
+ id = Adapters.collapsedStringAdapterAdapter.marshal(idRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceUnitRef, "id", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ writer.writeAttribute("", "", "id", id);
+ }
+
+ // ELEMENT: descriptions
+ Text[] descriptions = null;
+ try {
+ descriptions = persistenceUnitRef.getDescriptions();
+ } catch (Exception e) {
+ context.getterError(persistenceUnitRef, "descriptions", PersistenceUnitRef.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(persistenceUnitRef, "descriptions");
+ }
+ }
+ }
+
+ // ELEMENT: persistenceUnitRefName
+ String persistenceUnitRefNameRaw = persistenceUnitRef.persistenceUnitRefName;
+ String persistenceUnitRefName = null;
+ try {
+ persistenceUnitRefName = Adapters.collapsedStringAdapterAdapter.marshal(persistenceUnitRefNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceUnitRef, "persistenceUnitRefName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (persistenceUnitRefName != null) {
+ writer.writeStartElement(prefix, "persistence-unit-ref-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(persistenceUnitRefName);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(persistenceUnitRef, "persistenceUnitRefName");
+ }
+
+ // ELEMENT: persistenceUnitName
+ String persistenceUnitNameRaw = persistenceUnitRef.persistenceUnitName;
+ String persistenceUnitName = null;
+ try {
+ persistenceUnitName = Adapters.collapsedStringAdapterAdapter.marshal(persistenceUnitNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceUnitRef, "persistenceUnitName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (persistenceUnitName != null) {
+ writer.writeStartElement(prefix, "persistence-unit-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(persistenceUnitName);
+ writer.writeEndElement();
+ }
+
+ // ELEMENT: mappedName
+ String mappedNameRaw = persistenceUnitRef.mappedName;
+ String mappedName = null;
+ try {
+ mappedName = Adapters.collapsedStringAdapterAdapter.marshal(mappedNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceUnitRef, "mappedName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (mappedName != null) {
+ writer.writeStartElement(prefix, "mapped-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(mappedName);
+ writer.writeEndElement();
+ }
+
+ // ELEMENT: injectionTarget
+ Set<InjectionTarget> injectionTarget = persistenceUnitRef.injectionTarget;
+ if (injectionTarget != null) {
+ for (InjectionTarget injectionTargetItem : injectionTarget) {
+ if (injectionTargetItem != null) {
+ writer.writeStartElement(prefix, "injection-target", "http://java.sun.com/xml/ns/javaee");
+ writeInjectionTarget(writer, injectionTargetItem, context);
+ writer.writeEndElement();
+ } else {
+ context.unexpectedNullValue(persistenceUnitRef, "injectionTarget");
+ }
+ }
+ }
+
+ // ELEMENT: lookupName
+ String lookupNameRaw = persistenceUnitRef.lookupName;
+ String lookupName = null;
+ try {
+ lookupName = Adapters.collapsedStringAdapterAdapter.marshal(lookupNameRaw);
+ } catch (Exception e) {
+ context.xmlAdapterError(persistenceUnitRef, "lookupName", CollapsedStringAdapter.class, String.class, String.class, e);
+ }
+ if (lookupName != null) {
+ writer.writeStartElement(prefix, "lookup-name", "http://java.sun.com/xml/ns/javaee");
+ writer.writeCharacters(lookupName);
+ writer.writeEndElement();
+ }
+
+ context.afterMarshal(persistenceUnitRef, LifecycleCallback.NONE);
+ }
+
+}
Propchange: openejb/trunk/openejb/container/openejb-jee-accessors/src/main/java/org/apache/openejb/jee/PersistenceUnitRef$JAXB.java
------------------------------------------------------------------------------
svn:eol-style = native