1 16 package test.encoding; 17 18 import org.apache.axis.description.AttributeDesc; 19 import org.apache.axis.description.ElementDesc; 20 import org.apache.axis.description.FieldDesc; 21 import org.apache.axis.description.TypeDesc; 22 23 import javax.xml.namespace.QName ; 24 25 28 public class ParentBean { 29 private float parentFloat; private String parentStr; 32 public float getParentFloat() { 33 return parentFloat; 34 } 35 36 public void setParentFloat(float parentFloat) { 37 this.parentFloat = parentFloat; 38 } 39 40 public String getParentStr() { 41 return parentStr; 42 } 43 44 public void setParentStr(String parentStr) { 45 this.parentStr = parentStr; 46 } 47 48 private static TypeDesc typeDesc; 50 51 static { 52 typeDesc = new TypeDesc(ParentBean.class); 53 FieldDesc field; 54 55 field = new AttributeDesc(); 57 field.setFieldName("parentFloat"); 58 field.setXmlName(new QName ("", "parentAttr")); 59 typeDesc.addFieldDesc(field); 60 61 field = new ElementDesc(); 63 field.setFieldName("parentStr"); 64 field.setXmlName(new QName ("", "parentElement")); 65 typeDesc.addFieldDesc(field); 66 } 67 68 public static TypeDesc getTypeDesc() 69 { 70 return typeDesc; 71 } 72 } 73 | Popular Tags |