geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject svn commit: r946883 [7/13] - in /geronimo/devtools/eclipse-plugin/trunk/plugins: org.apache.geronimo.j2ee.v11.jaxbmodel/ org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/ org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java...
Date Fri, 21 May 2010 05:47:38 GMT
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXB11Utils.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXB11Utils.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXB11Utils.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXB11Utils.java Fri May 21 05:47:34 2010
@@ -0,0 +1,227 @@
+/*
+ * 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.geronimo.j2ee.jaxbmodel.operations;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.io.UnsupportedEncodingException;
+import java.lang.reflect.Method;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Marshaller;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.parsers.SAXParser;
+import javax.xml.parsers.SAXParserFactory;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Result;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.sax.SAXSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.apache.geronimo.j2ee.jaxbmodel.Activator;
+import org.apache.geronimo.j2ee.jaxbmodel.internal.Trace;
+import org.apache.geronimo.jaxbmodel.common.operations.IJAXBUtilsProvider;
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.runtime.CoreException;
+import org.w3c.dom.Document;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class JAXB11Utils implements IJAXBUtilsProvider{
+
+    // JAXBContext instantiation is costly - must be done only once!
+    private static final JAXBContext jaxbContext = newJAXBContext();
+    private static final MarshallerListener marshallerListener = new MarshallerListener();
+    //private static JAXB11Utils _instance = new JAXB11Utils();
+    
+    
+    private static JAXBContext newJAXBContext() {
+        try {
+            return JAXBContext.newInstance( 
+                    "org.apache.geronimo.j2ee.deployment:" +
+                    "org.apache.geronimo.j2ee.application:" +
+                    "org.apache.geronimo.j2ee.applicationclient:" +
+                    "org.apache.geronimo.j2ee.connector:" +
+                    "org.apache.geronimo.j2ee.web:" +
+                    "org.apache.geronimo.j2ee.naming:" +
+                    "org.apache.geronimo.j2ee.security:" +
+                    "org.apache.geronimo.j2ee.openejb_jar:"+
+                    "org.apache.geronimo.j2ee.pkgen:"+
+                    "org.apache.geronimo.j2ee.corba_css_config:"+
+                    "org.apache.geronimo.j2ee.corba_tss_config:", Activator.class.getClassLoader() );
+        } catch (JAXBException e) {
+            Trace.tracePoint("JAXBException", "JAXBContext.newInstance");
+            e.printStackTrace();
+        }
+        return null;
+    }
+    
+  /*  public JAXB11Utils(){
+    }
+    
+    public static JAXB11Utils getInstance(){
+    	return _instance;
+    }*/
+
+    
+    public void marshalDeploymentPlan(JAXBElement jaxbElement, IFile file) throws Exception {
+        try {
+            Marshaller marshaller = jaxbContext.createMarshaller();
+            marshaller.setListener(marshallerListener);
+
+            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
+            dbf.setNamespaceAware(true);
+            DocumentBuilder db = dbf.newDocumentBuilder();
+            Document doc = db.newDocument(); 
+
+            marshaller.marshal(jaxbElement, doc);
+
+            TransformerFactory xf = TransformerFactory.newInstance();
+            try {
+            	xf.setAttribute("indent-number", new Integer(4));
+            } catch (IllegalArgumentException iae) {
+                //ignore this. http://forums.sun.com/thread.jspa?threadID=562510&messageID=2841867
+            }
+            Transformer xformer = xf.newTransformer();
+            xformer.setOutputProperty(OutputKeys.METHOD, "xml");
+            xformer.setOutputProperty(OutputKeys.INDENT, "yes");
+            xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
+            xformer.setOutputProperty("{http://xml.apache.org/xalan}indent-amount", "4"); 
+
+            ByteArrayOutputStream outBuffer = new ByteArrayOutputStream();
+            Result out = new StreamResult(new OutputStreamWriter(outBuffer,"UTF-8"));
+            NamespacePrefix.processPrefix(doc);
+
+            xformer.transform(new DOMSource(doc), out);
+            ByteArrayInputStream inBuffer = new ByteArrayInputStream(outBuffer.toByteArray());
+            if(file.exists()) {
+                file.setContents(inBuffer, true, false, null);
+            } else {
+                prepareFolder(file.getParent());
+                file.create(inBuffer, true, null);
+            }
+        } catch (JAXBException jaxbException) {
+            Trace.tracePoint("JAXBException", "JAXB11Utils.marshalDeploymentPlan()", file.getFullPath());
+            throw jaxbException;
+        } catch (CoreException coreException) {
+            Trace.tracePoint("CoreException", "JAXB11Utils.marshalDeploymentPlan()", file.getFullPath());
+            throw coreException;
+        } catch (ParserConfigurationException e) {
+        	Trace.tracePoint("ParserConfigurationException", "JAXB11Utils.marshalDeploymentPlan()", file.getFullPath());
+        	throw e;
+		} catch (TransformerConfigurationException e) {
+			Trace.tracePoint("TransformerConfigurationException", "JAXB11Utils.marshalDeploymentPlan()", file.getFullPath());
+			throw e;
+		} catch (UnsupportedEncodingException e) {
+			Trace.tracePoint("UnsupportedEncodingException", "JAXB11Utils.marshalDeploymentPlan()", file.getFullPath());
+			throw e;
+		} catch (TransformerException e) {
+			Trace.tracePoint("TransformerException", "JAXB11Utils.marshalDeploymentPlan()", file.getFullPath());
+			throw e;
+		}
+    }
+
+    public JAXBElement unmarshalFilterDeploymentPlan(IFile file) throws Exception {
+        try {
+            Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
+            SAXParserFactory factory = SAXParserFactory.newInstance();
+            factory.setNamespaceAware(true);
+            factory.setValidating(false);
+            SAXParser parser = factory.newSAXParser();
+            SAXSource source = new SAXSource(null, new InputSource(file.getContents()));
+            JAXBElement plan = (JAXBElement) unmarshaller.unmarshal(source);
+            return plan;
+        } catch (JAXBException e) {
+            Trace.tracePoint("JAXBException", "JAXB11Utils.unmarshalFilterDeploymentPlan()", file.getFullPath());
+            throw e;
+        } catch (CoreException e) {
+            Trace.tracePoint("CoreException", "JAXB11Utils.unmarshalFilterDeploymentPlan()", file.getFullPath());
+            throw e;
+        } catch (ParserConfigurationException e) {
+            Trace.tracePoint("ParserConfigurationException", "JAXB11Utils.unmarshalFilterDeploymentPlan()", file.getFullPath());
+            throw e;
+        } catch (SAXException e) {
+            Trace.tracePoint("SAXException", "JAXB11Utils.unmarshalFilterDeploymentPlan()", file.getFullPath());
+            throw e;
+        }
+    }
+
+    private void prepareFolder(IContainer folder) throws CoreException {
+        if (folder.exists() || !(folder instanceof IFolder)) {
+            return;
+        }
+        // prepare the upper level folders recursively
+        prepareFolder(folder.getParent());
+        ((IFolder) folder).create(true, true, null);
+    }
+
+    public Object getValue( Object element, String name ) throws Exception {
+        try {
+            if (String.class.isInstance(element))
+                return (String)element;
+            Method method = element.getClass().getMethod( "get" + name, null);
+            return method.invoke(element, null);
+        } catch ( Exception e ) {
+            throw e;
+        }
+    }
+    
+    public void setValue( Object element, String name, Object value ) throws Exception {
+        try {
+            Method[] methods = element.getClass().getMethods();
+            for ( Method method: methods) {
+                if ( method.getName().equals( "set" + name ) ) {
+                    method.invoke( element, value );
+                    return;
+                }
+            }
+        } catch (Exception e) {
+            throw e;
+        }
+        System.out.println( "============== No such method set" + name + " in class " + element.getClass().getName() );
+    }
+
+	public JAXBContext getJAXBContext() {
+	    return jaxbContext;
+    }
+
+	public void marshalPlugin(JAXBElement jaxbElement, OutputStream outputStream)
+            throws Exception {
+	    
+    }
+
+	public JAXBElement unmarshalPlugin(InputStream inputStream) {
+	    return null;
+    }
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXB11Utils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXB11Utils.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXB11Utils.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBModelUtils.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBModelUtils.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBModelUtils.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBModelUtils.java Fri May 21 05:47:34 2010
@@ -0,0 +1,193 @@
+/*
+ * 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.geronimo.j2ee.jaxbmodel.operations;
+
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.j2ee.application.ApplicationType;
+import org.apache.geronimo.j2ee.applicationclient.ApplicationClientType;
+import org.apache.geronimo.j2ee.connector.ConnectorType;
+import org.apache.geronimo.j2ee.deployment.EnvironmentType;
+import org.apache.geronimo.j2ee.openejb_jar.OpenejbJarType;
+import org.apache.geronimo.j2ee.openejb_jar.RelationshipsType;
+import org.apache.geronimo.j2ee.security.SecurityType;
+import org.apache.geronimo.j2ee.web.WebAppType;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class JAXBModelUtils {
+	
+    
+    public static SecurityType getSecurity (JAXBElement element) {
+        Object plan = element;
+        if (WebAppType.class.isInstance (plan)) {
+            if (((WebAppType)plan).getSecurity() == null) {
+                setSecurity (element, new org.apache.geronimo.j2ee.security.ObjectFactory().createSecurityType());
+            }
+            SecurityType security = (SecurityType)((WebAppType)plan).getSecurity();
+            if (security.getRoleMappings() == null) {
+                security.setRoleMappings (new org.apache.geronimo.j2ee.security.ObjectFactory().createRoleMappingsType());
+            }
+            return security;
+        } else if (ApplicationType.class.isInstance (plan)) {
+            if (((ApplicationType)plan).getSecurity() == null) {
+                setSecurity (element, new org.apache.geronimo.j2ee.security.ObjectFactory().createSecurityType());
+            }
+            SecurityType security = (SecurityType)((ApplicationType)plan).getSecurity();
+            if (security.getRoleMappings() == null) {
+                security.setRoleMappings (new org.apache.geronimo.j2ee.security.ObjectFactory().createRoleMappingsType());
+            }
+            return security;
+        } else if (OpenejbJarType.class.isInstance (plan)) {
+            if (((OpenejbJarType)plan).getSecurity() == null) {
+                setSecurity (element, new org.apache.geronimo.j2ee.security.ObjectFactory().createSecurityType());
+            }
+            SecurityType security = (SecurityType)((OpenejbJarType)plan).getSecurity();
+            if (security.getRoleMappings() == null) {
+                security.setRoleMappings (new org.apache.geronimo.j2ee.security.ObjectFactory().createRoleMappingsType());
+            }
+            return security;
+        }
+        return null;
+    }
+    
+    public static void setSecurity (JAXBElement element, SecurityType security) {
+        Object plan = element;
+        if (WebAppType.class.isInstance (plan)) {
+            ((WebAppType)plan).setSecurity((new org.apache.geronimo.j2ee.security.ObjectFactory()).createSecurity( security ).getValue() );
+        } else if (ApplicationType.class.isInstance(plan)) {
+            ((ApplicationType)plan).setSecurity((new org.apache.geronimo.j2ee.security.ObjectFactory()).createSecurity( security ).getValue() );
+        } else if (OpenejbJarType.class.isInstance(plan)) {
+            ((OpenejbJarType)plan).setSecurity((new org.apache.geronimo.j2ee.security.ObjectFactory()).createSecurity( security ).getValue() );
+        }
+    }
+
+    public static EnvironmentType getEnvironment(JAXBElement element) {
+        return getEnvironment (element, true);
+    }
+
+    public static EnvironmentType getEnvironment(JAXBElement element, boolean serverEnvironment) {
+        Object plan = element;
+        if (serverEnvironment == true) {
+            if (WebAppType.class.isInstance (plan)) {
+                return ((WebAppType)plan).getEnvironment();
+            } else if (ApplicationType.class.isInstance (plan)) {
+                return ((ApplicationType)plan).getEnvironment();
+            } else if (OpenejbJarType.class.isInstance (plan)) {
+                return ((OpenejbJarType)plan).getEnvironment();
+            } else if (ConnectorType.class.isInstance (plan)) {
+                return ((ConnectorType)plan).getEnvironment();
+            } else if (ApplicationClientType.class.isInstance (plan)) {
+                return ((ApplicationClientType)plan).getServerEnvironment();
+            }
+        } else {
+            if (ApplicationClientType.class.isInstance (plan)) {
+                return ((ApplicationClientType)plan).getClientEnvironment();
+            }
+        }
+        return null;
+    }
+
+    public static void setEnvironment (JAXBElement element, EnvironmentType environment) {
+        setEnvironment (element, environment, true);
+    }
+
+    public static void setEnvironment (JAXBElement element, EnvironmentType environment, boolean serverEnvironment) {
+        Object plan = element;
+        if (serverEnvironment == true) {
+            if (WebAppType.class.isInstance (plan)) {
+                ((WebAppType)plan).setEnvironment (environment);
+            } else if (ApplicationType.class.isInstance (plan)) {
+                ((ApplicationType)plan).setEnvironment (environment);
+            } else if (OpenejbJarType.class.isInstance (plan)) {
+                ((OpenejbJarType)plan).setEnvironment (environment);
+            } else if (ConnectorType.class.isInstance (plan)) {
+                ((ConnectorType)plan).setEnvironment (environment);
+            } else if (ApplicationClientType.class.isInstance (plan)) {
+                ((ApplicationClientType)plan).setServerEnvironment (environment);
+            }
+        } else {
+            if (ApplicationClientType.class.isInstance (plan)) {
+                ((ApplicationClientType)plan).setClientEnvironment (environment);
+            }
+        }
+    }
+
+    public static List getGbeans (JAXBElement element) {
+        Object plan = element;
+        if (WebAppType.class.isInstance (plan)) {
+            return ((WebAppType)plan).getGbean();
+        } else if (ApplicationType.class.isInstance (plan)) {
+            return ((ApplicationType)plan).getGbean();
+        } else if (OpenejbJarType.class.isInstance (plan)) {
+            return ((OpenejbJarType)plan).getGbean();
+        } else if (ConnectorType.class.isInstance (plan)) {
+            return ((ConnectorType)plan).getGbean();
+        } else if (ApplicationClientType.class.isInstance (plan)) {
+            return ((ApplicationClientType)plan).getGbean();
+        }
+        return null;
+    }
+
+    public static List getGbeanRefs (JAXBElement element) {
+        Object plan = element;
+        if (ApplicationClientType.class.isInstance (plan)) {
+            return ((ApplicationClientType)plan).getGbeanRef();
+        } else if (WebAppType.class.isInstance (plan)) {
+            return ((WebAppType)plan).getGbeanRef();
+        }
+        return null;
+    }
+
+    public static List getServiceRefs (JAXBElement element) {
+        Object plan = element;
+        if (WebAppType.class.isInstance (plan)) {
+            return ((WebAppType)plan).getServiceRef();
+        }
+        return null;
+    }
+
+    public static List getEjbRelationships (JAXBElement element) {
+        Object plan = element;
+        if (OpenejbJarType.class.isInstance (plan)) {
+            return ((OpenejbJarType)plan).getRelationships() == null ? null : ((OpenejbJarType)plan).getRelationships().getEjbRelation();
+        }
+        return null;
+    }
+    
+    public static void setEjbRelationships (JAXBElement element, RelationshipsType relationships ) {
+        Object plan = element;
+        if (OpenejbJarType.class.isInstance (plan)) {
+            ((OpenejbJarType)plan).setRelationships(relationships);
+        }
+    }
+    
+    public static List getMessageDestinations (JAXBElement element) {
+        Object plan = element;
+        if (WebAppType.class.isInstance (plan)) {
+            return ((WebAppType)plan).getMessageDestination();
+        } else if (OpenejbJarType.class.isInstance (plan)) {
+            return ((OpenejbJarType)plan).getMessageDestination();
+        } else if (ApplicationClientType.class.isInstance (plan)) {
+            return ((ApplicationClientType)plan).getMessageDestination();
+        }
+        return null;
+    }
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBModelUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBModelUtils.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBModelUtils.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBObjectFactoryImpl.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBObjectFactoryImpl.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBObjectFactoryImpl.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBObjectFactoryImpl.java Fri May 21 05:47:34 2010
@@ -0,0 +1,164 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.j2ee.jaxbmodel.operations;
+
+import org.apache.geronimo.j2ee.application.ExtModuleType;
+import org.apache.geronimo.j2ee.application.ModuleType;
+import org.apache.geronimo.j2ee.application.PathType;
+import org.apache.geronimo.j2ee.connector.AdminobjectInstanceType;
+import org.apache.geronimo.j2ee.connector.AdminobjectType;
+import org.apache.geronimo.j2ee.connector.ConfigPropertySettingType;
+import org.apache.geronimo.j2ee.deployment.ArtifactType;
+import org.apache.geronimo.j2ee.deployment.AttributeType;
+import org.apache.geronimo.j2ee.deployment.ClassFilterType;
+import org.apache.geronimo.j2ee.deployment.DependenciesType;
+import org.apache.geronimo.j2ee.deployment.DependencyType;
+import org.apache.geronimo.j2ee.deployment.EnvironmentType;
+import org.apache.geronimo.j2ee.deployment.GbeanType;
+import org.apache.geronimo.j2ee.deployment.ReferenceType;
+import org.apache.geronimo.j2ee.deployment.javabean.PropertyType;
+import org.apache.geronimo.j2ee.naming.EjbLocalRefType;
+import org.apache.geronimo.j2ee.naming.EjbRefType;
+import org.apache.geronimo.j2ee.naming.GbeanRefType;
+import org.apache.geronimo.j2ee.naming.MessageDestinationType;
+import org.apache.geronimo.j2ee.naming.PatternType;
+import org.apache.geronimo.j2ee.naming.PortCompletionType;
+import org.apache.geronimo.j2ee.naming.PortType;
+import org.apache.geronimo.j2ee.naming.ResourceEnvRefType;
+import org.apache.geronimo.j2ee.naming.ResourceRefType;
+import org.apache.geronimo.j2ee.naming.ServiceCompletionType;
+import org.apache.geronimo.j2ee.naming.ServiceRefType;
+import org.apache.geronimo.j2ee.openejb_jar.EjbRelationType;
+import org.apache.geronimo.j2ee.openejb_jar.EjbRelationshipRoleType;
+import org.apache.geronimo.j2ee.openejb_jar.RelationshipsType;
+import org.apache.geronimo.j2ee.security.DescriptionType;
+import org.apache.geronimo.j2ee.security.DistinguishedNameType;
+import org.apache.geronimo.j2ee.security.LoginDomainPrincipalType;
+import org.apache.geronimo.j2ee.security.PrincipalType;
+import org.apache.geronimo.j2ee.security.RealmPrincipalType;
+import org.apache.geronimo.j2ee.security.RoleMappingsType;
+import org.apache.geronimo.j2ee.security.RoleType;
+import org.apache.geronimo.j2ee.security.SecurityType;
+import org.apache.geronimo.jaxbmodel.common.operations.JAXBObjectFactory;
+
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class JAXBObjectFactoryImpl implements JAXBObjectFactory {
+
+    private static JAXBObjectFactoryImpl instance = new JAXBObjectFactoryImpl();
+    
+    private JAXBObjectFactoryImpl() {
+        
+    }
+    
+    public static JAXBObjectFactoryImpl getInstance() {
+        return instance;
+    }
+    
+    public Object create(Class type) {
+        if ( type.equals( ResourceRefType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createResourceRefType();
+        } else if ( type.equals( ResourceEnvRefType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createResourceEnvRefType();
+        } else if ( type.equals( EjbRefType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createEjbRefType();
+        } else if ( type.equals( GbeanRefType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createGbeanRefType();
+        } else if ( type.equals( MessageDestinationType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createMessageDestinationType();
+        } else if ( type.equals( PatternType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createPatternType();
+        } else if ( type.equals( PortType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createPortType();
+        } else if ( type.equals( PortCompletionType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createPortCompletionType();
+        } else if ( type.equals( PropertyType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.javabean.ObjectFactory()).createPropertyType();
+        } else if ( type.equals( ServiceCompletionType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createServiceCompletionType();
+        } else if ( type.equals( ServiceRefType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createServiceRefType();
+        } else if ( type.equals( EjbLocalRefType.class ) ) {
+            return (new org.apache.geronimo.j2ee.naming.ObjectFactory()).createEjbLocalRefType();
+        } else if ( type.equals( SecurityType.class ) ) {
+            return (new org.apache.geronimo.j2ee.security.ObjectFactory()).createSecurityType();
+        } else if ( type.equals( RoleMappingsType.class ) ) {
+            return (new org.apache.geronimo.j2ee.security.ObjectFactory()).createRoleMappingsType();
+        } else if ( type.equals( DescriptionType.class ) ) {
+            return (new org.apache.geronimo.j2ee.security.ObjectFactory()).createDescriptionType();
+        } else if ( type.equals( RoleType.class ) ) {
+            return (new org.apache.geronimo.j2ee.security.ObjectFactory()).createRoleType();
+        } else if ( type.equals( DistinguishedNameType.class ) ) {
+            return (new org.apache.geronimo.j2ee.security.ObjectFactory()).createDistinguishedNameType();
+        } else if ( type.equals( PrincipalType.class ) ) {
+            return (new org.apache.geronimo.j2ee.security.ObjectFactory()).createPrincipalType();
+        } else if ( type.equals( LoginDomainPrincipalType.class ) ) {
+            return (new org.apache.geronimo.j2ee.security.ObjectFactory()).createLoginDomainPrincipalType();
+        } else if ( type.equals( RealmPrincipalType.class ) ) {
+            return (new org.apache.geronimo.j2ee.security.ObjectFactory()).createRealmPrincipalType();
+        } else if ( type.equals( GbeanType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createGbeanType();
+        } else if ( type.equals( ArtifactType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createArtifactType();
+        } else if ( type.equals( ClassFilterType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createClassFilterType();
+        } else if ( type.equals( DependenciesType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createDependenciesType();
+        } else if ( type.equals( DependencyType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createDependencyType();
+        } else if ( type.equals( EnvironmentType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createEnvironmentType();
+        } else if ( type.equals( org.apache.geronimo.j2ee.deployment.PatternType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createPatternType();
+        } else if ( type.equals( AttributeType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createAttributeType();
+        } else if ( type.equals( ReferenceType.class ) ) {
+            return (new org.apache.geronimo.j2ee.deployment.ObjectFactory()).createReferenceType();
+        } else if ( type.equals( ExtModuleType.class ) ) {
+            return (new org.apache.geronimo.j2ee.application.ObjectFactory()).createExtModuleType();
+        } else if ( type.equals( ModuleType.class ) ) {
+            return (new org.apache.geronimo.j2ee.application.ObjectFactory()).createModuleType();
+        } else if ( type.equals( PathType.class ) ) {
+            return (new org.apache.geronimo.j2ee.application.ObjectFactory()).createPathType();
+        } else if ( type.equals( EjbRelationType.class ) ) {
+            return (new org.apache.geronimo.j2ee.openejb_jar.ObjectFactory()).createEjbRelationType();
+        } else if ( type.equals( EjbRelationshipRoleType.class ) ) {
+            return (new org.apache.geronimo.j2ee.openejb_jar.ObjectFactory()).createEjbRelationshipRoleType();
+        } else if ( type.equals( EjbRelationshipRoleType.RelationshipRoleSource.class ) ) {
+            return (new org.apache.geronimo.j2ee.openejb_jar.ObjectFactory()).createEjbRelationshipRoleTypeRelationshipRoleSource();
+        } else if ( type.equals( EjbRelationshipRoleType.CmrField.class ) ) {
+            return (new org.apache.geronimo.j2ee.openejb_jar.ObjectFactory()).createEjbRelationshipRoleTypeCmrField();
+        } else if ( type.equals( EjbRelationshipRoleType.RoleMapping.CmrFieldMapping.class ) ) {
+            return (new org.apache.geronimo.j2ee.openejb_jar.ObjectFactory()).createEjbRelationshipRoleTypeRoleMappingCmrFieldMapping();
+        } else if ( type.equals( EjbRelationshipRoleType.RoleMapping.class ) ) {
+            return (new org.apache.geronimo.j2ee.openejb_jar.ObjectFactory()).createEjbRelationshipRoleTypeRoleMapping();
+        } else if ( type.equals( RelationshipsType.class ) ) {
+            return (new org.apache.geronimo.j2ee.openejb_jar.ObjectFactory()).createRelationshipsType();
+        } else if ( type.equals( AdminobjectType.class ) ) {
+            return (new org.apache.geronimo.j2ee.connector.ObjectFactory()).createAdminobjectType();
+        } else if ( type.equals( AdminobjectInstanceType.class ) ) {
+            return (new org.apache.geronimo.j2ee.connector.ObjectFactory()).createAdminobjectInstanceType();
+        } else if ( type.equals( ConfigPropertySettingType.class ) ) {
+            return (new org.apache.geronimo.j2ee.connector.ObjectFactory()).createConfigPropertySettingType();
+        }
+        
+        return null;
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBObjectFactoryImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBObjectFactoryImpl.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/JAXBObjectFactoryImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/MarshallerListener.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/MarshallerListener.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/MarshallerListener.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/MarshallerListener.java Fri May 21 05:47:34 2010
@@ -0,0 +1,80 @@
+/*
+ * 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.geronimo.j2ee.jaxbmodel.operations;
+
+import javax.xml.bind.Marshaller;
+
+import org.apache.geronimo.j2ee.naming.GbeanLocatorType;
+import org.apache.geronimo.j2ee.naming.PatternType;
+import org.apache.geronimo.j2ee.naming.ResourceLocatorType;
+import org.apache.geronimo.j2ee.openejb_jar.EjbRelationshipRoleType;
+import org.apache.geronimo.j2ee.openejb_jar.OpenejbJarType;
+import org.apache.geronimo.j2ee.openejb_jar.RelationshipsType;
+import org.apache.geronimo.j2ee.security.SecurityType;
+import org.apache.geronimo.j2ee.web.WebAppType;
+
+public class MarshallerListener extends Marshaller.Listener{
+
+    @Override
+    public void beforeMarshal(Object source) {
+        if (source instanceof SecurityType) {
+            SecurityType security = (SecurityType)source;
+            if (security.getRoleMappings() != null && security.getRoleMappings().getRole().size() == 0) {
+                security.setRoleMappings(null);
+            } 
+        } else if (source instanceof WebAppType) {
+            WebAppType webapp = (WebAppType)source;
+            GbeanLocatorType gbeanlocator = webapp.getWebContainer();
+            if (gbeanlocator != null && isEmpty(gbeanlocator.getGbeanLink()) && isEmpty(gbeanlocator.getPattern())) {
+                webapp.setWebContainer(null);
+            }
+        } else if (source instanceof OpenejbJarType) {
+        	OpenejbJarType openejb = (OpenejbJarType)source;
+            ResourceLocatorType locator = openejb.getCmpConnectionFactory();
+            if (locator != null && isEmpty(locator.getResourceLink()) && isEmpty(locator.getUrl()) && isEmpty(locator.getPattern())) {
+                openejb.setCmpConnectionFactory(null);
+            }
+            RelationshipsType relationships = openejb.getRelationships();
+            if (relationships != null && relationships.getEjbRelation().size() == 0) {
+                openejb.setRelationships(null);
+            }
+        }else if (source instanceof EjbRelationshipRoleType) {
+        	EjbRelationshipRoleType role = (EjbRelationshipRoleType)source;
+            if (role.getRoleMapping() != null && role.getRoleMapping().getCmrFieldMapping().size() == 0) {
+                role.setRoleMapping(null);
+            }
+        }
+    }
+        
+    private boolean isEmpty(PatternType pattern) {
+        if ( pattern == null ) {
+            return true;
+        }
+        if ( isEmpty(pattern.getGroupId()) && isEmpty(pattern.getArtifactId()) &&
+                isEmpty(pattern.getModule()) && isEmpty(pattern.getName()) &&
+                isEmpty(pattern.getVersion()) ) {
+            return true;
+        }
+        return false;
+    }
+    
+    private boolean isEmpty(String value) {
+        
+        return (value == null || value.trim().equals(""));
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/MarshallerListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/MarshallerListener.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/MarshallerListener.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/NamespacePrefix.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/NamespacePrefix.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/NamespacePrefix.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/NamespacePrefix.java Fri May 21 05:47:34 2010
@@ -0,0 +1,106 @@
+/**
+ * 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.geronimo.j2ee.jaxbmodel.operations;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+import com.sun.xml.bind.marshaller.NamespacePrefixMapper;
+
+/**
+ * @version $Rev$ $Date$ 
+ */
+public class NamespacePrefix extends NamespacePrefixMapper{
+
+    private static Map<String, String> prefixMap = new HashMap<String, String>();
+
+    static {
+        prefixMap.put("http://geronimo.apache.org/xml/ns/deployment-1.1", "dep");
+        prefixMap.put("http://geronimo.apache.org/xml/ns/j2ee/application-1.1", "app");
+        prefixMap.put("http://geronimo.apache.org/xml/ns/j2ee/application-client-1.1", "client");
+        prefixMap.put("http://geronimo.apache.org/xml/ns/j2ee/connector-1.1", "conn");
+        prefixMap.put("http://www.openejb.org/xml/ns/openejb-jar-2.1", "ejb");
+        prefixMap.put("http://www.openejb.org/xml/ns/pkgen-2.0", "pkgen");
+        prefixMap.put("http://geronimo.apache.org/xml/ns/naming-1.1", "name");
+        prefixMap.put("http://geronimo.apache.org/xml/ns/security-1.1", "sec");
+        prefixMap.put("http://geronimo.apache.org/xml/ns/j2ee/web-1.1", "web");
+        prefixMap.put("http://www.openejb.org/xml/ns/corba-tss-config-2.0", "cbt");
+        prefixMap.put("http://www.openejb.org/xml/ns/corba-css-config-2.0", "cbc");
+    }
+	
+	public static void processPrefix( Node parent ) {
+		NodeList nl = parent.getChildNodes();
+		
+		if ( parent instanceof Element ) {
+			updatePrefix( (Element)parent );
+		}
+		
+		for ( int i = 0; i <= nl.getLength(); i ++ ) {
+			Node node = nl.item(i);
+			if ( node instanceof Element ) {
+				processPrefix( node );
+			}
+		}
+
+	}
+	
+	private static void updatePrefix( Element element ) {
+		NamedNodeMap mnm = element.getAttributes();
+		
+		ArrayList<Attr> attributes = new ArrayList<Attr>();
+		for ( int j = 0; j <= mnm.getLength(); j ++ ) { 
+			Attr attr = (Attr)mnm.item(j);
+			if ( attr != null && attr.getOwnerElement() != null && getPrefix( attr.getNodeValue() ) != null ) {
+				attributes.add((Attr)attr.cloneNode(false));
+			}
+		}
+		for ( int j = 0; j < attributes.size(); j ++ ) {
+			Attr tempAttr = attributes.get(j);
+			Attr attr = element.getAttributeNode(tempAttr.getName());
+			Element owner = (Element)attr.getOwnerElement();
+			owner.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:" + getPrefix( attr.getNodeValue() ), attr.getNodeValue());
+			owner.removeAttributeNode(attr);
+		}
+		String prefix = getPrefix( element.getNamespaceURI() );
+		if ( prefix != null ) {
+		    element.setPrefix( prefix );
+		}
+	}
+
+	private static String getPrefix(String namespaceURI) {
+        if (prefixMap.containsKey(namespaceURI))
+            return prefixMap.get(namespaceURI);
+		return null;
+	}
+
+    @Override
+    public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) {
+         if (prefixMap.containsKey(namespaceUri))
+            return prefixMap.get(namespaceUri);
+
+        return suggestion;
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/NamespacePrefix.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/NamespacePrefix.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/jaxbmodel/operations/NamespacePrefix.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/AbstractLoginModuleType.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/AbstractLoginModuleType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/AbstractLoginModuleType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/AbstractLoginModuleType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,92 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+
+package org.apache.geronimo.j2ee.loginconfig;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for abstract-login-moduleType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="abstract-login-moduleType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;attribute name="control-flag" use="required" type="{http://geronimo.apache.org/xml/ns/loginconfig-1.1}control-flagType" />
+ *       &lt;attribute name="wrap-principals" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "abstract-login-moduleType")
+public abstract class AbstractLoginModuleType {
+
+    @XmlAttribute(name = "control-flag", required = true)
+    protected ControlFlagType controlFlag;
+    @XmlAttribute(name = "wrap-principals")
+    protected Boolean wrapPrincipals;
+
+    /**
+     * Gets the value of the controlFlag property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ControlFlagType }
+     *     
+     */
+    public ControlFlagType getControlFlag() {
+        return controlFlag;
+    }
+
+    /**
+     * Sets the value of the controlFlag property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ControlFlagType }
+     *     
+     */
+    public void setControlFlag(ControlFlagType value) {
+        this.controlFlag = value;
+    }
+
+    /**
+     * Gets the value of the wrapPrincipals property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Boolean }
+     *     
+     */
+    public Boolean isWrapPrincipals() {
+        return wrapPrincipals;
+    }
+
+    /**
+     * Sets the value of the wrapPrincipals property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Boolean }
+     *     
+     */
+    public void setWrapPrincipals(Boolean value) {
+        this.wrapPrincipals = value;
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/AbstractLoginModuleType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/AbstractLoginModuleType.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/AbstractLoginModuleType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ControlFlagType.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ControlFlagType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ControlFlagType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ControlFlagType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,47 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+
+package org.apache.geronimo.j2ee.loginconfig;
+
+import javax.xml.bind.annotation.XmlEnum;
+
+
+/**
+ * <p>Java class for control-flagType.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * &lt;simpleType name="control-flagType">
+ *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     &lt;enumeration value="REQUIRED"/>
+ *     &lt;enumeration value="REQUISITE"/>
+ *     &lt;enumeration value="SUFFICIENT"/>
+ *     &lt;enumeration value="OPTIONAL"/>
+ *   &lt;/restriction>
+ * &lt;/simpleType>
+ * </pre>
+ * 
+ */
+@XmlEnum
+public enum ControlFlagType {
+
+    REQUIRED,
+    REQUISITE,
+    SUFFICIENT,
+    OPTIONAL;
+
+    public String value() {
+        return name();
+    }
+
+    public static ControlFlagType fromValue(String v) {
+        return valueOf(v);
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ControlFlagType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ControlFlagType.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ControlFlagType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginConfigType.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginConfigType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginConfigType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginConfigType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,88 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+
+package org.apache.geronimo.j2ee.loginconfig;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * 
+ *                 Defines the list of login modules for a login configuration represented by a GenericSecurityRealm
+ *             
+ * 
+ * <p>Java class for login-configType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="login-configType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;choice maxOccurs="unbounded" minOccurs="0">
+ *           &lt;element name="login-module-ref" type="{http://geronimo.apache.org/xml/ns/loginconfig-1.1}login-module-refType" maxOccurs="unbounded" minOccurs="0"/>
+ *           &lt;element name="login-module" type="{http://geronimo.apache.org/xml/ns/loginconfig-1.1}login-moduleType" maxOccurs="unbounded" minOccurs="0"/>
+ *         &lt;/choice>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "login-configType", propOrder = {
+    "loginModuleRefOrLoginModule"
+})
+public class LoginConfigType {
+
+    @XmlElements({
+        @XmlElement(name = "login-module-ref", type = LoginModuleRefType.class),
+        @XmlElement(name = "login-module", type = LoginModuleType.class)
+    })
+    protected List<AbstractLoginModuleType> loginModuleRefOrLoginModule;
+
+    /**
+     * Gets the value of the loginModuleRefOrLoginModule property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the loginModuleRefOrLoginModule property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getLoginModuleRefOrLoginModule().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link LoginModuleRefType }
+     * {@link LoginModuleType }
+     * 
+     * 
+     */
+    public List<AbstractLoginModuleType> getLoginModuleRefOrLoginModule() {
+        if (loginModuleRefOrLoginModule == null) {
+            loginModuleRefOrLoginModule = new ArrayList<AbstractLoginModuleType>();
+        }
+        return this.loginModuleRefOrLoginModule;
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginConfigType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginConfigType.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginConfigType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleRefType.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleRefType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleRefType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleRefType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,73 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+
+package org.apache.geronimo.j2ee.loginconfig;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.apache.geronimo.j2ee.deployment.PatternType;
+
+
+/**
+ * <p>Java class for login-module-refType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="login-module-refType">
+ *   &lt;complexContent>
+ *     &lt;extension base="{http://geronimo.apache.org/xml/ns/loginconfig-1.1}abstract-login-moduleType">
+ *       &lt;sequence>
+ *         &lt;element name="pattern" type="{http://geronimo.apache.org/xml/ns/deployment-1.1}patternType"/>
+ *       &lt;/sequence>
+ *     &lt;/extension>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "login-module-refType", propOrder = {
+    "pattern"
+})
+public class LoginModuleRefType
+    extends AbstractLoginModuleType
+{
+
+    @XmlElement(required = true)
+    protected PatternType pattern;
+
+    /**
+     * Gets the value of the pattern property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link PatternType }
+     *     
+     */
+    public PatternType getPattern() {
+        return pattern;
+    }
+
+    /**
+     * Sets the value of the pattern property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link PatternType }
+     *     
+     */
+    public void setPattern(PatternType value) {
+        this.pattern = value;
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleRefType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleRefType.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleRefType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleType.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,153 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+
+package org.apache.geronimo.j2ee.loginconfig;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for login-moduleType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="login-moduleType">
+ *   &lt;complexContent>
+ *     &lt;extension base="{http://geronimo.apache.org/xml/ns/loginconfig-1.1}abstract-login-moduleType">
+ *       &lt;sequence>
+ *         &lt;element name="login-domain-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="login-module-class" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="option" type="{http://geronimo.apache.org/xml/ns/loginconfig-1.1}optionType" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="server-side" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     &lt;/extension>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "login-moduleType", propOrder = {
+    "loginDomainName",
+    "loginModuleClass",
+    "option"
+})
+public class LoginModuleType
+    extends AbstractLoginModuleType
+{
+
+    @XmlElement(name = "login-domain-name", required = true)
+    protected String loginDomainName;
+    @XmlElement(name = "login-module-class", required = true)
+    protected String loginModuleClass;
+    protected List<OptionType> option;
+    @XmlAttribute(name = "server-side", required = true)
+    protected boolean serverSide;
+
+    /**
+     * Gets the value of the loginDomainName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getLoginDomainName() {
+        return loginDomainName;
+    }
+
+    /**
+     * Sets the value of the loginDomainName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setLoginDomainName(String value) {
+        this.loginDomainName = value;
+    }
+
+    /**
+     * Gets the value of the loginModuleClass property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getLoginModuleClass() {
+        return loginModuleClass;
+    }
+
+    /**
+     * Sets the value of the loginModuleClass property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setLoginModuleClass(String value) {
+        this.loginModuleClass = value;
+    }
+
+    /**
+     * Gets the value of the option property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the option property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getOption().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link OptionType }
+     * 
+     * 
+     */
+    public List<OptionType> getOption() {
+        if (option == null) {
+            option = new ArrayList<OptionType>();
+        }
+        return this.option;
+    }
+
+    /**
+     * Gets the value of the serverSide property.
+     * 
+     */
+    public boolean isServerSide() {
+        return serverSide;
+    }
+
+    /**
+     * Sets the value of the serverSide property.
+     * 
+     */
+    public void setServerSide(boolean value) {
+        this.serverSide = value;
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleType.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/LoginModuleType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ObjectFactory.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ObjectFactory.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ObjectFactory.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ObjectFactory.java Fri May 21 05:47:34 2010
@@ -0,0 +1,84 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+
+package org.apache.geronimo.j2ee.loginconfig;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.apache.geronimo.xml.ns.loginconfig_1 package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+    private final static QName _LoginConfig_QNAME = new QName("http://geronimo.apache.org/xml/ns/loginconfig-1.1", "login-config");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.geronimo.xml.ns.loginconfig_1
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link LoginModuleType }
+     * 
+     */
+    public LoginModuleType createLoginModuleType() {
+        return new LoginModuleType();
+    }
+
+    /**
+     * Create an instance of {@link LoginModuleRefType }
+     * 
+     */
+    public LoginModuleRefType createLoginModuleRefType() {
+        return new LoginModuleRefType();
+    }
+
+    /**
+     * Create an instance of {@link OptionType }
+     * 
+     */
+    public OptionType createOptionType() {
+        return new OptionType();
+    }
+
+    /**
+     * Create an instance of {@link LoginConfigType }
+     * 
+     */
+    public LoginConfigType createLoginConfigType() {
+        return new LoginConfigType();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link LoginConfigType }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://geronimo.apache.org/xml/ns/loginconfig-1.1", name = "login-config")
+    public JAXBElement<LoginConfigType> createLoginConfig(LoginConfigType value) {
+        return new JAXBElement<LoginConfigType>(_LoginConfig_QNAME, LoginConfigType.class, null, value);
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ObjectFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ObjectFactory.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/ObjectFactory.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/OptionType.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/OptionType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/OptionType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/OptionType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,94 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+
+package org.apache.geronimo.j2ee.loginconfig;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlValue;
+
+
+/**
+ * <p>Java class for optionType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="optionType">
+ *   &lt;simpleContent>
+ *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
+ *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/extension>
+ *   &lt;/simpleContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "optionType", propOrder = {
+    "value"
+})
+public class OptionType {
+
+    @XmlValue
+    protected String value;
+    @XmlAttribute(required = true)
+    protected String name;
+
+    /**
+     * Gets the value of the value property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getValue() {
+        return value;
+    }
+
+    /**
+     * Sets the value of the value property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/OptionType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/OptionType.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/OptionType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/package-info.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/package-info.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/package-info.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/package-info.java Fri May 21 05:47:34 2010
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://geronimo.apache.org/xml/ns/loginconfig-1.1", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.geronimo.j2ee.loginconfig;

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/package-info.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/package-info.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/loginconfig/package-info.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/naming/EjbLocalRefType.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/naming/EjbLocalRefType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/naming/EjbLocalRefType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/naming/EjbLocalRefType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,126 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2009.07.17 at 01:03:24 AM CST 
+//
+
+
+package org.apache.geronimo.j2ee.naming;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for ejb-local-refType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="ejb-local-refType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="ref-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;choice>
+ *           &lt;element name="pattern" type="{http://geronimo.apache.org/xml/ns/naming-1.1}patternType"/>
+ *           &lt;element name="ejb-link" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;/choice>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ejb-local-refType", propOrder = {
+    "refName",
+    "pattern",
+    "ejbLink"
+})
+public class EjbLocalRefType {
+
+    @XmlElement(name = "ref-name", required = true)
+    protected String refName;
+    protected PatternType pattern;
+    @XmlElement(name = "ejb-link")
+    protected String ejbLink;
+
+    /**
+     * Gets the value of the refName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getRefName() {
+        return refName;
+    }
+
+    /**
+     * Sets the value of the refName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setRefName(String value) {
+        this.refName = value;
+    }
+
+    /**
+     * Gets the value of the pattern property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link PatternType }
+     *     
+     */
+    public PatternType getPattern() {
+        return pattern;
+    }
+
+    /**
+     * Sets the value of the pattern property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link PatternType }
+     *     
+     */
+    public void setPattern(PatternType value) {
+        this.pattern = value;
+    }
+
+    /**
+     * Gets the value of the ejbLink property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getEjbLink() {
+        return ejbLink;
+    }
+
+    /**
+     * Sets the value of the ejbLink property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setEjbLink(String value) {
+        this.ejbLink = value;
+    }
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/naming/EjbLocalRefType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/naming/EjbLocalRefType.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/naming/EjbLocalRefType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message