1 17 package org.apache.ws.jaxme.xs.impl; 18 19 import org.apache.ws.jaxme.xs.XSAppinfo; 20 import org.apache.ws.jaxme.xs.XSObject; 21 import org.apache.ws.jaxme.xs.xml.XsAnyURI; 22 import org.apache.ws.jaxme.xs.xml.XsEAppinfo; 23 24 25 28 public class XSAppinfoImpl extends XSObjectImpl implements XSAppinfo { 29 31 protected XSAppinfoImpl(XSObject pParent, XsEAppinfo pBaseObject) { 32 super(pParent, pBaseObject); 33 } 34 35 public XsAnyURI getSource() { 36 return ((XsEAppinfo) getXsObject()).getSource(); 37 } 38 39 public Object [] getChilds() { 40 return ((XsEAppinfo) getXsObject()).getChilds(); 41 } 42 43 public String getText() { 44 StringBuffer sb = new StringBuffer (); 45 Object [] childs = ((XsEAppinfo) getXsObject()).getChilds(); 46 for (int i = 0; i < childs.length; i++) { 47 if (childs[i] instanceof String ) { 48 sb.append((String ) childs[i]); 49 } 50 } 51 return sb.toString(); 52 } 53 } 54 | Popular Tags |