1 22 package org.jboss.test.webservice.jbws414; 23 24 public class RefType implements Interface 25 { 26 private String value; 27 28 public RefType() 29 { 30 } 31 32 public RefType(String value) 33 { 34 this.value = value; 35 } 36 37 public String getValue() 38 { 39 return value; 40 } 41 42 public void setValue(String value) 43 { 44 this.value = value; 45 } 46 47 public boolean equals(Object obj) 48 { 49 if (obj instanceof RefType == false) 50 return false; 51 52 RefType other = (RefType)obj; 53 return value != null && value.equals(other.value) || value == null && other.value == null; 54 } 55 56 public String toString() 57 { 58 return "[" + value + "]"; 59 } 60 } 61 | Popular Tags |