1 29 30 package com.caucho.jaxb.skeleton; 31 32 import javax.xml.stream.XMLStreamException; 33 import java.io.*; 34 35 38 public class StringProperty extends CDataProperty { 39 public static final StringProperty PROPERTY = new StringProperty(); 40 41 protected String write(Object in) 42 throws IOException, XMLStreamException 43 { 44 return in == null ? null : in.toString(); 45 } 46 47 protected Object read(String in) 48 throws IOException, XMLStreamException 49 { 50 return in; 51 } 52 53 public String getSchemaType() 54 { 55 return "xsd:string"; 56 } 57 } 58 | Popular Tags |