KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > types > NamespaceConfigurationInner


1 /**
2  * NamespaceConfigurationInner.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.types;
9
10 public class NamespaceConfigurationInner implements java.io.Serializable JavaDoc {
11     private org.apache.axis.types.NCName prefix;
12
13     private java.lang.String JavaDoc uri;
14
15     public NamespaceConfigurationInner() {
16     }
17
18     public NamespaceConfigurationInner(
19            org.apache.axis.types.NCName prefix,
20            java.lang.String JavaDoc uri) {
21            this.prefix = prefix;
22            this.uri = uri;
23     }
24
25
26     /**
27      * Gets the prefix value for this NamespaceConfigurationInner.
28      *
29      * @return prefix
30      */

31     public org.apache.axis.types.NCName getPrefix() {
32         return prefix;
33     }
34
35
36     /**
37      * Sets the prefix value for this NamespaceConfigurationInner.
38      *
39      * @param prefix
40      */

41     public void setPrefix(org.apache.axis.types.NCName prefix) {
42         this.prefix = prefix;
43     }
44
45
46     /**
47      * Gets the uri value for this NamespaceConfigurationInner.
48      *
49      * @return uri
50      */

51     public java.lang.String JavaDoc getUri() {
52         return uri;
53     }
54
55
56     /**
57      * Sets the uri value for this NamespaceConfigurationInner.
58      *
59      * @param uri
60      */

61     public void setUri(java.lang.String JavaDoc uri) {
62         this.uri = uri;
63     }
64
65     private java.lang.Object JavaDoc __equalsCalc = null;
66     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
67         if (!(obj instanceof NamespaceConfigurationInner)) return false;
68         NamespaceConfigurationInner other = (NamespaceConfigurationInner) obj;
69         if (obj == null) return false;
70         if (this == obj) return true;
71         if (__equalsCalc != null) {
72             return (__equalsCalc == obj);
73         }
74         __equalsCalc = obj;
75         boolean _equals;
76         _equals = true &&
77             ((this.prefix==null && other.getPrefix()==null) ||
78              (this.prefix!=null &&
79               this.prefix.equals(other.getPrefix()))) &&
80             ((this.uri==null && other.getUri()==null) ||
81              (this.uri!=null &&
82               this.uri.equals(other.getUri())));
83         __equalsCalc = null;
84         return _equals;
85     }
86
87     private boolean __hashCodeCalc = false;
88     public synchronized int hashCode() {
89         if (__hashCodeCalc) {
90             return 0;
91         }
92         __hashCodeCalc = true;
93         int _hashCode = 1;
94         if (getPrefix() != null) {
95             _hashCode += getPrefix().hashCode();
96         }
97         if (getUri() != null) {
98             _hashCode += getUri().hashCode();
99         }
100         __hashCodeCalc = false;
101         return _hashCode;
102     }
103
104     // Type metadata
105
private static org.apache.axis.description.TypeDesc typeDesc =
106         new org.apache.axis.description.TypeDesc(NamespaceConfigurationInner.class, true);
107
108     static {
109         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "NamespaceConfigurationInner"));
110         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
111         elemField.setFieldName("prefix");
112         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "prefix"));
113         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "NCName"));
114         elemField.setNillable(false);
115         typeDesc.addFieldDesc(elemField);
116         elemField = new org.apache.axis.description.ElementDesc();
117         elemField.setFieldName("uri");
118         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "uri"));
119         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
120         elemField.setNillable(false);
121         typeDesc.addFieldDesc(elemField);
122     }
123
124     /**
125      * Return type metadata object
126      */

127     public static org.apache.axis.description.TypeDesc getTypeDesc() {
128         return typeDesc;
129     }
130
131     /**
132      * Get Custom Serializer
133      */

134     public static org.apache.axis.encoding.Serializer getSerializer(
135            java.lang.String JavaDoc mechType,
136            java.lang.Class JavaDoc _javaType,
137            javax.xml.namespace.QName JavaDoc _xmlType) {
138         return
139           new org.apache.axis.encoding.ser.BeanSerializer(
140             _javaType, _xmlType, typeDesc);
141     }
142
143     /**
144      * Get Custom Deserializer
145      */

146     public static org.apache.axis.encoding.Deserializer getDeserializer(
147            java.lang.String JavaDoc mechType,
148            java.lang.Class JavaDoc _javaType,
149            javax.xml.namespace.QName JavaDoc _xmlType) {
150         return
151           new org.apache.axis.encoding.ser.BeanDeserializer(
152             _javaType, _xmlType, typeDesc);
153     }
154
155 }
156
Popular Tags