You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2003/09/12 19:34:01 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication Label.java
egli 2003/09/12 10:34:01
Modified: src/java/org/apache/lenya/cms/publication Label.java
Log:
Added a method to set (i.e. change) the label.
Completed all the doc strings.
Revision Changes Path
1.6 +21 -12 cocoon-lenya/src/java/org/apache/lenya/cms/publication/Label.java
Index: Label.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/Label.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Label.java 23 Jul 2003 13:21:11 -0000 1.5
+++ Label.java 12 Sep 2003 17:34:01 -0000 1.6
@@ -56,9 +56,9 @@
package org.apache.lenya.cms.publication;
/**
- * DOCUMENT ME!
+ * The Label class encapsulates a string label and a associated language.
*
- * @author $author$
+ * @author Christian Egli
* @version $Revision$
*/
public class Label {
@@ -66,9 +66,9 @@
private String language = null;
/**
- * Creates a new Label object.
+ * Creates a new Label object with no language.
*
- * @param label DOCUMENT ME!
+ * @param label the actual label
*/
public Label(String label) {
this(label, null);
@@ -77,8 +77,8 @@
/**
* Creates a new Label object.
*
- * @param label DOCUMENT ME!
- * @param language DOCUMENT ME!
+ * @param label the actual label
+ * @param language the language
*/
public Label(String label, String language) {
this.label = label;
@@ -86,19 +86,28 @@
}
/**
- * DOCUMENT ME!
+ * Get the actual label of the Label object
*
- * @return DOCUMENT ME!
+ * @return the actual label as a String
*/
public String getLabel() {
return label;
}
/**
- * DOCUMENT ME!
+ * Set the actual label of the label object.
+ *
+ * @param label
+ */
+ public void setLabel(String label) {
+ this.label = label;
+ }
+ /**
+ * Get the language of this Label object
*
- * @return DOCUMENT ME!
+ * @return the language
*/
+
public String getLanguage() {
return language;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org