[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model ...
Christian Bauer
christian at hibernate.org
Thu Nov 15 09:19:37 EST 2007
User: cbauer
Date: 07/11/15 09:19:37
Modified: examples/wiki/src/main/org/jboss/seam/wiki/core/model
Node.java
Log:
Fixed duplicate results in tag display
Revision Changes Path
1.28 +7 -0 jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/Node.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Node.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/Node.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- Node.java 9 Nov 2007 15:08:25 -0000 1.27
+++ Node.java 15 Nov 2007 14:19:37 -0000 1.28
@@ -384,6 +384,13 @@
return tags;
}
+ public boolean isTagged(String tag) {
+ if (getTags() != null && getTags().length()>0) {
+ for (String s : getTagsSplit()) if (s.equals(tag)) return true;
+ }
+ return false;
+ }
+
public boolean isInstance(Class clazz) {
return clazz.isAssignableFrom(this.getClass());
}
More information about the jboss-cvs-commits
mailing list