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