1 25 package com.scalagent.ksoap; 26 27 import com.scalagent.ksoap.marshal.Marshal; 28 29 public class SoapPrimitive { 30 31 String namespace; 32 String name; 33 Class clazz; 34 Marshal marshal; 35 36 public SoapPrimitive(String namespace, 37 String name, 38 Class clazz, 39 Marshal marshal) { 40 this.namespace = namespace; 41 this.name = name; 42 this.clazz = clazz; 43 this.marshal = marshal; 44 } 45 46 public boolean equals(Object o) { 47 if (!(o instanceof SoapPrimitive)) return false; 48 SoapPrimitive p = (SoapPrimitive) o; 49 return name.equals(p.name) && namespace.equals(p.namespace); 50 } 51 52 public int hashCode() { 53 return name.hashCode() ^ namespace.hashCode(); 54 } 55 56 public String getNameSpace() { 57 return namespace; 58 } 59 60 public String getName() { 61 return name; 62 } 63 64 public String getClassName() { 65 return clazz.getName(); 66 } 67 68 public Marshal getMarshal() { 69 return marshal; 70 } 71 72 public String toString() { 73 return "SoapPrimitive(" + 74 namespace + "," + 75 name + "," + 76 clazz + "," + 77 marshal + ")"; 78 } 79 } 80 81 | Popular Tags |