Author: michiel
Date: 2009-05-29 15:37:26 +0200 (Fri, 29 May 2009)
New Revision: 35519
Modified:
mmbase/trunk/src/org/mmbase/datatypes/NodeDataType.java
Log:
logging only
Modified: mmbase/trunk/src/org/mmbase/datatypes/NodeDataType.java
===================================================================
--- mmbase/trunk/src/org/mmbase/datatypes/NodeDataType.java 2009-05-29
13:36:41 UTC (rev 35518)
+++ mmbase/trunk/src/org/mmbase/datatypes/NodeDataType.java 2009-05-29
13:37:26 UTC (rev 35519)
@@ -122,18 +122,26 @@
protected boolean simpleValid(Object v, Node node, Field field) {
if (getValue().equals(Boolean.TRUE)) {
if (v != null) {
- if (v instanceof String) {
+ if (v instanceof CharSequence) {
Cloud cloud = getCloud(node, field);
- return cloud != null && cloud.hasNode((String)v);
+ boolean res = cloud != null &&
cloud.hasNode(v.toString());
+ if (! res) {
+ log.warn("The cloud " + cloud + " does not have a
node " + v);
+ }
+ return res;
} else if (v instanceof Number) {
int num = ((Number)v).intValue();
if (num < 0) return false;
Cloud cloud = getCloud(node, field);
- return cloud != null && cloud.hasNode(num);
+ boolean res = cloud != null && cloud.hasNode(num);
+ if (! res) {
+ log.warn("The cloud " + cloud + " does not have a
node " + v);
+ }
+ return res;
} else if (v instanceof Node) {
return true;
} else {
- //log.info("Not valid because node value is a " +
v.getClass());
+ log.debug("Not valid because node value is a " +
v.getClass());
return false;
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs