1 /***
2 * JobURN.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
6 */
7
8 package org.astrogrid.jes.beans.v1.axis.executionrecord;
9
10 public class JobURN implements java.io.Serializable, org.apache.axis.encoding.SimpleType {
11 private org.apache.axis.types.URI value;
12
13 public JobURN() {
14 }
15
16 public JobURN(org.apache.axis.types.URI value) {
17 this.value = value;
18 }
19
20
21 public JobURN(java.lang.String value) {
22 try {
23 this.value = new org.apache.axis.types.URI(value);
24 }
25 catch (org.apache.axis.types.URI.MalformedURIException mue) {
26 this.value = new org.apache.axis.types.URI();
27 }
28 }
29
30
31 public java.lang.String toString() {
32 return value == null ? null : value.toString();
33 }
34
35 public org.apache.axis.types.URI getValue() {
36 return value;
37 }
38
39 public void setValue(org.apache.axis.types.URI value) {
40 this.value = value;
41 }
42
43 private java.lang.Object __equalsCalc = null;
44 public synchronized boolean equals(java.lang.Object obj) {
45 if (!(obj instanceof JobURN)) return false;
46 JobURN other = (JobURN) obj;
47 if (obj == null) return false;
48 if (this == obj) return true;
49 if (__equalsCalc != null) {
50 return (__equalsCalc == obj);
51 }
52 __equalsCalc = obj;
53 boolean _equals;
54 _equals = true &&
55 ((this.value==null && other.getValue()==null) ||
56 (this.value!=null &&
57 this.value.equals(other.getValue())));
58 __equalsCalc = null;
59 return _equals;
60 }
61
62 private boolean __hashCodeCalc = false;
63 public synchronized int hashCode() {
64 if (__hashCodeCalc) {
65 return 0;
66 }
67 __hashCodeCalc = true;
68 int _hashCode = 1;
69 if (getValue() != null) {
70 _hashCode += getValue().hashCode();
71 }
72 __hashCodeCalc = false;
73 return _hashCode;
74 }
75
76
77 private static org.apache.axis.description.TypeDesc typeDesc =
78 new org.apache.axis.description.TypeDesc(JobURN.class);
79
80 static {
81 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "jobURN"));
82 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
83 elemField.setFieldName("value");
84 elemField.setXmlName(new javax.xml.namespace.QName("", "value"));
85 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyURI"));
86 typeDesc.addFieldDesc(elemField);
87 }
88
89 /***
90 * Return type metadata object
91 */
92 public static org.apache.axis.description.TypeDesc getTypeDesc() {
93 return typeDesc;
94 }
95
96 /***
97 * Get Custom Serializer
98 */
99 public static org.apache.axis.encoding.Serializer getSerializer(
100 java.lang.String mechType,
101 java.lang.Class _javaType,
102 javax.xml.namespace.QName _xmlType) {
103 return
104 new org.apache.axis.encoding.ser.SimpleSerializer(
105 _javaType, _xmlType, typeDesc);
106 }
107
108 /***
109 * Get Custom Deserializer
110 */
111 public static org.apache.axis.encoding.Deserializer getDeserializer(
112 java.lang.String mechType,
113 java.lang.Class _javaType,
114 javax.xml.namespace.QName _xmlType) {
115 return
116 new org.apache.axis.encoding.ser.SimpleDeserializer(
117 _javaType, _xmlType, typeDesc);
118 }
119
120 }