You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/08/07 14:14:49 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/ac Item.java AbstractItem.java
andreas 2003/08/07 05:14:49
Modified: src/java/org/apache/lenya/cms/ac Item.java AbstractItem.java
Log:
made isValidId() static and removed it from the Item interface
Revision Changes Path
1.5 +1 -8 cocoon-lenya/src/java/org/apache/lenya/cms/ac/Item.java
Index: Item.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ac/Item.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Item.java 23 Jul 2003 13:21:16 -0000 1.4
+++ Item.java 7 Aug 2003 12:14:49 -0000 1.5
@@ -98,13 +98,6 @@
void setDescription(String description);
/**
- * Checks if a string is a valid ID.
- * @param id The string to test.
- * @return A boolean value.
- */
- boolean isValidId(String id);
-
- /**
* Sets the configuration directory of this item.
* @param configurationDirectory The configuration directory.
*/
1.3 +2 -2 cocoon-lenya/src/java/org/apache/lenya/cms/ac/AbstractItem.java
Index: AbstractItem.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ac/AbstractItem.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AbstractItem.java 7 Jul 2003 10:05:09 -0000 1.2
+++ AbstractItem.java 7 Aug 2003 12:14:49 -0000 1.3
@@ -140,7 +140,7 @@
* @param id The string to test.
* @return A boolean value.
*/
- public boolean isValidId(String id) {
+ public static boolean isValidId(String id) {
return id != null && id.matches("\\w+");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org