1 9 10 package org.uddi4j.util; 11 12 import org.uddi4j.UDDIElement; 13 import org.uddi4j.UDDIException; 14 import org.w3c.dom.Element ; 15 16 40 public class FindQualifier extends UDDIElement { 41 public static final String UDDI_TAG = "findQualifier"; 42 43 46 public static final String exactNameMatch = "exactNameMatch"; 47 public static final String caseSensitiveMatch = "caseSensitiveMatch"; 48 public static final String sortByNameAsc = "sortByNameAsc"; 49 public static final String sortByNameDesc = "sortByNameDesc"; 50 public static final String sortByDateAsc = "sortByDateAsc"; 51 public static final String sortByDateDesc = "sortByDateDesc"; 52 public static final String orLikeKeys = "orLikeKeys"; 54 public static final String orAllKeys = "orAllKeys"; 55 public static final String combineCategoryBags = "combineCategoryBags"; 56 public static final String serviceSubset = "serviceSubset"; 57 public static final String andAllKeys = "andAllKeys"; 58 59 62 63 protected Element base = null; 64 65 String text = null; 66 67 73 public FindQualifier() { 74 } 75 76 81 public FindQualifier(String value) { 82 setText(value); 83 } 84 85 95 public FindQualifier(Element base) throws UDDIException { 96 super(base); 98 text = getText(base); 99 } 100 101 public void setText(String s) { 102 text = s; 103 } 104 105 public String getText() { 106 return text; 107 } 108 109 118 public void saveToXML(Element parent) { 119 base = parent.getOwnerDocument().createElement(UDDI_TAG); 120 if (text!=null) { 122 base.appendChild(parent.getOwnerDocument().createTextNode(text)); 123 } 124 parent.appendChild(base); 125 } 126 } 127 | Popular Tags |