1 8 9 package mx4j.tools.remote.soap.axis.ser; 10 11 import javax.management.Attribute ; 12 13 import org.xml.sax.SAXException ; 14 15 18 public class AttributeDeser extends AxisDeserializer 19 { 20 private String attributeName; 21 private Object attributeValue; 22 23 public void onSetChildValue(Object value, Object hint) throws SAXException  24 { 25 if (AttributeSer.NAME.equals(hint)) 26 attributeName = (String )value; 27 else if (AttributeSer.VALUE.equals(hint)) 28 attributeValue = value; 29 } 30 31 protected Object createObject() throws SAXException  32 { 33 return new Attribute (attributeName, attributeValue); 34 } 35 } 36 | Popular Tags |