Source Code Cross Referenced for PortletContext.java in  » Portal » liferay-portal-4.4.2 » oasis » names » tc » wsrp » v1 » types » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » oasis.names.tc.wsrp.v1.types 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * PortletContext.java
003:         *
004:         * This file was auto-generated from WSDL
005:         * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
006:         */package oasis.names.tc.wsrp.v1.types;
007:
008:        public class PortletContext implements  java.io.Serializable {
009:            private java.lang.String portletHandle;
010:            private byte[] portletState;
011:            private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
012:
013:            public PortletContext() {
014:            }
015:
016:            public PortletContext(
017:                    oasis.names.tc.wsrp.v1.types.Extension[] extensions,
018:                    java.lang.String portletHandle, byte[] portletState) {
019:                this .portletHandle = portletHandle;
020:                this .portletState = portletState;
021:                this .extensions = extensions;
022:            }
023:
024:            /**
025:             * Gets the portletHandle value for this PortletContext.
026:             * 
027:             * @return portletHandle
028:             */
029:            public java.lang.String getPortletHandle() {
030:                return portletHandle;
031:            }
032:
033:            /**
034:             * Sets the portletHandle value for this PortletContext.
035:             * 
036:             * @param portletHandle
037:             */
038:            public void setPortletHandle(java.lang.String portletHandle) {
039:                this .portletHandle = portletHandle;
040:            }
041:
042:            /**
043:             * Gets the portletState value for this PortletContext.
044:             * 
045:             * @return portletState
046:             */
047:            public byte[] getPortletState() {
048:                return portletState;
049:            }
050:
051:            /**
052:             * Sets the portletState value for this PortletContext.
053:             * 
054:             * @param portletState
055:             */
056:            public void setPortletState(byte[] portletState) {
057:                this .portletState = portletState;
058:            }
059:
060:            /**
061:             * Gets the extensions value for this PortletContext.
062:             * 
063:             * @return extensions
064:             */
065:            public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
066:                return extensions;
067:            }
068:
069:            /**
070:             * Sets the extensions value for this PortletContext.
071:             * 
072:             * @param extensions
073:             */
074:            public void setExtensions(
075:                    oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
076:                this .extensions = extensions;
077:            }
078:
079:            public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
080:                return this .extensions[i];
081:            }
082:
083:            public void setExtensions(int i,
084:                    oasis.names.tc.wsrp.v1.types.Extension _value) {
085:                this .extensions[i] = _value;
086:            }
087:
088:            private java.lang.Object __equalsCalc = null;
089:
090:            public synchronized boolean equals(java.lang.Object obj) {
091:                if (!(obj instanceof  PortletContext))
092:                    return false;
093:                PortletContext other = (PortletContext) obj;
094:                if (obj == null)
095:                    return false;
096:                if (this  == obj)
097:                    return true;
098:                if (__equalsCalc != null) {
099:                    return (__equalsCalc == obj);
100:                }
101:                __equalsCalc = obj;
102:                boolean _equals;
103:                _equals = true
104:                        && ((this .portletHandle == null && other
105:                                .getPortletHandle() == null) || (this .portletHandle != null && this .portletHandle
106:                                .equals(other.getPortletHandle())))
107:                        && ((this .portletState == null && other
108:                                .getPortletState() == null) || (this .portletState != null && java.util.Arrays
109:                                .equals(this .portletState, other
110:                                        .getPortletState())))
111:                        && ((this .extensions == null && other.getExtensions() == null) || (this .extensions != null && java.util.Arrays
112:                                .equals(this .extensions, other.getExtensions())));
113:                __equalsCalc = null;
114:                return _equals;
115:            }
116:
117:            private boolean __hashCodeCalc = false;
118:
119:            public synchronized int hashCode() {
120:                if (__hashCodeCalc) {
121:                    return 0;
122:                }
123:                __hashCodeCalc = true;
124:                int _hashCode = 1;
125:                if (getPortletHandle() != null) {
126:                    _hashCode += getPortletHandle().hashCode();
127:                }
128:                if (getPortletState() != null) {
129:                    for (int i = 0; i < java.lang.reflect.Array
130:                            .getLength(getPortletState()); i++) {
131:                        java.lang.Object obj = java.lang.reflect.Array.get(
132:                                getPortletState(), i);
133:                        if (obj != null && !obj.getClass().isArray()) {
134:                            _hashCode += obj.hashCode();
135:                        }
136:                    }
137:                }
138:                if (getExtensions() != null) {
139:                    for (int i = 0; i < java.lang.reflect.Array
140:                            .getLength(getExtensions()); i++) {
141:                        java.lang.Object obj = java.lang.reflect.Array.get(
142:                                getExtensions(), i);
143:                        if (obj != null && !obj.getClass().isArray()) {
144:                            _hashCode += obj.hashCode();
145:                        }
146:                    }
147:                }
148:                __hashCodeCalc = false;
149:                return _hashCode;
150:            }
151:
152:            // Type metadata
153:            private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
154:                    PortletContext.class, true);
155:
156:            static {
157:                typeDesc.setXmlType(new javax.xml.namespace.QName(
158:                        "urn:oasis:names:tc:wsrp:v1:types", "PortletContext"));
159:                org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
160:                elemField.setFieldName("portletHandle");
161:                elemField.setXmlName(new javax.xml.namespace.QName(
162:                        "urn:oasis:names:tc:wsrp:v1:types", "portletHandle"));
163:                elemField.setXmlType(new javax.xml.namespace.QName(
164:                        "http://www.w3.org/2001/XMLSchema", "string"));
165:                typeDesc.addFieldDesc(elemField);
166:                elemField = new org.apache.axis.description.ElementDesc();
167:                elemField.setFieldName("portletState");
168:                elemField.setXmlName(new javax.xml.namespace.QName(
169:                        "urn:oasis:names:tc:wsrp:v1:types", "portletState"));
170:                elemField.setXmlType(new javax.xml.namespace.QName(
171:                        "http://www.w3.org/2001/XMLSchema", "base64Binary"));
172:                elemField.setMinOccurs(0);
173:                typeDesc.addFieldDesc(elemField);
174:                elemField = new org.apache.axis.description.ElementDesc();
175:                elemField.setFieldName("extensions");
176:                elemField.setXmlName(new javax.xml.namespace.QName(
177:                        "urn:oasis:names:tc:wsrp:v1:types", "extensions"));
178:                elemField.setXmlType(new javax.xml.namespace.QName(
179:                        "urn:oasis:names:tc:wsrp:v1:types", "Extension"));
180:                elemField.setMinOccurs(0);
181:                typeDesc.addFieldDesc(elemField);
182:            }
183:
184:            /**
185:             * Return type metadata object
186:             */
187:            public static org.apache.axis.description.TypeDesc getTypeDesc() {
188:                return typeDesc;
189:            }
190:
191:            /**
192:             * Get Custom Serializer
193:             */
194:            public static org.apache.axis.encoding.Serializer getSerializer(
195:                    java.lang.String mechType, java.lang.Class _javaType,
196:                    javax.xml.namespace.QName _xmlType) {
197:                return new org.apache.axis.encoding.ser.BeanSerializer(
198:                        _javaType, _xmlType, typeDesc);
199:            }
200:
201:            /**
202:             * Get Custom Deserializer
203:             */
204:            public static org.apache.axis.encoding.Deserializer getDeserializer(
205:                    java.lang.String mechType, java.lang.Class _javaType,
206:                    javax.xml.namespace.QName _xmlType) {
207:                return new org.apache.axis.encoding.ser.BeanDeserializer(
208:                        _javaType, _xmlType, typeDesc);
209:            }
210:
211:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.