You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by de...@apache.org on 2010/05/21 07:47:38 UTC
svn commit: r946883 [12/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/jav...
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/RoleMappingsType.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/security/RoleMappingsType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/RoleMappingsType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/RoleMappingsType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,76 @@
+//
+// 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.security;
+
+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.XmlType;
+
+
+/**
+ * <p>Java class for role-mappingsType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="role-mappingsType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="role" type="{http://geronimo.apache.org/xml/ns/security-1.1}roleType" maxOccurs="unbounded"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "role-mappingsType", propOrder = {
+ "role"
+})
+public class RoleMappingsType {
+
+ @XmlElement(required = true)
+ protected List<RoleType> role;
+
+ /**
+ * Gets the value of the role 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 role property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRole().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link RoleType }
+ *
+ *
+ */
+ public List<RoleType> getRole() {
+ if (role == null) {
+ role = new ArrayList<RoleType>();
+ }
+ return this.role;
+ }
+
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/RoleMappingsType.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/security/RoleMappingsType.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/security/RoleMappingsType.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/security/RoleType.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/security/RoleType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/RoleType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/RoleType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,234 @@
+//
+// 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.security;
+
+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 roleType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="roleType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://geronimo.apache.org/xml/ns/security-1.1}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="realm-principal" type="{http://geronimo.apache.org/xml/ns/security-1.1}realmPrincipalType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="login-domain-principal" type="{http://geronimo.apache.org/xml/ns/security-1.1}loginDomainPrincipalType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="principal" type="{http://geronimo.apache.org/xml/ns/security-1.1}principalType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="distinguished-name" type="{http://geronimo.apache.org/xml/ns/security-1.1}distinguishedNameType" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="role-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "roleType", propOrder = {
+ "description",
+ "realmPrincipal",
+ "loginDomainPrincipal",
+ "principal",
+ "distinguishedName"
+})
+public class RoleType {
+
+ protected List<DescriptionType> description;
+ @XmlElement(name = "realm-principal")
+ protected List<RealmPrincipalType> realmPrincipal;
+ @XmlElement(name = "login-domain-principal")
+ protected List<LoginDomainPrincipalType> loginDomainPrincipal;
+ protected List<PrincipalType> principal;
+ @XmlElement(name = "distinguished-name")
+ protected List<DistinguishedNameType> distinguishedName;
+ @XmlAttribute(name = "role-name", required = true)
+ protected String roleName;
+
+ /**
+ * Gets the value of the description 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 description property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescription().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DescriptionType }
+ *
+ *
+ */
+ public List<DescriptionType> getDescription() {
+ if (description == null) {
+ description = new ArrayList<DescriptionType>();
+ }
+ return this.description;
+ }
+
+ /**
+ * Gets the value of the realmPrincipal 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 realmPrincipal property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getRealmPrincipal().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link RealmPrincipalType }
+ *
+ *
+ */
+ public List<RealmPrincipalType> getRealmPrincipal() {
+ if (realmPrincipal == null) {
+ realmPrincipal = new ArrayList<RealmPrincipalType>();
+ }
+ return this.realmPrincipal;
+ }
+
+ /**
+ * Gets the value of the loginDomainPrincipal 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 loginDomainPrincipal property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getLoginDomainPrincipal().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link LoginDomainPrincipalType }
+ *
+ *
+ */
+ public List<LoginDomainPrincipalType> getLoginDomainPrincipal() {
+ if (loginDomainPrincipal == null) {
+ loginDomainPrincipal = new ArrayList<LoginDomainPrincipalType>();
+ }
+ return this.loginDomainPrincipal;
+ }
+
+ /**
+ * Gets the value of the principal 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 principal property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getPrincipal().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link PrincipalType }
+ *
+ *
+ */
+ public List<PrincipalType> getPrincipal() {
+ if (principal == null) {
+ principal = new ArrayList<PrincipalType>();
+ }
+ return this.principal;
+ }
+
+ /**
+ * Gets the value of the distinguishedName 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 distinguishedName property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDistinguishedName().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DistinguishedNameType }
+ *
+ *
+ */
+ public List<DistinguishedNameType> getDistinguishedName() {
+ if (distinguishedName == null) {
+ distinguishedName = new ArrayList<DistinguishedNameType>();
+ }
+ return this.distinguishedName;
+ }
+
+ /**
+ * Gets the value of the roleName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRoleName() {
+ return roleName;
+ }
+
+ /**
+ * Sets the value of the roleName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRoleName(String value) {
+ this.roleName = value;
+ }
+
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/RoleType.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/security/RoleType.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/security/RoleType.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/security/SecurityType.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/security/SecurityType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/SecurityType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/SecurityType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,228 @@
+//
+// 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.security;
+
+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;
+
+
+/**
+ *
+ * Security entries
+ *
+ * If this element is present, all web and EJB modules MUST make the
+ * appropriate access checks as outlined in the JACC spec.
+ *
+ *
+ * <p>Java class for securityType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="securityType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="description" type="{http://geronimo.apache.org/xml/ns/security-1.1}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
+ * <element name="default-principal" type="{http://geronimo.apache.org/xml/ns/security-1.1}default-principalType"/>
+ * <element name="role-mappings" type="{http://geronimo.apache.org/xml/ns/security-1.1}role-mappingsType" minOccurs="0"/>
+ * </sequence>
+ * <attribute name="default-role" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="doas-current-caller" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ * <attribute name="use-context-handler" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "securityType", propOrder = {
+ "description",
+ "defaultPrincipal",
+ "roleMappings"
+})
+public class SecurityType {
+
+ protected List<DescriptionType> description;
+ @XmlElement(name = "default-principal", required = true)
+ protected DefaultPrincipalType defaultPrincipal;
+ @XmlElement(name = "role-mappings")
+ protected RoleMappingsType roleMappings;
+ @XmlAttribute(name = "default-role")
+ protected String defaultRole;
+ @XmlAttribute(name = "doas-current-caller")
+ protected Boolean doasCurrentCaller;
+ @XmlAttribute(name = "use-context-handler")
+ protected Boolean useContextHandler;
+
+ /**
+ * Gets the value of the description 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 description property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getDescription().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link DescriptionType }
+ *
+ *
+ */
+ public List<DescriptionType> getDescription() {
+ if (description == null) {
+ description = new ArrayList<DescriptionType>();
+ }
+ return this.description;
+ }
+
+ /**
+ * Gets the value of the defaultPrincipal property.
+ *
+ * @return
+ * possible object is
+ * {@link DefaultPrincipalType }
+ *
+ */
+ public DefaultPrincipalType getDefaultPrincipal() {
+ return defaultPrincipal;
+ }
+
+ /**
+ * Sets the value of the defaultPrincipal property.
+ *
+ * @param value
+ * allowed object is
+ * {@link DefaultPrincipalType }
+ *
+ */
+ public void setDefaultPrincipal(DefaultPrincipalType value) {
+ this.defaultPrincipal = value;
+ }
+
+ /**
+ * Gets the value of the roleMappings property.
+ *
+ * @return
+ * possible object is
+ * {@link RoleMappingsType }
+ *
+ */
+ public RoleMappingsType getRoleMappings() {
+ return roleMappings;
+ }
+
+ /**
+ * Sets the value of the roleMappings property.
+ *
+ * @param value
+ * allowed object is
+ * {@link RoleMappingsType }
+ *
+ */
+ public void setRoleMappings(RoleMappingsType value) {
+ this.roleMappings = value;
+ }
+
+ /**
+ * Gets the value of the defaultRole property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDefaultRole() {
+ return defaultRole;
+ }
+
+ /**
+ * Sets the value of the defaultRole property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDefaultRole(String value) {
+ this.defaultRole = value;
+ }
+
+ /**
+ * Gets the value of the doasCurrentCaller property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public boolean isDoasCurrentCaller() {
+ if (doasCurrentCaller == null) {
+ return false;
+ } else {
+ return doasCurrentCaller;
+ }
+ }
+
+ /**
+ * Sets the value of the doasCurrentCaller property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setDoasCurrentCaller(Boolean value) {
+ this.doasCurrentCaller = value;
+ }
+
+ /**
+ * Gets the value of the useContextHandler property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public boolean isUseContextHandler() {
+ if (useContextHandler == null) {
+ return false;
+ } else {
+ return useContextHandler;
+ }
+ }
+
+ /**
+ * Sets the value of the useContextHandler property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setUseContextHandler(Boolean value) {
+ this.useContextHandler = value;
+ }
+
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/SecurityType.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/security/SecurityType.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/security/SecurityType.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/security/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/security/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/security/package-info.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/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/security-1.1", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.geronimo.j2ee.security;
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/security/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/security/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/security/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/web/ContainerConfigType.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/web/ContainerConfigType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/ContainerConfigType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/ContainerConfigType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,78 @@
+//
+// 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.web;
+
+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.XmlAnyElement;
+import javax.xml.bind.annotation.XmlType;
+import org.w3c.dom.Element;
+
+
+/**
+ * <p>Java class for container-configType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="container-configType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <any/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "container-configType", propOrder = {
+ "any"
+})
+public class ContainerConfigType {
+
+ @XmlAnyElement(lax = true)
+ protected List<Object> any;
+
+ /**
+ * Gets the value of the any 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 any property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getAny().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link Object }
+ * {@link Element }
+ *
+ *
+ */
+ public List<Object> getAny() {
+ if (any == null) {
+ any = new ArrayList<Object>();
+ }
+ return this.any;
+ }
+
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/ContainerConfigType.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/web/ContainerConfigType.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/web/ContainerConfigType.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/web/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/web/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/web/ObjectFactory.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/ObjectFactory.java Fri May 21 05:47:34 2010
@@ -0,0 +1,68 @@
+//
+// 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.web;
+
+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.j2ee.web_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 _WebApp_QNAME = new QName("http://geronimo.apache.org/xml/ns/j2ee/web-1.1", "web-app");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.geronimo.xml.ns.j2ee.web_1
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link WebAppType }
+ *
+ */
+ public WebAppType createWebAppType() {
+ return new WebAppType();
+ }
+
+ /**
+ * Create an instance of {@link ContainerConfigType }
+ *
+ */
+ public ContainerConfigType createContainerConfigType() {
+ return new ContainerConfigType();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link WebAppType }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://geronimo.apache.org/xml/ns/j2ee/web-1.1", name = "web-app")
+ public JAXBElement<WebAppType> createWebApp(WebAppType value) {
+ return new JAXBElement<WebAppType>(_WebApp_QNAME, WebAppType.class, null, value);
+ }
+
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/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/web/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/web/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/web/WebAppType.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/web/WebAppType.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/WebAppType.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/WebAppType.java Fri May 21 05:47:34 2010
@@ -0,0 +1,484 @@
+//
+// 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.web;
+
+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.XmlType;
+
+import org.apache.geronimo.j2ee.deployment.EnvironmentType;
+import org.apache.geronimo.j2ee.deployment.GbeanType;
+import org.apache.geronimo.j2ee.naming.EjbLocalRefType;
+import org.apache.geronimo.j2ee.naming.EjbRefType;
+import org.apache.geronimo.j2ee.naming.GbeanLocatorType;
+import org.apache.geronimo.j2ee.naming.GbeanRefType;
+import org.apache.geronimo.j2ee.naming.MessageDestinationType;
+import org.apache.geronimo.j2ee.naming.ResourceEnvRefType;
+import org.apache.geronimo.j2ee.naming.ResourceRefType;
+import org.apache.geronimo.j2ee.naming.ServiceRefType;
+import org.apache.geronimo.j2ee.security.SecurityType;
+
+
+/**
+ * <p>Java class for web-appType complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="web-appType">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{http://geronimo.apache.org/xml/ns/deployment-1.1}environment" minOccurs="0"/>
+ * <element name="context-root" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element ref="{http://geronimo.apache.org/xml/ns/naming-1.1}web-container" minOccurs="0"/>
+ * <element name="container-config" type="{http://geronimo.apache.org/xml/ns/j2ee/web-1.1}container-configType" minOccurs="0"/>
+ * <group ref="{http://geronimo.apache.org/xml/ns/naming-1.1}jndiEnvironmentRefsGroup"/>
+ * <element ref="{http://geronimo.apache.org/xml/ns/naming-1.1}message-destination" maxOccurs="unbounded" minOccurs="0"/>
+ * <sequence minOccurs="0">
+ * <element name="security-realm-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ * <element ref="{http://geronimo.apache.org/xml/ns/security-1.1}security" minOccurs="0"/>
+ * </sequence>
+ * <element ref="{http://geronimo.apache.org/xml/ns/deployment-1.1}gbean" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "web-appType", propOrder = {
+ "environment",
+ "contextRoot",
+ "webContainer",
+ "containerConfig",
+ "gbeanRef",
+ "ejbRef",
+ "ejbLocalRef",
+ "serviceRef",
+ "resourceRef",
+ "resourceEnvRef",
+ "messageDestination",
+ "securityRealmName",
+ "security",
+ "gbean"
+})
+public class WebAppType {
+
+ @XmlElement(namespace = "http://geronimo.apache.org/xml/ns/deployment-1.1")
+ protected EnvironmentType environment;
+ @XmlElement(name = "context-root")
+ protected String contextRoot;
+ @XmlElement(name = "web-container", namespace = "http://geronimo.apache.org/xml/ns/naming-1.1")
+ protected GbeanLocatorType webContainer;
+ @XmlElement(name = "container-config")
+ protected ContainerConfigType containerConfig;
+ @XmlElement(name = "gbean-ref", namespace = "http://geronimo.apache.org/xml/ns/naming-1.1")
+ protected List<GbeanRefType> gbeanRef;
+ @XmlElement(name = "ejb-ref", namespace = "http://geronimo.apache.org/xml/ns/naming-1.1")
+ protected List<EjbRefType> ejbRef;
+ @XmlElement(name = "ejb-local-ref", namespace = "http://geronimo.apache.org/xml/ns/naming-1.1")
+ protected List<EjbLocalRefType> ejbLocalRef;
+ @XmlElement(name = "service-ref", namespace = "http://geronimo.apache.org/xml/ns/naming-1.1")
+ protected List<ServiceRefType> serviceRef;
+ @XmlElement(name = "resource-ref", namespace = "http://geronimo.apache.org/xml/ns/naming-1.1")
+ protected List<ResourceRefType> resourceRef;
+ @XmlElement(name = "resource-env-ref", namespace = "http://geronimo.apache.org/xml/ns/naming-1.1")
+ protected List<ResourceEnvRefType> resourceEnvRef;
+ @XmlElement(name = "message-destination", namespace = "http://geronimo.apache.org/xml/ns/naming-1.1")
+ protected List<MessageDestinationType> messageDestination;
+ @XmlElement(name = "security-realm-name")
+ protected String securityRealmName;
+ @XmlElement(namespace = "http://geronimo.apache.org/xml/ns/security-1.1")
+ protected SecurityType security;
+ @XmlElement(namespace = "http://geronimo.apache.org/xml/ns/deployment-1.1")
+ protected List<GbeanType> gbean;
+
+ /**
+ * Gets the value of the environment property.
+ *
+ * @return
+ * possible object is
+ * {@link EnvironmentType }
+ *
+ */
+ public EnvironmentType getEnvironment() {
+ return environment;
+ }
+
+ /**
+ * Sets the value of the environment property.
+ *
+ * @param value
+ * allowed object is
+ * {@link EnvironmentType }
+ *
+ */
+ public void setEnvironment(EnvironmentType value) {
+ this.environment = value;
+ }
+
+ /**
+ * Gets the value of the contextRoot property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getContextRoot() {
+ return contextRoot;
+ }
+
+ /**
+ * Sets the value of the contextRoot property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setContextRoot(String value) {
+ this.contextRoot = value;
+ }
+
+ /**
+ * Gets the value of the webContainer property.
+ *
+ * @return
+ * possible object is
+ * {@link GbeanLocatorType }
+ *
+ */
+ public GbeanLocatorType getWebContainer() {
+ return webContainer;
+ }
+
+ /**
+ * Sets the value of the webContainer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link GbeanLocatorType }
+ *
+ */
+ public void setWebContainer(GbeanLocatorType value) {
+ this.webContainer = value;
+ }
+
+ /**
+ * Gets the value of the containerConfig property.
+ *
+ * @return
+ * possible object is
+ * {@link ContainerConfigType }
+ *
+ */
+ public ContainerConfigType getContainerConfig() {
+ return containerConfig;
+ }
+
+ /**
+ * Sets the value of the containerConfig property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ContainerConfigType }
+ *
+ */
+ public void setContainerConfig(ContainerConfigType value) {
+ this.containerConfig = value;
+ }
+
+ /**
+ * Gets the value of the gbeanRef 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 gbeanRef property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getGbeanRef().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link GbeanRefType }
+ *
+ *
+ */
+ public List<GbeanRefType> getGbeanRef() {
+ if (gbeanRef == null) {
+ gbeanRef = new ArrayList<GbeanRefType>();
+ }
+ return this.gbeanRef;
+ }
+
+ /**
+ * Gets the value of the ejbRef 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 ejbRef property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getEjbRef().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EjbRefType }
+ *
+ *
+ */
+ public List<EjbRefType> getEjbRef() {
+ if (ejbRef == null) {
+ ejbRef = new ArrayList<EjbRefType>();
+ }
+ return this.ejbRef;
+ }
+
+ /**
+ * Gets the value of the ejbLocalRef 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 ejbLocalRef property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getEjbLocalRef().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link EjbLocalRefType }
+ *
+ *
+ */
+ public List<EjbLocalRefType> getEjbLocalRef() {
+ if (ejbLocalRef == null) {
+ ejbLocalRef = new ArrayList<EjbLocalRefType>();
+ }
+ return this.ejbLocalRef;
+ }
+
+ /**
+ * Gets the value of the serviceRef 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 serviceRef property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getServiceRef().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ServiceRefType }
+ *
+ *
+ */
+ public List<ServiceRefType> getServiceRef() {
+ if (serviceRef == null) {
+ serviceRef = new ArrayList<ServiceRefType>();
+ }
+ return this.serviceRef;
+ }
+
+ /**
+ * Gets the value of the resourceRef 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 resourceRef property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getResourceRef().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ResourceRefType }
+ *
+ *
+ */
+ public List<ResourceRefType> getResourceRef() {
+ if (resourceRef == null) {
+ resourceRef = new ArrayList<ResourceRefType>();
+ }
+ return this.resourceRef;
+ }
+
+ /**
+ * Gets the value of the resourceEnvRef 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 resourceEnvRef property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getResourceEnvRef().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link ResourceEnvRefType }
+ *
+ *
+ */
+ public List<ResourceEnvRefType> getResourceEnvRef() {
+ if (resourceEnvRef == null) {
+ resourceEnvRef = new ArrayList<ResourceEnvRefType>();
+ }
+ return this.resourceEnvRef;
+ }
+
+ /**
+ * Gets the value of the messageDestination 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 messageDestination property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getMessageDestination().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link MessageDestinationType }
+ *
+ *
+ */
+ public List<MessageDestinationType> getMessageDestination() {
+ if (messageDestination == null) {
+ messageDestination = new ArrayList<MessageDestinationType>();
+ }
+ return this.messageDestination;
+ }
+
+ /**
+ * Gets the value of the securityRealmName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSecurityRealmName() {
+ return securityRealmName;
+ }
+
+ /**
+ * Sets the value of the securityRealmName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSecurityRealmName(String value) {
+ this.securityRealmName = value;
+ }
+
+ /**
+ * Gets the value of the security property.
+ *
+ * @return
+ * possible object is
+ * {@link SecurityType }
+ *
+ */
+ public SecurityType getSecurity() {
+ return security;
+ }
+
+ /**
+ * Sets the value of the security property.
+ *
+ * @param value
+ * allowed object is
+ * {@link SecurityType }
+ *
+ */
+ public void setSecurity(SecurityType value) {
+ this.security = value;
+ }
+
+ /**
+ * Gets the value of the gbean 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 gbean property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getGbean().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link GbeanType }
+ *
+ *
+ */
+ public List<GbeanType> getGbean() {
+ if (gbean == null) {
+ gbean = new ArrayList<GbeanType>();
+ }
+ return this.gbean;
+ }
+
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/WebAppType.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/web/WebAppType.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/web/WebAppType.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/web/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/web/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/web/package-info.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/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/j2ee/web-1.1", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.apache.geronimo.j2ee.web;
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo/j2ee/web/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/web/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/web/package-info.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/plugin.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/plugin.xml?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/plugin.xml (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/plugin.xml Fri May 21 05:47:34 2010
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension point="org.apache.geronimo.jaxbmodel.common.JAXBUtilsProvider">
+ <provider class="org.apache.geronimo.st.v21.core.jaxb.JAXB21Utils" version="2.0,2.1,2.2,3.0"/>
+ </extension>
+
+</plugin>
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/plugin.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/plugin.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/plugin.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/Activator.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/Activator.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/Activator.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/Activator.java Fri May 21 05:47:34 2010
@@ -0,0 +1,56 @@
+package org.apache.geronimo.jee.jaxbmodel;
+
+import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.runtime.Status;
+import org.osgi.framework.BundleContext;
+
+public class Activator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.apache.geronimo.jee.v21.jaxbmodel";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ this.setDebugging(true);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+ public static void log(int severity, String message, Throwable throwable) {
+ if (plugin != null && plugin.getLog() != null) {
+ plugin.getLog().log(new Status(severity, PLUGIN_ID, 0, message, throwable));
+ }
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/Activator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/Activator.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/Activator.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/internal/Trace.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/internal/Trace.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/internal/Trace.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/internal/Trace.java Fri May 21 05:47:34 2010
@@ -0,0 +1,115 @@
+/*
+ * 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.jee.jaxbmodel.internal;
+
+import org.apache.geronimo.jee.jaxbmodel.Activator;
+import org.eclipse.core.runtime.IStatus;
+
+/**
+ * Helper class to route trace output.
+ *
+ * @version $Rev$ $Date$
+ */
+public class Trace {
+
+ /**
+ * Finest trace event.
+ */
+ public static byte INFO = 0;
+
+ /**
+ * Warning trace event.
+ */
+ public static byte WARNING = 1;
+
+ /**
+ * Severe trace event.
+ */
+ public static byte SEVERE = 2;
+
+ /**
+ * Trace constructor comment.
+ */
+ private Trace() {
+ super();
+ }
+
+ /**
+ * Trace the given text.
+ *
+ * @param level
+ * the trace level
+ * @param s
+ * a message
+ */
+ public static void trace(byte level, String s) {
+ trace(level, s, null, false);
+ }
+
+ public static void trace(byte level, String s, boolean newLine) {
+ trace(level, s, null, newLine);
+ }
+
+ public static void trace(byte level, String s, Throwable t) {
+ trace(level, s, null, false);
+ }
+
+ public static void trace(byte level, String s, Throwable t, boolean newLine) {
+ if (Activator.getDefault() == null || !Activator.getDefault().isDebugging())
+ return;
+
+ if (newLine) {
+ System.out.println();
+ }
+
+ System.out.println(Activator.PLUGIN_ID + ": " + s);
+ if (t != null)
+ t.printStackTrace();
+ }
+
+ /**
+ * Trace the given message
+ *
+ * @param tracePoint
+ * The trace point (e.g., "Exit", "Entry", "Constructor", etc....
+ *
+ * @param classDotMethod
+ * The class name + method name (e.g., "Class.method()")
+ *
+ * @param parms
+ * Method parameter(s) if the trace point is an "Entry" or Return
+ * value if the trace point is an "Exit"
+ */
+ public static void tracePoint(String tracePoint, String classDotMethod) {
+ trace(Trace.INFO, tracePoint + ": " + classDotMethod + "()");
+ }
+
+ public static void tracePoint(String tracePoint, String classDotMethod,
+ Object... parms) {
+ if (parms == null) {
+ trace(Trace.INFO, tracePoint + ": " + classDotMethod + "( null )");
+ } else {
+ trace(Trace.INFO, tracePoint + ": " + classDotMethod + "(");
+ for (int ii = 0; ii < parms.length; ii++) {
+ Object parm = parms[ii];
+ trace(Trace.INFO, " parm" + (ii + 1) + "=["
+ + (parm == null ? null : parm.toString()) + "]");
+ }
+ trace(Trace.INFO, ")");
+ }
+ }
+}
\ No newline at end of file
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/internal/Trace.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/internal/Trace.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/internal/Trace.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXB21Utils.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXB21Utils.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXB21Utils.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXB21Utils.java Fri May 21 05:47:34 2010
@@ -0,0 +1,300 @@
+/*
+ * 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.jee.jaxbmodel.operations;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+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.jaxbmodel.common.operations.IJAXBUtilsProvider;
+import org.apache.geronimo.jaxbmodel.common.operations.NamespaceFilter;
+import org.apache.geronimo.jee.jaxbmodel.Activator;
+import org.apache.geronimo.jee.jaxbmodel.internal.Trace;
+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 JAXB21Utils implements IJAXBUtilsProvider{
+
+ // JAXBContext instantiation is costly - must be done only once!
+ private static final JAXBContext jaxbContext = newJAXBContext();
+ private static final JAXBContext jaxbPluginContext = newJAXBPluginContext();
+ private static final MarshallerListener marshallerListener = new MarshallerListener();
+ //private static JAXB21Utils _instance = new JAXB21Utils();
+
+ private static JAXBContext newJAXBContext() {
+ try {
+ return JAXBContext.newInstance(
+ "org.apache.geronimo.jee.connector:" +
+ "org.apache.geronimo.jee.loginconfig:" +
+ "org.apache.geronimo.jee.openejb:" +
+ "org.apache.geronimo.jee.web:" +
+ "org.apache.geronimo.jee.application:" +
+ "org.apache.geronimo.jee.applicationclient:" +
+ "org.apache.geronimo.jee.deployment:" +
+ "org.apache.geronimo.jee.naming:" +
+ "org.apache.geronimo.jee.security:", Activator.class.getClassLoader() );
+ } catch (JAXBException e) {
+ Trace.tracePoint("JAXBException", "JAXBContext.newInstance");
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ /*private JAXB21Utils(){
+ }
+
+ public static JAXB21Utils getInstance(){
+ return _instance;
+ }*/
+
+ public JAXBContext getJAXBContext(){
+ return jaxbContext;
+ }
+
+ private static JAXBContext newJAXBPluginContext() {
+ try {
+ return JAXBContext.newInstance(
+ "org.apache.geronimo.system.plugin.model", Activator.class.getClassLoader() );
+ } catch (JAXBException e) {
+ Trace.tracePoint("JAXBException", "JAXBContext.newInstance");
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ 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", "JAXBUtils.marshalDeploymentPlan()", file.getFullPath());
+ throw jaxbException;
+ } catch (CoreException coreException) {
+ Trace.tracePoint("CoreException", "JAXBUtils.marshalDeploymentPlan()", file.getFullPath());
+ throw coreException;
+ } catch (ParserConfigurationException e) {
+ Trace.tracePoint("ParserConfigurationException", "JAXBUtils.marshalDeploymentPlan()", file.getFullPath());
+ throw e;
+ } catch (TransformerConfigurationException e) {
+ Trace.tracePoint("TransformerConfigurationException", "JAXBUtils.marshalDeploymentPlan()", file.getFullPath());
+ throw e;
+ } catch (UnsupportedEncodingException e) {
+ Trace.tracePoint("UnsupportedEncodingException", "JAXBUtils.marshalDeploymentPlan()", file.getFullPath());
+ throw e;
+ } catch (TransformerException e) {
+ Trace.tracePoint("TransformerException", "JAXBUtils.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();
+ NamespaceFilter xmlFilter = new NamespaceFilter(parser.getXMLReader());
+ SAXSource source = new SAXSource(xmlFilter, new InputSource(file.getContents()));
+ JAXBElement plan = (JAXBElement) unmarshaller.unmarshal(source);
+ return plan;
+ } catch (JAXBException e) {
+ Trace.tracePoint("JAXBException", "JAXBUtils.unmarshalFilterDeploymentPlan()", file.getFullPath());
+ throw e;
+ } catch (CoreException e) {
+ Trace.tracePoint("CoreException", "JAXBUtils.unmarshalFilterDeploymentPlan()", file.getFullPath());
+ throw e;
+ } catch (ParserConfigurationException e) {
+ Trace.tracePoint("ParserConfigurationException", "JAXBUtils.unmarshalFilterDeploymentPlan()", file.getFullPath());
+ throw e;
+ } catch (SAXException e) {
+ Trace.tracePoint("SAXException", "JAXBUtils.unmarshalFilterDeploymentPlan()", file.getFullPath());
+ throw e;
+ }
+ }
+
+ public void marshalPlugin(JAXBElement jaxbElement, OutputStream outputStream) throws Exception {
+ try {
+ Marshaller marshaller = jaxbPluginContext.createMarshaller();
+ marshaller.setListener(marshallerListener);
+
+ DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
+ 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"));
+
+ xformer.transform(new DOMSource(doc), out);
+ ByteArrayInputStream inBuffer = new ByteArrayInputStream(outBuffer.toByteArray());
+ outputStream.write(outBuffer.toByteArray());
+ } catch (JAXBException jaxbException) {
+ Trace.tracePoint("JAXBException", "JAXBUtils.marshalDeploymentPlan()");
+ throw jaxbException;
+ } catch (IOException coreException) {
+ Trace.tracePoint("IOException", "JAXBUtils.marshalDeploymentPlan()");
+ throw coreException;
+ } catch (ParserConfigurationException e) {
+ Trace.tracePoint("ParserConfigurationException", "JAXBUtils.marshalDeploymentPlan()");
+ throw e;
+ } catch (TransformerConfigurationException e) {
+ Trace.tracePoint("TransformerConfigurationException", "JAXBUtils.marshalDeploymentPlan()");
+ throw e;
+ } catch (TransformerException e) {
+ Trace.tracePoint("TransformerException", "JAXBUtils.marshalDeploymentPlan()");
+ throw e;
+ }
+ }
+
+ public JAXBElement unmarshalPlugin(InputStream inputStream) {
+ try {
+ Unmarshaller unmarshaller = jaxbPluginContext.createUnmarshaller();
+ SAXParserFactory factory = SAXParserFactory.newInstance();
+ factory.setNamespaceAware(true);
+ factory.setValidating(false);
+ SAXParser parser = factory.newSAXParser();
+ NamespaceFilter xmlFilter = new NamespaceFilter(parser.getXMLReader());
+ SAXSource source = new SAXSource(xmlFilter, new InputSource(inputStream));
+ JAXBElement plan = (JAXBElement) unmarshaller.unmarshal(source);
+ return plan;
+ } catch (JAXBException e) {
+ Trace.tracePoint("JAXBException", "JAXBUtils.unmarshalFilterDeploymentPlan()");
+ e.printStackTrace();
+ } catch (ParserConfigurationException e) {
+ Trace.tracePoint("ParserConfigurationException", "JAXBUtils.unmarshalFilterDeploymentPlan()");
+ e.printStackTrace();
+ } catch (SAXException e) {
+ Trace.tracePoint("SAXException", "JAXBUtils.unmarshalFilterDeploymentPlan()");
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ 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() );
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXB21Utils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXB21Utils.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXB21Utils.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXBModelUtils.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXBModelUtils.java?rev=946883&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXBModelUtils.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXBModelUtils.java Fri May 21 05:47:34 2010
@@ -0,0 +1,184 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.jee.jaxbmodel.operations;
+
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.apache.geronimo.jee.application.Application;
+import org.apache.geronimo.jee.applicationclient.ApplicationClient;
+import org.apache.geronimo.jee.connector.Connector;
+import org.apache.geronimo.jee.deployment.Environment;
+import org.apache.geronimo.jee.openejb.OpenejbJar;
+import org.apache.geronimo.jee.openejb.Relationships;
+import org.apache.geronimo.jee.security.Security;
+import org.apache.geronimo.jee.web.WebApp;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class JAXBModelUtils {
+
+
+ public static Security getSecurity (JAXBElement element) {
+ Object plan = element.getValue();
+ if (WebApp.class.isInstance (plan)) {
+ if (((WebApp)plan).getSecurity() == null) {
+ return null;
+ }
+ Security security = (Security)((WebApp)plan).getSecurity().getValue();
+ return security;
+ } else if (Application.class.isInstance (plan)) {
+ if (((Application)plan).getSecurity() == null) {
+ return null;
+ }
+ Security security = (Security)((Application)plan).getSecurity().getValue();
+ return security;
+ } else if (OpenejbJar.class.isInstance (plan)) {
+ if (((OpenejbJar)plan).getSecurity() == null) {
+ return null;
+ }
+ Security security = (Security)((OpenejbJar)plan).getSecurity().getValue();
+ return security;
+ }
+ return null;
+ }
+
+ public static void setSecurity (JAXBElement element, Security security) {
+ Object plan = element.getValue();
+ if (WebApp.class.isInstance (plan)) {
+ ((WebApp)plan).setSecurity((new org.apache.geronimo.jee.security.ObjectFactory()).createSecurity( security ) );
+ } else if (Application.class.isInstance(plan)) {
+ ((Application)plan).setSecurity((new org.apache.geronimo.jee.security.ObjectFactory()).createSecurity( security ) );
+ } else if (OpenejbJar.class.isInstance(plan)) {
+ ((OpenejbJar)plan).setSecurity((new org.apache.geronimo.jee.security.ObjectFactory()).createSecurity( security ) );
+ }
+ }
+
+ public static Environment getEnvironment(JAXBElement element) {
+ return getEnvironment (element, true);
+ }
+
+ public static Environment getEnvironment(JAXBElement element, boolean serverEnvironment) {
+ Object plan = element.getValue();
+ if (serverEnvironment == true) {
+ if (WebApp.class.isInstance (plan)) {
+ return ((WebApp)plan).getEnvironment();
+ } else if (Application.class.isInstance (plan)) {
+ return ((Application)plan).getEnvironment();
+ } else if (OpenejbJar.class.isInstance (plan)) {
+ return ((OpenejbJar)plan).getEnvironment();
+ } else if (Connector.class.isInstance (plan)) {
+ return ((Connector)plan).getEnvironment();
+ } else if (ApplicationClient.class.isInstance (plan)) {
+ return ((ApplicationClient)plan).getServerEnvironment();
+ }
+ } else {
+ if (ApplicationClient.class.isInstance (plan)) {
+ return ((ApplicationClient)plan).getClientEnvironment();
+ }
+ }
+ return null;
+ }
+
+ public static void setEnvironment (JAXBElement element, Environment environment) {
+ setEnvironment (element, environment, true);
+ }
+
+ public static void setEnvironment (JAXBElement element, Environment environment, boolean serverEnvironment) {
+ Object plan = element.getValue();
+ if (serverEnvironment == true) {
+ if (WebApp.class.isInstance (plan)) {
+ ((WebApp)plan).setEnvironment (environment);
+ } else if (Application.class.isInstance (plan)) {
+ ((Application)plan).setEnvironment (environment);
+ } else if (OpenejbJar.class.isInstance (plan)) {
+ ((OpenejbJar)plan).setEnvironment (environment);
+ } else if (Connector.class.isInstance (plan)) {
+ ((Connector)plan).setEnvironment (environment);
+ } else if (ApplicationClient.class.isInstance (plan)) {
+ ((ApplicationClient)plan).setServerEnvironment (environment);
+ }
+ } else {
+ if (ApplicationClient.class.isInstance (plan)) {
+ ((ApplicationClient)plan).setClientEnvironment (environment);
+ }
+ }
+ }
+
+ public static List getGbeans (JAXBElement element) {
+ Object plan = element.getValue();
+ if (WebApp.class.isInstance (plan)) {
+ return ((WebApp)plan).getServiceOrPersistence();
+ } else if (Application.class.isInstance (plan)) {
+ return ((Application)plan).getService();
+ } else if (OpenejbJar.class.isInstance (plan)) {
+ return ((OpenejbJar)plan).getService();
+ } else if (Connector.class.isInstance (plan)) {
+ return ((Connector)plan).getService();
+ } else if (ApplicationClient.class.isInstance (plan)) {
+ return ((ApplicationClient)plan).getService();
+ }
+ return null;
+ }
+
+ public static List getGbeanRefs (JAXBElement element) {
+ Object plan = element.getValue();
+ if (ApplicationClient.class.isInstance (plan)) {
+ return ((ApplicationClient)plan).getGbeanRef();
+ } else if (WebApp.class.isInstance (plan)) {
+ return ((WebApp)plan).getAbstractNamingEntry();
+ }
+ return null;
+ }
+
+ public static List getServiceRefs (JAXBElement element) {
+ Object plan = element.getValue();
+ if (WebApp.class.isInstance (plan)) {
+ return ((WebApp)plan).getServiceRef();
+ }
+ return null;
+ }
+
+ public static List getEjbRelationships (JAXBElement element) {
+ Object plan = element.getValue();
+ if (OpenejbJar.class.isInstance (plan)) {
+ return ((OpenejbJar)plan).getRelationships() == null ? null : ((OpenejbJar)plan).getRelationships().getEjbRelation();
+ }
+ return null;
+ }
+
+ public static void setEjbRelationships (JAXBElement element, Relationships relationships ) {
+ Object plan = element.getValue();
+ if (OpenejbJar.class.isInstance (plan)) {
+ ((OpenejbJar)plan).setRelationships(relationships);
+ }
+ }
+
+ public static List getMessageDestinations (JAXBElement element) {
+ Object plan = element.getValue();
+ if (WebApp.class.isInstance (plan)) {
+ return ((WebApp)plan).getMessageDestination();
+ } else if (OpenejbJar.class.isInstance (plan)) {
+ return ((OpenejbJar)plan).getMessageDestination();
+ } else if (ApplicationClient.class.isInstance (plan)) {
+ return ((ApplicationClient)plan).getMessageDestination();
+ }
+ return null;
+ }
+}
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXBModelUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXBModelUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/jaxbmodel/operations/JAXBModelUtils.java
------------------------------------------------------------------------------
svn:mime-type = text/plain