1 13 14 package info.magnolia.module.workflow.beancoder; 15 16 import openwfe.org.jcr.Node; 17 import openwfe.org.jcr.beancoder.JcrBeanCoder; 18 import openwfe.org.engine.workitem.StringAttribute; 19 20 21 32 public class OwfeJcrBeanCoder extends JcrBeanCoder 33 { 34 public OwfeJcrBeanCoder 35 (final String ns, final Node startNode) 36 { 37 super(ns, startNode); 38 } 39 40 public OwfeJcrBeanCoder 41 (final String ns, final Node startNode, final String beanNodeName) 42 { 43 super(ns, startNode, beanNodeName); 44 } 45 46 protected Object [] asPropertyMapEntry(Object key, Object value) { 47 if ((key instanceof StringAttribute) && isSafeForAnItemName(key.toString())) 48 if(value instanceof StringAttribute)return new Object [] { key.toString(), value.toString()}; 49 return super.asPropertyMapEntry(key, value); 50 } 51 } 52 | Popular Tags |