Java Doc for SimpleWebServiceParameter.java in  » Portal » Open-Portal » com » sun » portal » providers » simplewebservice » 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 » Open Portal » com.sun.portal.providers.simplewebservice 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.providers.simplewebservice.SimpleWebServiceParameter

SimpleWebServiceParameter
public class SimpleWebServiceParameter (Code)
The SimpleWebServiceParameter class holds the meta-data as well as the data itself for a single input/output parameter for a web service method as read from the defaults or the servlet request.

The input/output parameters for a web service can be primitive or complex (embedded Javabean).

In case of a complex type, the 'class' member variable used is "XList.class" and the value is an instance of XList. An instance of XList holds a list of SimpleWebServiceParameters.

The default SimpleWebServiceParameter Constructor takes either an XList instance or the String representation of the primitive type.

In the case of primitive types, no validation is performed at the time of construction to check if the String value provided is legal or not. This String value can be retrieved using the method getFormValue() and can be used to display to the user the values entered in the form or in the defaults.

The String value that has been converted to the correct primitive object can be obtained using the getValue() method. This method throws an IllegalParameterException if the conversion of the String to the correct format fails.




Constructor Summary
public  SimpleWebServiceParameter(ParameterDescriptor desc, XList value)
     Constructor that uses a ParameterDescriptor as the meta-data information and the instance of XList object for the member variable value.
public  SimpleWebServiceParameter(ParameterDescriptor desc, String strValue)
     Constructor that uses a ParameterDescriptor as the meta-data information and a String as the value read from defaults or from the input form.

Method Summary
public  StringgetArrayTypeName()
     Sets the parameter to represent an array.
public  StringgetFullName()
     Returns the full name of instance with parent hierarchy prepended with underscore.

If the instance is one of the top level paraemeters, it returns the name of the instance.

public  StringgetName()
     Gets the name of the parameter.
public  StringgetStrValue()
     Returns the string representation of the value as entered through the constructor.
public  ClassgetType()
     Gets the type of the parameter.
public  StringgetTypeHint()
    
public  ObjectgetValue()
     Gets the value of the paramerter.

For primitive types, this method converts the String value to the correct Class type and returns it.

public  booleanisArrayType()
     Determines if the parameter is representing an array.
public  booleanisRepeatable()
    
public  booleanisSimpleType()
     Determines if the parameter is representing a simple type.
public  booleanisSimpleTypeArray()
     Determines if the parameter is representing a simple type array.
public  StringtoString()
     Returns the string representation of the parameter.


Constructor Detail
SimpleWebServiceParameter
public SimpleWebServiceParameter(ParameterDescriptor desc, XList value)(Code)
Constructor that uses a ParameterDescriptor as the meta-data information and the instance of XList object for the member variable value.
Parameters:
  desc - the ParameterDescriptor
Parameters:
  value - value of the SimpleWebServiceParameter



SimpleWebServiceParameter
public SimpleWebServiceParameter(ParameterDescriptor desc, String strValue)(Code)
Constructor that uses a ParameterDescriptor as the meta-data information and a String as the value read from defaults or from the input form.
Parameters:
  desc - the ParameterDescriptor
Parameters:
  strValue - string value of the SimpleWebServiceParameter




Method Detail
getArrayTypeName
public String getArrayTypeName()(Code)
Sets the parameter to represent an array.
See Also:   SimpleWebServiceParameter.isArrayType



getFullName
public String getFullName()(Code)
Returns the full name of instance with parent hierarchy prepended with underscore.

If the instance is one of the top level paraemeters, it returns the name of the instance. If the instance is a a member of complex type (embedded Javabean), the method returns the name prepended with the parent's name and an underscore.

the full name of the parameter.




getName
public String getName()(Code)
Gets the name of the parameter.

the name of the parameter




getStrValue
public String getStrValue()(Code)
Returns the string representation of the value as entered through the constructor. Returns an empty string if the value is null.

the String representation of the value.




getType
public Class getType()(Code)
Gets the type of the parameter.

the type of the parameter




getTypeHint
public String getTypeHint()(Code)
String that provides hints on what kind of value is expected in the input form

the type hint.




getValue
public Object getValue() throws IllegalArgumentException(Code)
Gets the value of the paramerter.

For primitive types, this method converts the String value to the correct Class type and returns it. For a complex type, it returns the method returns an instance of XList.

the value of the parameter
throws:
  IllegalArgumentException - if there was aproblem getting the Value from the parameter.




isArrayType
public boolean isArrayType()(Code)
Determines if the parameter is representing an array. true if the parameter represents an array, else false.



isRepeatable
public boolean isRepeatable()(Code)



isSimpleType
public boolean isSimpleType()(Code)
Determines if the parameter is representing a simple type. true if the parameter represents a simple type, else false.



isSimpleTypeArray
public boolean isSimpleTypeArray()(Code)
Determines if the parameter is representing a simple type array. true if the parameter represents a simple type array, else false.



toString
public String toString()(Code)
Returns the string representation of the parameter.

the string representation of the parameter.




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.