1 8 9 package org.uddi4j.response; 10 11 import org.uddi4j.UDDIElement; 12 import org.uddi4j.UDDIException; 13 import org.w3c.dom.Element ; 14 15 38 public class CompletionStatus extends UDDIElement { 39 public static final String UDDI_TAG = "completionStatus"; 40 41 public static final String COMPLETE = "status:complete"; 42 public static final String TOKEY_INCOMPLETE= "status:toKey_incomplete"; 43 public static final String FROMKEY_INCOMPLETE = "status:fromKey_incomplete"; 44 45 protected Element base = null; 46 47 String text = null; 48 49 50 56 57 public CompletionStatus() { 58 } 59 60 61 71 72 public CompletionStatus(Element base) throws UDDIException { 73 super(base); 74 text = getText(base); 75 } 76 77 82 public CompletionStatus(String status) { 83 setText(status); 84 } 85 86 public String getText() { 87 return text; 88 } 89 90 public void setText(String status) { 91 text = status; 92 } 93 94 103 104 public void saveToXML(Element parent) { 105 base = parent.getOwnerDocument().createElement(UDDI_TAG); 106 107 if (text!=null) { 108 base.appendChild(parent.getOwnerDocument().createTextNode(text)); 109 } 110 parent.appendChild(base); 111 } 112 } 113 | Popular Tags |