[jboss-svn-commits] JBL Code SVN: r10938 - in labs/jbosslabs/trunk/portal-extensions/forge-common/src: java/org/jboss/forge/common/projects/project/rw and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Apr 12 15:03:07 EDT 2007
Author: wrzep
Date: 2007-04-12 15:03:07 -0400 (Thu, 12 Apr 2007)
New Revision: 10938
Modified:
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Project.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/ProjectRW.java
labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/WEB-INF/project.xsd
Log:
JBLAB-850
<link> element in project.xml
-Pawel
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Project.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Project.java 2007-04-12 19:02:10 UTC (rev 10937)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/Project.java 2007-04-12 19:03:07 UTC (rev 10938)
@@ -410,6 +410,30 @@
public abstract List<? extends Documentation> getDocumentation();
/**
+ * Gets the value of the link 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 link property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getLink().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public abstract List<String> getLink();
+
+ /**
* Gets the value of the pages property.
*
* @return
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/ProjectRW.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/ProjectRW.java 2007-04-12 19:02:10 UTC (rev 10937)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/java/org/jboss/forge/common/projects/project/rw/ProjectRW.java 2007-04-12 19:03:07 UTC (rev 10938)
@@ -73,6 +73,7 @@
"userForum",
"devForum",
"documentation",
+ "link",
"pages",
"downloads",
"polls"
@@ -115,6 +116,7 @@
@XmlElement(name = "dev-forum")
protected String devForum;
protected List<DocumentationRW> documentation = new CopyOnWriteArrayList<DocumentationRW>();
+ protected List<String> link;
@XmlElement(required = true)
protected PagesRW pages;
protected DownloadsRW downloads;
@@ -608,6 +610,35 @@
}
/**
+ * Gets the value of the link 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 link property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getLink().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List<String> getLink() {
+ if (link == null) {
+ link = new CopyOnWriteArrayList<String>();
+ }
+ return this.link;
+ }
+
+ /**
* Gets the value of the pages property.
*
* @return
Modified: labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/WEB-INF/project.xsd
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/WEB-INF/project.xsd 2007-04-12 19:02:10 UTC (rev 10937)
+++ labs/jbosslabs/trunk/portal-extensions/forge-common/src/web/WEB-INF/project.xsd 2007-04-12 19:03:07 UTC (rev 10938)
@@ -81,6 +81,7 @@
<xs:element name="user-forum" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="dev-forum" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="documentation" minOccurs="0" maxOccurs="unbounded" type="documentation" />
+ <xs:element name="link" minOccurs="0" maxOccurs="unbounded" type="xs:string" />
<xs:element name="pages" minOccurs="1" maxOccurs="1" type="pages" />
<xs:element name="downloads" minOccurs="0" maxOccurs="1" type="downloads" />
<xs:element name="polls" minOccurs="0" maxOccurs="1" type="polls" />
More information about the jboss-svn-commits
mailing list