1 8 9 package org.uddi4j.datatype.business; 10 11 import org.uddi4j.UDDIElement; 12 import org.uddi4j.UDDIException; 13 import org.w3c.dom.Element ; 14 15 33 public class PersonName extends UDDIElement { 34 public static final String UDDI_TAG = "personName"; 35 36 protected Element base = null; 37 38 String text = null; 39 40 46 public PersonName() { 47 } 48 49 54 public PersonName(String value) { 55 setText(value); 56 } 57 58 68 public PersonName(Element base) throws UDDIException { 69 super(base); 71 text = getText(base); 72 } 73 74 public void setText(String s) { 75 text = s; 76 } 77 78 public String getText() { 79 return text; 80 } 81 82 91 public void saveToXML(Element parent) { 92 base = parent.getOwnerDocument().createElement(UDDI_TAG); 93 if (text!=null) { 95 base.appendChild(parent.getOwnerDocument().createTextNode(text)); 96 } 97 parent.appendChild(base); 98 } 99 } 100 | Popular Tags |