1 29 30 package com.caucho.config.jaxb; 31 32 import com.caucho.config.ConfigException; 33 import com.caucho.config.NodeBuilder; 34 import com.caucho.config.TypeStrategy; 35 import com.caucho.util.L10N; 36 37 import org.w3c.dom.Node ; 38 39 42 public class StringType extends TypeStrategy { 43 protected static final L10N L = new L10N(StringType.class); 44 45 public static final StringType TYPE = new StringType(); 46 47 private StringType() 48 { 49 } 50 51 54 public String getTypeName() 55 { 56 return getClass().getName(); 57 } 58 59 66 public Object configure(NodeBuilder builder, Node node, Object parent) 67 throws ConfigException 68 { 69 return builder.evalString(node.getTextContent()); 70 } 71 } 72 | Popular Tags |