001    package org.hackystat.projectbrowser.page.projects;
002    
003    import java.io.Serializable;
004    import org.apache.wicket.IClusterable;
005    
006    /**
007     * Provides a model for the summary of projects and their info.
008     * 
009     * @author Philip Johnson.
010     * @author Randy Cox.
011     */
012    public class PropUriRowModel implements Serializable, IClusterable {
013    
014      /** For serialization. */
015      private static final long serialVersionUID = 1L;
016      /** Property Label. */
017      public String propertyLabel;
018      /** Property value. */
019      public String propertyValue;
020      /** URI Pattern 1. */
021      public String uriPattern1;
022      /** URI Pattern 2. */
023      public String uriPattern2;
024      /** URI Pattern 3. */
025      public String uriPattern3;
026    
027      /**
028       * Return property label.
029       * 
030       * @return the propertyLabel
031       */
032      public String getPropertyLabel() {
033        return propertyLabel;
034      }
035    
036      /**
037       * Set property label.
038       * 
039       * @param propertyLabel the propertyLabel to set
040       */
041      public void setPropertyLabel(String propertyLabel) {
042        this.propertyLabel = propertyLabel;
043      }
044    
045      /**
046       * Get property value.
047       * 
048       * @return the propertyValue
049       */
050      public String getPropertyValue() {
051        return propertyValue;
052      }
053    
054      /**
055       * Set property value.
056       * 
057       * @param propertyValue the propertyValue to set
058       */
059      public void setPropertyValue(String propertyValue) {
060        this.propertyValue = propertyValue;
061      }
062    
063      /**
064       * Get uri pattern.
065       * 
066       * @return the uriPattern1
067       */
068      public String getUriPattern1() {
069        return uriPattern1;
070      }
071    
072      /**
073       * Set uri pattern.
074       * 
075       * @param uriPattern1 the uriPattern1 to set
076       */
077      public void setUriPattern1(String uriPattern1) {
078        this.uriPattern1 = uriPattern1;
079      }
080    
081      /**
082       * Get uri pattern.
083       * 
084       * @return the uriPattern2
085       */
086      public String getUriPattern2() {
087        return uriPattern2;
088      }
089    
090      /**
091       * Set uri pattern.
092       * 
093       * @param uriPattern2 the uriPattern2 to set
094       */
095      public void setUriPattern2(String uriPattern2) {
096        this.uriPattern2 = uriPattern2;
097      }
098    
099      /**
100       * Get uri pattern.
101       * 
102       * @return the uriPattern3
103       */
104      public String getUriPattern3() {
105        return uriPattern3;
106      }
107    
108      /**
109       * Set uri pattern.
110       * 
111       * @param uriPattern3 the uriPattern3 to set
112       */
113      public void setUriPattern3(String uriPattern3) {
114        this.uriPattern3 = uriPattern3;
115      }
116    
117      /**
118       * Provide data as a string.
119       * 
120       * @return data in string format.
121       */
122      public String getString() {
123        StringBuffer result = new StringBuffer();
124        result.append("PropUriRow = ");
125        result.append(this.getPropertyLabel());
126        result.append(this.getPropertyValue());
127        result.append(this.getUriPattern1());
128        result.append(this.getUriPattern2());
129        result.append(this.getUriPattern3());
130        return result.toString();
131      }
132    }