1 16 package test.typedesc; 17 18 import org.apache.axis.description.AttributeDesc; 19 import org.apache.axis.description.FieldDesc; 20 import org.apache.axis.description.TypeDesc; 21 import org.apache.axis.encoding.SimpleType; 22 23 import javax.xml.namespace.QName ; 24 25 public class SimpleBean2 implements java.io.Serializable { 26 27 public String a; 28 public String b; 29 30 private static TypeDesc typeDesc = new TypeDesc(SimpleBean2.class); 31 static { 32 FieldDesc fd = new AttributeDesc(); 33 fd.setFieldName("a"); 34 fd.setXmlName(new QName ("foo", "a")); 35 typeDesc.addFieldDesc(fd); 36 37 fd = new AttributeDesc(); 38 fd.setFieldName("b"); 39 fd.setXmlName(new QName ("foo", "b")); 40 typeDesc.addFieldDesc(fd); 41 } 42 public static TypeDesc getTypeDesc() { return typeDesc; } 43 44 public SimpleBean2() {} 45 46 public void setA(String value) { 47 } 48 49 public String getA() { 50 return null; 51 } 52 53 public void setB(String value) { 54 } 55 56 public String getB() { 57 return null; 58 } 59 } 60 | Popular Tags |