[jboss-svn-commits] JBL Code SVN: r5489 - in labs/jbosslabs/trunk/portal-extensions/forge-common/src: java/org/jboss/forge/common/projects/test web

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Aug 4 20:48:59 EDT 2006


Author: unibrew
Date: 2006-08-04 20:48:56 -0400 (Fri, 04 Aug 2006)
New Revision: 5489

Added:
   labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Counters.java
   labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Downloads.java
Modified:
   labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/project.xsd
Log:
[JBLAB-679] Another javabeanlike parsing xml classes for project.xml and also update of project.xsd XMLSchema file.

Added: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Counters.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Counters.java	2006-08-05 00:28:29 UTC (rev 5488)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Counters.java	2006-08-05 00:48:56 UTC (rev 5489)
@@ -0,0 +1,96 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-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: 2006.08.05 at 02:45:34 AM CEST 
+//
+
+
+package org.jboss.forge.common.projects.test;
+
+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 counters complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="counters">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;all>
+ *         &lt;element name="sorting" type="{http://jboss.org}sorting" minOccurs="0"/>
+ *         &lt;element name="visible" type="{http://jboss.org}visible" minOccurs="0"/>
+ *       &lt;/all>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "counters", propOrder = {
+
+})
+public class Counters {
+
+    @XmlElement(namespace = "http://jboss.org")
+    protected String sorting;
+    @XmlElement(namespace = "http://jboss.org")
+    protected String visible;
+
+    /**
+     * Gets the value of the sorting property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getSorting() {
+        return sorting;
+    }
+
+    /**
+     * Sets the value of the sorting property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setSorting(String value) {
+        this.sorting = value;
+    }
+
+    /**
+     * Gets the value of the visible property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getVisible() {
+        return visible;
+    }
+
+    /**
+     * Sets the value of the visible property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setVisible(String value) {
+        this.visible = value;
+    }
+
+}

Added: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Downloads.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Downloads.java	2006-08-05 00:28:29 UTC (rev 5488)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Downloads.java	2006-08-05 00:48:56 UTC (rev 5489)
@@ -0,0 +1,177 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-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: 2006.08.05 at 02:45:34 AM CEST 
+//
+
+
+package org.jboss.forge.common.projects.test;
+
+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 downloads complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="downloads">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;all>
+ *         &lt;element name="categories" type="{http://jboss.org}categories" minOccurs="0"/>
+ *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         &lt;element name="counters" type="{http://jboss.org}counters" minOccurs="0"/>
+ *         &lt;element name="files" type="{http://jboss.org}files" minOccurs="0"/>
+ *       &lt;/all>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "downloads", propOrder = {
+
+})
+public class Downloads {
+
+    @XmlElement(namespace = "http://jboss.org")
+    protected Categories categories;
+    @XmlElement(namespace = "http://jboss.org")
+    protected String name;
+    @XmlElement(namespace = "http://jboss.org")
+    protected String description;
+    @XmlElement(namespace = "http://jboss.org")
+    protected Counters counters;
+    @XmlElement(namespace = "http://jboss.org")
+    protected Files files;
+
+    /**
+     * Gets the value of the categories property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Categories }
+     *     
+     */
+    public Categories getCategories() {
+        return categories;
+    }
+
+    /**
+     * Sets the value of the categories property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Categories }
+     *     
+     */
+    public void setCategories(Categories value) {
+        this.categories = 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;
+    }
+
+    /**
+     * Gets the value of the description property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getDescription() {
+        return description;
+    }
+
+    /**
+     * Sets the value of the description property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setDescription(String value) {
+        this.description = value;
+    }
+
+    /**
+     * Gets the value of the counters property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Counters }
+     *     
+     */
+    public Counters getCounters() {
+        return counters;
+    }
+
+    /**
+     * Sets the value of the counters property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Counters }
+     *     
+     */
+    public void setCounters(Counters value) {
+        this.counters = value;
+    }
+
+    /**
+     * Gets the value of the files property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Files }
+     *     
+     */
+    public Files getFiles() {
+        return files;
+    }
+
+    /**
+     * Sets the value of the files property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Files }
+     *     
+     */
+    public void setFiles(Files value) {
+        this.files = value;
+    }
+
+}

Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/project.xsd
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/project.xsd	2006-08-05 00:28:29 UTC (rev 5488)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/project.xsd	2006-08-05 00:48:56 UTC (rev 5489)
@@ -19,17 +19,28 @@
             <xs:element name="issue-tracker" minOccurs="0" type="issue-tracker" />
             <xs:element name="menu" type="menu" />
             <xs:element name="polls" minOccurs="0" maxOccurs="1" type="polls" />
-            <xs:element name="downloads" minOccurs="0" maxOccurs="1" >
-                <xs:complexType>
-                    <xs:sequence>
-                        <xs:element name="categories" minOccurs="0" maxOccurs="1" type="categories" />
-                    </xs:sequence>
-                </xs:complexType>
-            </xs:element>
+            <xs:element name="downloads" minOccurs="0" maxOccurs="1" type="downloads" />
         </xs:all>
     </xs:complexType>
 </xs:element>
 
+<xs:complexType name="downloads" >
+    <xs:all>
+        <xs:element name="categories" minOccurs="0" maxOccurs="1" type="categories" />
+        <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+        <xs:element name="description" minOccurs="0" maxOccurs="1" type="xs:string" />
+        <xs:element name="counters" minOccurs="0" maxOccurs="1" type="counters" />
+        <xs:element name="files" minOccurs="0" maxOccurs="1" type="files" />
+    </xs:all>
+</xs:complexType>
+
+<xs:complexType name="counters" >
+    <xs:all>
+        <xs:element name="sorting" minOccurs="0" maxOccurs="1" type="sorting" />
+        <xs:element name="visible" minOccurs="0" maxOccurs="1" type="visible" />
+    </xs:all>
+</xs:complexType>
+
 <xs:complexType name="repository" >
     <xs:attribute name="type" use="required" >
         <xs:simpleType>
@@ -113,6 +124,8 @@
     <xs:sequence>
         <xs:element name="file" minOccurs="0" maxOccurs="unbounded" type="file" />
     </xs:sequence>
+    <xs:attribute name="visible" type="visible" default="true" />
+    <xs:attribute name="sorting" type="sorting" default="random" />
 </xs:complexType>
 
 <xs:complexType name="file" >
@@ -144,6 +157,32 @@
     </xs:all>
 </xs:complexType>
 
+<xs:simpleType name="sorting" >
+    <xs:restriction base="xs:string">
+        <xs:enumeration value="asc"/>
+        <xs:enumeration value="desc"/>
+        <xs:enumeration value="random"/>
+        <xs:enumeration value="ascending"/>
+        <xs:enumeration value="descending"/>
+        <xs:enumeration value="random"/>
+        <xs:enumeration value="ASC"/>
+        <xs:enumeration value="DESC"/>
+        <xs:enumeration value="RANDOM"/>
+        <xs:enumeration value="ASCENDING"/>
+        <xs:enumeration value="DESCENDING"/>
+        <xs:enumeration value="RANDOM"/>
+    </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="visible" >
+    <xs:restriction base="xs:string">
+        <xs:enumeration value="FALSE"/>
+        <xs:enumeration value="false"/>
+        <xs:enumeration value="true"/>
+        <xs:enumeration value="TRUE"/>
+    </xs:restriction>
+</xs:simpleType>
+
 <xs:complexType name="categories" >
     <xs:sequence>
         <xs:element name="category" type="category" maxOccurs="unbounded" />




More information about the jboss-svn-commits mailing list