1 10 package org.mmbase.datatypes.processors; 11 12 import org.mmbase.bridge.*; 13 import org.mmbase.datatypes.*; 14 import java.util.*; 15 import org.mmbase.util.logging.*; 16 17 24 25 public class NodeNumber implements Processor { 26 private static final Logger log = Logging.getLoggerInstance(FormatDateTime.class); 27 28 private static final long serialVersionUID = 1L; 29 30 public Object process(Node node, Field field, Object value) { 31 if (value == null) return null; 32 if (value instanceof Node) { 33 return "" + ((Node) value).getNumber(); 34 } 35 return value; 36 } 37 38 public String toString() { 39 return "node number"; 40 } 41 42 } 43 | Popular Tags |