1 16 package org.apache.axis.wsdl.toJava; 17 18 29 public class NamespaceSelector { 30 private String namespace_ = ""; 31 32 public NamespaceSelector() {} 33 public NamespaceSelector(String namespace) { 34 namespace_ = namespace; 35 } 36 37 public void setNamespace(String value) { 38 namespace_ = value; 39 } 40 41 public String getNamespace() { 42 return namespace_; 43 } 44 45 public String toString() { 46 if (namespace_ != null) { 47 return "namespace=" + namespace_; 48 } 49 else { 50 return ""; 51 } 52 } 53 54 public boolean equals(Object value) { 55 boolean isEqual = false; 56 if (value == null) { 57 isEqual = false; 58 } 59 else if (value instanceof String ) { 60 isEqual = ((String )value).equals(namespace_); 61 } 62 else if (value instanceof NamespaceSelector) { 63 isEqual = ((NamespaceSelector)value).namespace_.equals(namespace_); 64 } 65 return isEqual; 66 } 67 } 68 | Popular Tags |