[jboss-svn-commits] JBL Code SVN: r5577 - in labs/jbosslabs/trunk/portal-extensions/forge-common/src: java/org/jboss/forge/common/projects java/org/jboss/forge/common/projects/test web
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Aug 7 18:19:19 EDT 2006
Author: unibrew
Date: 2006-08-07 18:19:09 -0400 (Mon, 07 Aug 2006)
New Revision: 5577
Added:
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/LinkType.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/MonitorType.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/RepoType.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Sorting.java
Removed:
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Counters.java
Modified:
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/ProjectDescriptor.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Categories.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Category.java
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/File.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Files.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/IssueTracker.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Link.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Menu.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/ObjectFactory.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Page.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Poll.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Polls.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Project.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/RepoMonitor.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Repository.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/package-info.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/project.xsd
Log:
[JBLAB-679] Another update of XMLSchema and javabeanlike classes for project.xml parsing.
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/ProjectDescriptor.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/ProjectDescriptor.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/ProjectDescriptor.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -24,6 +24,12 @@
import java.io.IOException;
import java.util.Set;
+import javax.xml.bind.JAXBContext;
+
+import javax.xml.bind.JAXBException;
+
+import javax.xml.bind.Unmarshaller;
+
import org.apache.xerces.parsers.DOMParser;
import org.jboss.forge.common.ForgeHelper;
import org.jboss.forge.common.navigation.Menu;
@@ -37,8 +43,23 @@
import org.jboss.forge.common.projects.elements.PropertiesHandlerStack;
import org.jboss.forge.common.projects.elements.PropertiesMap;
import org.jboss.forge.common.projects.permissions.PermissionsChecker;
+import org.jboss.forge.common.projects.test.Categories;
+import org.jboss.forge.common.projects.test.Category;
+import org.jboss.forge.common.projects.test.Counters;
+import org.jboss.forge.common.projects.test.Downloads;
+import org.jboss.forge.common.projects.test.File;
+import org.jboss.forge.common.projects.test.Files;
+import org.jboss.forge.common.projects.test.Link;
+import org.jboss.forge.common.projects.test.ObjectFactory;
+import org.jboss.forge.common.projects.test.Page;
+import org.jboss.forge.common.projects.test.Poll;
+import org.jboss.forge.common.projects.test.Polls;
+import org.jboss.forge.common.projects.test.Project;
+import org.jboss.forge.common.projects.test.RepoMonitor;
import org.jboss.logging.Logger;
import org.jboss.portal.common.context.DelegateContext;
+import org.jboss.shotoku.ContentManager;
+import org.jboss.shotoku.aop.Inject;
import org.jboss.shotoku.tools.Tools;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@@ -70,6 +91,9 @@
private Node downloadsNode;
private DownloadsDescriptor downloads;
+ @Inject
+ private ContentManager cm;
+
/**
* Reads information about a project from an xml file.
*
@@ -118,6 +142,20 @@
thisProject.addProperties(adminProperties, true);
}
+ if (projectId.compareTo("jbosswiki")==0) {
+ System.out.println("TWORZĘ PROJEKT");
+ try {
+ //JAXBContext jc = JAXBContext.newInstance("org.jboss.forge.common.projects.test");
+ JAXBContext jc = JAXBContext.newInstance("org.jboss.forge.common.projects.test");
+ Unmarshaller un = jc.createUnmarshaller();
+ Project project = (Project)un.unmarshal(cm.getNode("default/members/jbosswiki/project.xml").getContentInputStream());
+ project.toString();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ new ObjectFactory().createProject();
+ }
+
// Trying to create a downloads descriptor.
try {
downloads = new DownloadsDescriptor(isf, xht,downloadsNode,
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Categories.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Categories.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Categories.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -17,21 +17,13 @@
/**
- * <p>Java class for categories complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about download categories.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="categories">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="category" type="{http://jboss.org}category" maxOccurs="unbounded"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -41,7 +33,7 @@
})
public class Categories {
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected List<Category> category;
/**
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Category.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Category.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Category.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -14,39 +14,16 @@
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
-import org.jboss.forge.common.projects.test.Category.Categories;
/**
- * <p>Java class for category complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about download category.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="category">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="files" type="{http://jboss.org}files"/>
- * <element name="categories" minOccurs="0">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="category" type="{http://jboss.org}category" maxOccurs="unbounded"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * </all>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -56,16 +33,15 @@
})
public class Category {
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String id;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String name;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String description;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected Files files;
- @XmlElement(namespace = "http://jboss.org")
- protected Categories categories;
+ protected Category.Categories categories;
/**
* Gets the value of the id property.
@@ -168,10 +144,10 @@
*
* @return
* possible object is
- * {@link Categories }
+ * {@link Category.Categories }
*
*/
- public Categories getCategories() {
+ public Category.Categories getCategories() {
return categories;
}
@@ -180,10 +156,10 @@
*
* @param value
* allowed object is
- * {@link Categories }
+ * {@link Category.Categories }
*
*/
- public void setCategories(Categories value) {
+ public void setCategories(Category.Categories value) {
this.categories = value;
}
@@ -213,7 +189,7 @@
})
public static class Categories {
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected List<Category> category;
/**
Deleted: 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-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Counters.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,96 +0,0 @@
-//
-// 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>
- * <complexType name="counters">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="sorting" type="{http://jboss.org}sorting" minOccurs="0"/>
- * <element name="visible" type="{http://jboss.org}visible" minOccurs="0"/>
- * </all>
- * </restriction>
- * </complexContent>
- * </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;
- }
-
-}
Modified: 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-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Downloads.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -10,30 +10,17 @@
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.
+ * Class for keeping information about project's downloads.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="downloads">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="categories" type="{http://jboss.org}categories" minOccurs="0"/>
- * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="counters" type="{http://jboss.org}counters" minOccurs="0"/>
- * <element name="files" type="{http://jboss.org}files" minOccurs="0"/>
- * </all>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -43,15 +30,10 @@
})
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 Downloads.Counters counters;
protected Files files;
/**
@@ -131,10 +113,10 @@
*
* @return
* possible object is
- * {@link Counters }
+ * {@link Downloads.Counters }
*
*/
- public Counters getCounters() {
+ public Downloads.Counters getCounters() {
return counters;
}
@@ -143,10 +125,10 @@
*
* @param value
* allowed object is
- * {@link Counters }
+ * {@link Downloads.Counters }
*
*/
- public void setCounters(Counters value) {
+ public void setCounters(Downloads.Counters value) {
this.counters = value;
}
@@ -174,4 +156,84 @@
this.files = value;
}
+
+ /**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <all>
+ * <element name="sorting" type="{http://jboss.org}sorting" minOccurs="0"/>
+ * <element name="visible" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ * </all>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlType(name = "", propOrder = {
+
+ })
+ public static class Counters {
+
+ protected Sorting sorting;
+ protected Boolean visible;
+
+ /**
+ * Gets the value of the sorting property.
+ *
+ * @return
+ * possible object is
+ * {@link Sorting }
+ *
+ */
+ public Sorting getSorting() {
+ return sorting;
+ }
+
+ /**
+ * Sets the value of the sorting property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Sorting }
+ *
+ */
+ public void setSorting(Sorting value) {
+ this.sorting = value;
+ }
+
+ /**
+ * Gets the value of the visible property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isVisible() {
+ return visible;
+ }
+
+ /**
+ * Sets the value of the visible property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setVisible(Boolean value) {
+ this.visible = value;
+ }
+
+ }
+
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/File.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/File.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/File.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -10,54 +10,19 @@
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;
-import org.jboss.forge.common.projects.test.File.Button;
/**
- * <p>Java class for file complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about one file available for download.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="file">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="size" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="license" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="release" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="button">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="freezone">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="true"/>
- * <enumeration value="TRUE"/>
- * <enumeration value="false"/>
- * <enumeration value="FALSE"/>
- * </restriction>
- * </simpleType>
- * </element>
- * </all>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * </all>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -67,20 +32,24 @@
})
public class File {
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String id;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String name;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String description;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String size;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String license;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String release;
- @XmlElement(namespace = "http://jboss.org", required = true)
- protected Button button;
+ @XmlElement(required = true)
+ protected File.Button button;
+ @XmlAttribute
+ protected Sorting sorting;
+ @XmlAttribute
+ protected Boolean visible;
/**
* Gets the value of the id property.
@@ -231,10 +200,10 @@
*
* @return
* possible object is
- * {@link Button }
+ * {@link File.Button }
*
*/
- public Button getButton() {
+ public File.Button getButton() {
return button;
}
@@ -243,15 +212,71 @@
*
* @param value
* allowed object is
- * {@link Button }
+ * {@link File.Button }
*
*/
- public void setButton(Button value) {
+ public void setButton(File.Button value) {
this.button = value;
}
+ /**
+ * Gets the value of the sorting property.
+ *
+ * @return
+ * possible object is
+ * {@link Sorting }
+ *
+ */
+ public Sorting getSorting() {
+ if (sorting == null) {
+ return Sorting.RANDOM;
+ } else {
+ return sorting;
+ }
+ }
/**
+ * Sets the value of the sorting property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Sorting }
+ *
+ */
+ public void setSorting(Sorting value) {
+ this.sorting = value;
+ }
+
+ /**
+ * Gets the value of the visible property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public boolean isVisible() {
+ if (visible == null) {
+ return true;
+ } else {
+ return visible;
+ }
+ }
+
+ /**
+ * Sets the value of the visible property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setVisible(Boolean value) {
+ this.visible = value;
+ }
+
+
+ /**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
@@ -263,16 +288,7 @@
* <all>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="freezone">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="true"/>
- * <enumeration value="TRUE"/>
- * <enumeration value="false"/>
- * <enumeration value="FALSE"/>
- * </restriction>
- * </simpleType>
- * </element>
+ * <element name="freezone" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </all>
* </restriction>
* </complexContent>
@@ -287,12 +303,11 @@
})
public static class Button {
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String id;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String name;
- @XmlElement(namespace = "http://jboss.org", required = true)
- protected String freezone;
+ protected boolean freezone;
/**
* Gets the value of the id property.
@@ -345,24 +360,16 @@
/**
* Gets the value of the freezone property.
*
- * @return
- * possible object is
- * {@link String }
- *
*/
- public String getFreezone() {
+ public boolean isFreezone() {
return freezone;
}
/**
* Sets the value of the freezone property.
*
- * @param value
- * allowed object is
- * {@link String }
- *
*/
- public void setFreezone(String value) {
+ public void setFreezone(boolean value) {
this.freezone = value;
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Files.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Files.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Files.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -13,28 +13,17 @@
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 files complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about files available to download.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="files">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="file" type="{http://jboss.org}file" maxOccurs="unbounded" minOccurs="0"/>
- * </sequence>
- * <attribute name="sorting" type="{http://jboss.org}sorting" default="random" />
- * <attribute name="visible" type="{http://jboss.org}visible" default="true" />
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -44,12 +33,11 @@
})
public class Files {
- @XmlElement(namespace = "http://jboss.org", required = true)
protected List<File> file;
@XmlAttribute
- protected String sorting;
+ protected Sorting sorting;
@XmlAttribute
- protected String visible;
+ protected Boolean visible;
/**
* Gets the value of the file property.
@@ -85,12 +73,12 @@
*
* @return
* possible object is
- * {@link String }
+ * {@link Sorting }
*
*/
- public String getSorting() {
+ public Sorting getSorting() {
if (sorting == null) {
- return "random";
+ return Sorting.RANDOM;
} else {
return sorting;
}
@@ -101,10 +89,10 @@
*
* @param value
* allowed object is
- * {@link String }
+ * {@link Sorting }
*
*/
- public void setSorting(String value) {
+ public void setSorting(Sorting value) {
this.sorting = value;
}
@@ -113,12 +101,12 @@
*
* @return
* possible object is
- * {@link String }
+ * {@link Boolean }
*
*/
- public String getVisible() {
+ public boolean isVisible() {
if (visible == null) {
- return "true";
+ return true;
} else {
return visible;
}
@@ -129,10 +117,10 @@
*
* @param value
* allowed object is
- * {@link String }
+ * {@link Boolean }
*
*/
- public void setVisible(String value) {
+ public void setVisible(Boolean value) {
this.visible = value;
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/IssueTracker.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/IssueTracker.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/IssueTracker.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -16,19 +16,13 @@
/**
- * <p>Java class for issue-tracker complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about project's issue tracker.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="issue-tracker">
- * <simpleContent>
- * <extension base="<http://www.w3.org/2001/XMLSchema>string">
- * <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
- * </extension>
- * </simpleContent>
- * </complexType>
- * </pre>
*
*
*/
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Link.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Link.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Link.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -16,28 +16,13 @@
/**
- * <p>Java class for link complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about one of predefined links for project's navigation menu.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="link">
- * <simpleContent>
- * <extension base="<http://www.w3.org/2001/XMLSchema>string">
- * <attribute name="display" type="{http://www.w3.org/2001/XMLSchema}string" />
- * <attribute name="type">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="repository"/>
- * <enumeration value="issue-tracker"/>
- * <enumeration value="repo-monitor"/>
- * </restriction>
- * </simpleType>
- * </attribute>
- * </extension>
- * </simpleContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -52,7 +37,7 @@
@XmlAttribute
protected String display;
@XmlAttribute
- protected String type;
+ protected LinkType type;
/**
* Gets the value of the value property.
@@ -107,10 +92,10 @@
*
* @return
* possible object is
- * {@link String }
+ * {@link LinkType }
*
*/
- public String getType() {
+ public LinkType getType() {
return type;
}
@@ -119,10 +104,10 @@
*
* @param value
* allowed object is
- * {@link String }
+ * {@link LinkType }
*
*/
- public void setType(String value) {
+ public void setType(LinkType value) {
this.type = value;
}
Added: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/LinkType.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/LinkType.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/LinkType.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -0,0 +1,66 @@
+//
+// 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: 2006.08.08 at 12:10:50 AM CEST
+//
+
+
+package org.jboss.forge.common.projects.test;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+
+
+/**
+ *
+ * Enum describing types of possbile repository-monitors.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
+ *
+ * <p>Java class for LinkType.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="LinkType">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="repository"/>
+ * <enumeration value="issue-tracker"/>
+ * <enumeration value="repo-monitor"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+ at XmlEnum
+public enum LinkType {
+
+ @XmlEnumValue("repository")
+ REPOSITORY("repository"),
+ @XmlEnumValue("issue-tracker")
+ ISSUE_TRACKER("issue-tracker"),
+ @XmlEnumValue("repo-monitor")
+ REPO_MONITOR("repo-monitor");
+ private final String value;
+
+ LinkType(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static LinkType fromValue(String v) {
+ for (LinkType c: LinkType.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v.toString());
+ }
+
+}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Menu.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Menu.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Menu.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -15,22 +15,13 @@
/**
- * <p>Java class for menu complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about project's navigation menu.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="menu">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="page" type="{http://jboss.org}page"/>
- * <element name="link" type="{http://jboss.org}link"/>
- * </all>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -40,9 +31,9 @@
})
public class Menu {
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected Page page;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected Link link;
/**
Added: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/MonitorType.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/MonitorType.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/MonitorType.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -0,0 +1,63 @@
+//
+// 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: 2006.08.08 at 12:10:50 AM CEST
+//
+
+
+package org.jboss.forge.common.projects.test;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+
+
+/**
+ *
+ * Enum describing types of possbile repository-monitors.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
+ *
+ * <p>Java class for MonitorType.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="MonitorType">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="fisheye"/>
+ * <enumeration value="viewvc"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+ at XmlEnum
+public enum MonitorType {
+
+ @XmlEnumValue("fisheye")
+ FISHEYE("fisheye"),
+ @XmlEnumValue("viewvc")
+ VIEWVC("viewvc");
+ private final String value;
+
+ MonitorType(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static MonitorType fromValue(String v) {
+ for (MonitorType c: MonitorType.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v.toString());
+ }
+
+}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/ObjectFactory.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/ObjectFactory.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/ObjectFactory.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,15 +1,14 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
package org.jboss.forge.common.projects.test;
import javax.xml.bind.annotation.XmlRegistry;
-import org.jboss.forge.common.projects.test.File.Button;
/**
@@ -38,54 +37,46 @@
}
/**
- * Create an instance of {@link RepoMonitor }
+ * Create an instance of {@link File.Button }
*
*/
- public RepoMonitor createRepoMonitor() {
- return new RepoMonitor();
+ public File.Button createFileButton() {
+ return new File.Button();
}
/**
- * Create an instance of {@link File }
+ * Create an instance of {@link Poll }
*
*/
- public File createFile() {
- return new File();
+ public Poll createPoll() {
+ return new Poll();
}
/**
- * Create an instance of {@link org.jboss.forge.common.projects.test.Category.Categories }
+ * Create an instance of {@link Link }
*
*/
- public org.jboss.forge.common.projects.test.Category.Categories createCategoryCategories() {
- return new org.jboss.forge.common.projects.test.Category.Categories();
+ public Link createLink() {
+ return new Link();
}
/**
- * Create an instance of {@link Page }
+ * Create an instance of {@link File }
*
*/
- public Page createPage() {
- return new Page();
+ public File createFile() {
+ return new File();
}
/**
- * Create an instance of {@link Category }
+ * Create an instance of {@link Page }
*
*/
- public Category createCategory() {
- return new Category();
+ public Page createPage() {
+ return new Page();
}
/**
- * Create an instance of {@link Button }
- *
- */
- public Button createFileButton() {
- return new Button();
- }
-
- /**
* Create an instance of {@link Project }
*
*/
@@ -94,35 +85,35 @@
}
/**
- * Create an instance of {@link Polls }
+ * Create an instance of {@link Files }
*
*/
- public Polls createPolls() {
- return new Polls();
+ public Files createFiles() {
+ return new Files();
}
/**
- * Create an instance of {@link org.jboss.forge.common.projects.test.Categories }
+ * Create an instance of {@link RepoMonitor }
*
*/
- public org.jboss.forge.common.projects.test.Categories createCategories() {
- return new org.jboss.forge.common.projects.test.Categories();
+ public RepoMonitor createRepoMonitor() {
+ return new RepoMonitor();
}
/**
- * Create an instance of {@link Downloads }
+ * Create an instance of {@link Repository }
*
*/
- public Downloads createDownloads() {
- return new Downloads();
+ public Repository createRepository() {
+ return new Repository();
}
/**
- * Create an instance of {@link IssueTracker }
+ * Create an instance of {@link Category }
*
*/
- public IssueTracker createIssueTracker() {
- return new IssueTracker();
+ public Category createCategory() {
+ return new Category();
}
/**
@@ -134,43 +125,51 @@
}
/**
- * Create an instance of {@link Link }
+ * Create an instance of {@link Downloads }
*
*/
- public Link createLink() {
- return new Link();
+ public Downloads createDownloads() {
+ return new Downloads();
}
/**
- * Create an instance of {@link Files }
+ * Create an instance of {@link Polls }
*
*/
- public Files createFiles() {
- return new Files();
+ public Polls createPolls() {
+ return new Polls();
}
/**
- * Create an instance of {@link Poll }
+ * Create an instance of {@link IssueTracker }
*
*/
- public Poll createPoll() {
- return new Poll();
+ public IssueTracker createIssueTracker() {
+ return new IssueTracker();
}
/**
- * Create an instance of {@link Repository }
+ * Create an instance of {@link Downloads.Counters }
*
*/
- public Repository createRepository() {
- return new Repository();
+ public Downloads.Counters createDownloadsCounters() {
+ return new Downloads.Counters();
}
/**
- * Create an instance of {@link Counters }
+ * Create an instance of {@link Category.Categories }
*
*/
- public Counters createCounters() {
- return new Counters();
+ public Category.Categories createCategoryCategories() {
+ return new Category.Categories();
}
+ /**
+ * Create an instance of {@link org.jboss.forge.common.projects.test.Categories }
+ *
+ */
+ public org.jboss.forge.common.projects.test.Categories createCategories() {
+ return new org.jboss.forge.common.projects.test.Categories();
+ }
+
}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Page.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Page.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Page.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -16,19 +16,13 @@
/**
- * <p>Java class for page complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about one of pages for project's navigation menu.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="page">
- * <simpleContent>
- * <extension base="<http://www.w3.org/2001/XMLSchema>string">
- * <attribute name="display" type="{http://www.w3.org/2001/XMLSchema}string" />
- * </extension>
- * </simpleContent>
- * </complexType>
- * </pre>
*
*
*/
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Poll.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Poll.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Poll.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -15,22 +15,13 @@
/**
- * <p>Java class for poll complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about one poll.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="poll">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="question" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="answer" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * </all>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -40,9 +31,9 @@
})
public class Poll {
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String question;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String answer;
/**
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Polls.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Polls.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Polls.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -10,26 +10,17 @@
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 polls complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about polls.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="polls">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="poll" type="{http://jboss.org}poll" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -39,7 +30,6 @@
})
public class Polls {
- @XmlElement(namespace = "http://jboss.org")
protected Poll poll;
/**
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Project.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Project.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Project.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,13 +1,15 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
package org.jboss.forge.common.projects.test;
+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;
@@ -16,68 +18,52 @@
/**
- * <p>Java class for project element declaration.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Root class describing whole project.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <element name="project">
- * <complexType>
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <all>
- * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="company-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="logo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="jems" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * <element name="repository" type="{http://jboss.org}repository" minOccurs="0"/>
- * <element name="repo-monitor" type="{http://jboss.org}repo-monitor" minOccurs="0"/>
- * <element name="issue-tracker" type="{http://jboss.org}issue-tracker" minOccurs="0"/>
- * <element name="menu" type="{http://jboss.org}menu"/>
- * <element name="polls" type="{http://jboss.org}polls" minOccurs="0"/>
- * <element name="downloads" type="{http://jboss.org}downloads" minOccurs="0"/>
- * </all>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </element>
- * </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
-
+ "id",
+ "name",
+ "companyName",
+ "logo",
+ "description",
+ "jems",
+ "repository",
+ "repoMonitor",
+ "issueTracker",
+ "menu",
+ "downloads",
+ "polls"
})
@XmlRootElement(name = "project")
public class Project {
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String id;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected String name;
- @XmlElement(name = "company-name", namespace = "http://jboss.org", required = true)
+ @XmlElement(name = "company-name", required = true)
protected String companyName;
- @XmlElement(namespace = "http://jboss.org")
protected String logo;
- @XmlElement(namespace = "http://jboss.org")
protected String description;
- @XmlElement(namespace = "http://jboss.org")
- protected String jems;
- @XmlElement(namespace = "http://jboss.org")
+ protected List<String> jems;
protected Repository repository;
- @XmlElement(name = "repo-monitor", namespace = "http://jboss.org")
+ @XmlElement(name = "repo-monitor")
protected RepoMonitor repoMonitor;
- @XmlElement(name = "issue-tracker", namespace = "http://jboss.org")
+ @XmlElement(name = "issue-tracker")
protected IssueTracker issueTracker;
- @XmlElement(namespace = "http://jboss.org", required = true)
+ @XmlElement(required = true)
protected Menu menu;
- @XmlElement(namespace = "http://jboss.org")
- protected Polls polls;
- @XmlElement(namespace = "http://jboss.org")
protected Downloads downloads;
+ protected Polls polls;
/**
* Gets the value of the id property.
@@ -202,25 +188,30 @@
/**
* Gets the value of the jems property.
*
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getJems() {
- return jems;
- }
-
- /**
- * Sets the value of the jems 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 jems property.
*
- * @param value
- * allowed object is
- * {@link String }
- *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getJems().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
*/
- public void setJems(String value) {
- this.jems = value;
+ public List<String> getJems() {
+ if (jems == null) {
+ jems = new ArrayList<String>();
+ }
+ return this.jems;
}
/**
@@ -320,53 +311,53 @@
}
/**
- * Gets the value of the polls property.
+ * Gets the value of the downloads property.
*
* @return
* possible object is
- * {@link Polls }
+ * {@link Downloads }
*
*/
- public Polls getPolls() {
- return polls;
+ public Downloads getDownloads() {
+ return downloads;
}
/**
- * Sets the value of the polls property.
+ * Sets the value of the downloads property.
*
* @param value
* allowed object is
- * {@link Polls }
+ * {@link Downloads }
*
*/
- public void setPolls(Polls value) {
- this.polls = value;
+ public void setDownloads(Downloads value) {
+ this.downloads = value;
}
/**
- * Gets the value of the downloads property.
+ * Gets the value of the polls property.
*
* @return
* possible object is
- * {@link Downloads }
+ * {@link Polls }
*
*/
- public Downloads getDownloads() {
- return downloads;
+ public Polls getPolls() {
+ return polls;
}
/**
- * Sets the value of the downloads property.
+ * Sets the value of the polls property.
*
* @param value
* allowed object is
- * {@link Downloads }
+ * {@link Polls }
*
*/
- public void setDownloads(Downloads value) {
- this.downloads = value;
+ public void setPolls(Polls value) {
+ this.polls = value;
}
-
+
public String toString() {
System.out.println("COMPANYNAME: "+companyName);
System.out.println("DESCRIPTION: "+description);
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/RepoMonitor.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/RepoMonitor.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/RepoMonitor.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -16,26 +16,13 @@
/**
- * <p>Java class for repo-monitor complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about project's repository monitor.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="repo-monitor">
- * <simpleContent>
- * <extension base="<http://www.w3.org/2001/XMLSchema>string">
- * <attribute name="type" use="required">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="fisheye"/>
- * <enumeration value="viewvc"/>
- * </restriction>
- * </simpleType>
- * </attribute>
- * </extension>
- * </simpleContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -48,7 +35,7 @@
@XmlValue
protected String value;
@XmlAttribute(required = true)
- protected String type;
+ protected MonitorType type;
/**
* Gets the value of the value property.
@@ -79,10 +66,10 @@
*
* @return
* possible object is
- * {@link String }
+ * {@link MonitorType }
*
*/
- public String getType() {
+ public MonitorType getType() {
return type;
}
@@ -91,10 +78,10 @@
*
* @param value
* allowed object is
- * {@link String }
+ * {@link MonitorType }
*
*/
- public void setType(String value) {
+ public void setType(MonitorType value) {
this.type = value;
}
Added: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/RepoType.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/RepoType.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/RepoType.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -0,0 +1,63 @@
+//
+// 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: 2006.08.08 at 12:10:50 AM CEST
+//
+
+
+package org.jboss.forge.common.projects.test;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+
+
+/**
+ *
+ * Enum describing types of possbile repositories.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
+ *
+ * <p>Java class for RepoType.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="RepoType">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="svn"/>
+ * <enumeration value="cvs"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+ at XmlEnum
+public enum RepoType {
+
+ @XmlEnumValue("svn")
+ SVN("svn"),
+ @XmlEnumValue("cvs")
+ CVS("cvs");
+ private final String value;
+
+ RepoType(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static RepoType fromValue(String v) {
+ for (RepoType c: RepoType.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v.toString());
+ }
+
+}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Repository.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Repository.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Repository.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,8 +1,8 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
@@ -15,26 +15,13 @@
/**
- * <p>Java class for repository complex type.
*
- * <p>The following schema fragment specifies the expected content contained within this class.
+ * Class for keeping information about project's repository type.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
*
- * <pre>
- * <complexType name="repository">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <attribute name="type" use="required">
- * <simpleType>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- * <enumeration value="svn"/>
- * <enumeration value="cvs"/>
- * </restriction>
- * </simpleType>
- * </attribute>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
*
*
*/
@@ -43,17 +30,17 @@
public class Repository {
@XmlAttribute(required = true)
- protected String type;
+ protected RepoType type;
/**
* Gets the value of the type property.
*
* @return
* possible object is
- * {@link String }
+ * {@link RepoType }
*
*/
- public String getType() {
+ public RepoType getType() {
return type;
}
@@ -62,10 +49,10 @@
*
* @param value
* allowed object is
- * {@link String }
+ * {@link RepoType }
*
*/
- public void setType(String value) {
+ public void setType(RepoType value) {
this.type = value;
}
Added: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Sorting.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Sorting.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/Sorting.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -0,0 +1,72 @@
+//
+// 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: 2006.08.08 at 12:10:50 AM CEST
+//
+
+
+package org.jboss.forge.common.projects.test;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+
+
+/**
+ *
+ * Enum describing types of possbile sorting orders for downloads showing purposes.
+ * Generated using JAXB
+ * DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ * @author Ryszard Kozmik
+ *
+ *
+ * <p>Java class for sorting.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * <simpleType name="sorting">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="asc"/>
+ * <enumeration value="desc"/>
+ * <enumeration value="random"/>
+ * <enumeration value="ascending"/>
+ * <enumeration value="descending"/>
+ * </restriction>
+ * </simpleType>
+ * </pre>
+ *
+ */
+ at XmlEnum
+public enum Sorting {
+
+ @XmlEnumValue("asc")
+ ASC("asc"),
+ @XmlEnumValue("desc")
+ DESC("desc"),
+ @XmlEnumValue("random")
+ RANDOM("random"),
+ @XmlEnumValue("ascending")
+ ASCENDING("ascending"),
+ @XmlEnumValue("descending")
+ DESCENDING("descending");
+ private final String value;
+
+ Sorting(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static Sorting fromValue(String v) {
+ for (Sorting c: Sorting.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v.toString());
+ }
+
+}
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/package-info.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/package-info.java 2006-08-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/test/package-info.java 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,9 +1,9 @@
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
+// 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: 2006.08.05 at 02:45:34 AM CEST
+// Generated on: 2006.08.08 at 12:10:50 AM CEST
//
- at javax.xml.bind.annotation.XmlSchema(namespace = "http://jboss.org")
+ at javax.xml.bind.annotation.XmlSchema(namespace = "http://jboss.org", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.jboss.forge.common.projects.test;
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-07 21:02:15 UTC (rev 5576)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/project.xsd 2006-08-07 22:19:09 UTC (rev 5577)
@@ -1,73 +1,181 @@
<?xml version="1.0"?>
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
-targetNamespace="http://jboss.org"
-xmlns="http://jboss.org"
-elementFormDefault="qualified">
+ xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
+ targetNamespace="http://jboss.org"
+ xmlns="http://jboss.org"
+ elementFormDefault="qualified"
+ jxb:version="2.0" >
<xs:element name="project" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Root class describing whole project.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:complexType>
- <xs:all>
+ <xs:sequence>
<xs:element name="id" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="company-name" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="logo" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1" />
- <xs:element name="jems" minOccurs="0" type="xs:string" />
+ <xs:element name="jems" minOccurs="0" maxOccurs="unbounded" type="xs:string" />
<xs:element name="repository" minOccurs="0" type="repository" />
<xs:element name="repo-monitor" minOccurs="0" type="repo-monitor" />
<xs:element name="issue-tracker" minOccurs="0" type="issue-tracker" />
<xs:element name="menu" type="menu" />
+ <xs:element name="downloads" minOccurs="0" maxOccurs="1" type="downloads" />
<xs:element name="polls" minOccurs="0" maxOccurs="1" type="polls" />
- <xs:element name="downloads" minOccurs="0" maxOccurs="1" type="downloads" />
- </xs:all>
+ </xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="downloads" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about project's downloads.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<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="counters" minOccurs="0" maxOccurs="1" >
+ <xs:complexType>
+ <xs:all>
+ <xs:element name="sorting" minOccurs="0" maxOccurs="1" type="sorting" />
+ <xs:element name="visible" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+ </xs:all>
+ </xs:complexType>
+ </xs:element>
<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>
- <xs:restriction base="xs:string">
- <xs:enumeration value="svn"/>
- <xs:enumeration value="cvs"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about project's repository type.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
+ <xs:attribute name="type" use="required" type="RepoType" />
</xs:complexType>
+<xs:simpleType name="RepoType" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:typesafeEnumClass>
+ <jxb:javadoc>
+ Enum describing types of possbile repositories.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:typesafeEnumClass>
+ </xs:appinfo>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="svn"/>
+ <xs:enumeration value="cvs"/>
+ </xs:restriction>
+</xs:simpleType>
+
<xs:complexType name="repo-monitor" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about project's repository monitor.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string" >
- <xs:attribute name="type" use="required" >
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="fisheye"/>
- <xs:enumeration value="viewvc"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
+ <xs:attribute name="type" use="required" type="MonitorType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
+<xs:simpleType name="MonitorType" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:typesafeEnumClass>
+ <jxb:javadoc>
+ Enum describing types of possbile repository-monitors.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:typesafeEnumClass>
+ </xs:appinfo>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="fisheye"/>
+ <xs:enumeration value="viewvc"/>
+ </xs:restriction>
+</xs:simpleType>
+
<xs:complexType name="issue-tracker" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about project's issue tracker.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" use="required" />
@@ -76,6 +184,18 @@
</xs:complexType>
<xs:complexType name="menu" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about project's navigation menu.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:all>
<xs:element name="page" type="page" />
<xs:element name="link" type="link" />
@@ -83,6 +203,18 @@
</xs:complexType>
<xs:complexType name="page" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about one of pages for project's navigation menu.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string" >
<xs:attribute name="display" type="xs:string" use="optional" />
@@ -91,29 +223,77 @@
</xs:complexType>
<xs:complexType name="link" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about one of predefined links for project's navigation menu.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string" >
<xs:attribute name="display" type="xs:string" use="optional" />
- <xs:attribute name="type" use="optional" >
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumeration value="repository"/>
- <xs:enumeration value="issue-tracker"/>
- <xs:enumeration value="repo-monitor"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
+ <xs:attribute name="type" use="optional" type="LinkType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
+<xs:simpleType name="LinkType" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:typesafeEnumClass>
+ <jxb:javadoc>
+ Enum describing types of possbile repository-monitors.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:typesafeEnumClass>
+ </xs:appinfo>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="repository"/>
+ <xs:enumeration value="issue-tracker"/>
+ <xs:enumeration value="repo-monitor"/>
+ </xs:restriction>
+</xs:simpleType>
+
<xs:complexType name="polls" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about polls.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:sequence>
<xs:element name="poll" minOccurs="0" type="poll" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="poll" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about one poll.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:all>
<xs:element name="question" minOccurs="1" maxOccurs="1" type="xs:string" />
<xs:element name="answer" minOccurs="1" type="xs:string" />
@@ -121,14 +301,38 @@
</xs:complexType>
<xs:complexType name="files" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about files available to download.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<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="visible" type="xs:boolean" default="true" />
<xs:attribute name="sorting" type="sorting" default="random" />
</xs:complexType>
<xs:complexType name="file" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about one file available for download.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:all>
<xs:element name="id" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="name" type="xs:string" maxOccurs="1" />
@@ -141,55 +345,68 @@
<xs:all>
<xs:element name="id" type="xs:string" />
<xs:element name="name" type="xs:string" />
- <xs:element name="freezone" >
- <xs:simpleType>
- <xs:restriction base="xs:string" >
- <xs:enumeration value="true" />
- <xs:enumeration value="TRUE" />
- <xs:enumeration value="false"/>
- <xs:enumeration value="FALSE" />
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
+ <xs:element name="freezone" type="xs:boolean" />
</xs:all>
</xs:complexType>
</xs:element>
</xs:all>
+ <xs:attribute name="visible" type="xs:boolean" default="true" />
+ <xs:attribute name="sorting" type="sorting" default="random" />
</xs:complexType>
<xs:simpleType name="sorting" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:typesafeEnumClass>
+ <jxb:javadoc>
+ Enum describing types of possbile sorting orders for downloads showing purposes.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:typesafeEnumClass>
+ </xs:appinfo>
+ </xs:annotation>
<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:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about download categories.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:sequence>
<xs:element name="category" type="category" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="category" >
+ <xs:annotation>
+ <xs:appinfo>
+ <jxb:class>
+ <jxb:javadoc>
+ Class for keeping information about download category.
+ Generated using JAXB
+ DO NOT MODIFY UNLESS YOU REALLY KNOW WHAT ARE YOU DOING.
+ @author Ryszard Kozmik
+ </jxb:javadoc>
+ </jxb:class>
+ </xs:appinfo>
+ </xs:annotation>
<xs:all>
<xs:element name="id" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="name" type="xs:string" maxOccurs="1" />
More information about the jboss-svn-commits
mailing list