1 29 30 package com.caucho.config; 31 32 import com.caucho.config.types.RawString; 33 import com.caucho.util.L10N; 34 import com.caucho.xml.QName; 35 36 import org.w3c.dom.Node ; 37 38 import java.lang.reflect.Method ; 39 import java.util.logging.Logger ; 40 41 44 public class RawTextAttributeMarshal extends SetterAttributeStrategy { 45 private static final Logger log 46 = Logger.getLogger(RawTextAttributeMarshal.class.getName()); 47 private static final L10N L = new L10N(RawTextAttributeMarshal.class); 48 49 public RawTextAttributeMarshal(Method setter) 50 throws Exception 51 { 52 super(setter); 53 } 54 55 63 public void configure(NodeBuilder builder, 64 Object bean, 65 QName name, 66 Node node) 67 throws Exception 68 { 69 setAttribute(bean, name, new RawString(builder.configureRawStringNoTrim(node))); 71 } 72 } 73 | Popular Tags |