1 16 package org.apache.axis.wsdl.toJava; 17 18 24 public class FactoryProperty { 25 private String name_; 26 private String value_; 27 28 public FactoryProperty() { 29 } 30 31 public String getName() { 32 return name_; 33 } 34 35 public String getValue() { 36 return value_; 37 } 38 39 public void setName(String string) { 40 name_ = string; 41 } 42 43 public void setValue(String string) { 44 value_ = string; 45 } 46 47 public String toString() { 48 return name_ + "=" + value_; 49 } 50 51 public boolean equals(Object rhs) { 52 if (rhs == null) { 53 return false; 54 } 55 else if (rhs instanceof String ) { 56 return ((String )rhs).equals(name_); 57 } 58 else if (rhs instanceof FactoryProperty) { 59 return ((FactoryProperty)rhs).equals(name_); 60 } 61 else { 62 return false; 63 } 64 } 65 66 } 67 | Popular Tags |