1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class ModifyRegistration implements java.io.Serializable {
11 private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
12 private oasis.names.tc.wsrp.v1.types.RegistrationData registrationData;
13
14 public ModifyRegistration() {
15 }
16
17 public ModifyRegistration(
18 oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
19 oasis.names.tc.wsrp.v1.types.RegistrationData registrationData) {
20 this.registrationContext = registrationContext;
21 this.registrationData = registrationData;
22 }
23
24
25
30 public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
31 return registrationContext;
32 }
33
34
35
40 public void setRegistrationContext(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
41 this.registrationContext = registrationContext;
42 }
43
44
45
50 public oasis.names.tc.wsrp.v1.types.RegistrationData getRegistrationData() {
51 return registrationData;
52 }
53
54
55
60 public void setRegistrationData(oasis.names.tc.wsrp.v1.types.RegistrationData registrationData) {
61 this.registrationData = registrationData;
62 }
63
64 private java.lang.Object __equalsCalc = null;
65 public synchronized boolean equals(java.lang.Object obj) {
66 if (!(obj instanceof ModifyRegistration)) return false;
67 ModifyRegistration other = (ModifyRegistration) obj;
68 if (obj == null) return false;
69 if (this == obj) return true;
70 if (__equalsCalc != null) {
71 return (__equalsCalc == obj);
72 }
73 __equalsCalc = obj;
74 boolean _equals;
75 _equals = true &&
76 ((this.registrationContext==null && other.getRegistrationContext()==null) ||
77 (this.registrationContext!=null &&
78 this.registrationContext.equals(other.getRegistrationContext()))) &&
79 ((this.registrationData==null && other.getRegistrationData()==null) ||
80 (this.registrationData!=null &&
81 this.registrationData.equals(other.getRegistrationData())));
82 __equalsCalc = null;
83 return _equals;
84 }
85
86 private boolean __hashCodeCalc = false;
87 public synchronized int hashCode() {
88 if (__hashCodeCalc) {
89 return 0;
90 }
91 __hashCodeCalc = true;
92 int _hashCode = 1;
93 if (getRegistrationContext() != null) {
94 _hashCode += getRegistrationContext().hashCode();
95 }
96 if (getRegistrationData() != null) {
97 _hashCode += getRegistrationData().hashCode();
98 }
99 __hashCodeCalc = false;
100 return _hashCode;
101 }
102
103 private static org.apache.axis.description.TypeDesc typeDesc =
105 new org.apache.axis.description.TypeDesc(ModifyRegistration.class, true);
106
107 static {
108 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">modifyRegistration"));
109 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
110 elemField.setFieldName("registrationContext");
111 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationContext"));
112 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext"));
113 elemField.setNillable(true);
114 typeDesc.addFieldDesc(elemField);
115 elemField = new org.apache.axis.description.ElementDesc();
116 elemField.setFieldName("registrationData");
117 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationData"));
118 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationData"));
119 typeDesc.addFieldDesc(elemField);
120 }
121
122
125 public static org.apache.axis.description.TypeDesc getTypeDesc() {
126 return typeDesc;
127 }
128
129
132 public static org.apache.axis.encoding.Serializer getSerializer(
133 java.lang.String mechType,
134 java.lang.Class _javaType,
135 javax.xml.namespace.QName _xmlType) {
136 return
137 new org.apache.axis.encoding.ser.BeanSerializer(
138 _javaType, _xmlType, typeDesc);
139 }
140
141
144 public static org.apache.axis.encoding.Deserializer getDeserializer(
145 java.lang.String mechType,
146 java.lang.Class _javaType,
147 javax.xml.namespace.QName _xmlType) {
148 return
149 new org.apache.axis.encoding.ser.BeanDeserializer(
150 _javaType, _xmlType, typeDesc);
151 }
152
153 }
154