Java Doc for ObjectStateUtils.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » util » 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 » Web Services AXIS2 » kernal » org.apache.axis2.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.util.ObjectStateUtils

ObjectStateUtils
public class ObjectStateUtils (Code)
Provides functions for saving and restoring an object's state.


Field Summary
public static  booleanACTIVE_OBJECT
    
public static  StringEMPTY_MARKER
    
public static  booleanEMPTY_OBJECT
    
public static  StringLAST_ENTRY
    
public static  StringNULL_OBJECT
    
public static  HashtableNotSerializableList
    
final public static  StringOBJ_RESTORE_PROBLEM
    
final public static  StringOBJ_SAVE_PROBLEM
    
final public static  StringUNSUPPORTED_REVID
    
final public static  StringUNSUPPORTED_SUID
    


Method Summary
public static  ObjectfindHandler(ArrayList existingHandlers, MetaDataEntry metaDataEntry)
    
public static  AxisMessagefindMessage(AxisOperation op, String msgName, String msgElementName)
    
public static  AxisOperationfindOperation(AxisConfiguration axisConfig, String opClassName, QName opQName)
    
public static  AxisOperationfindOperation(AxisService service, String opClassName, QName opQName)
    
public static  AxisServicefindService(AxisConfiguration axisConfig, String serviceClassName, String serviceName)
    
public static  AxisServiceGroupfindServiceGroup(AxisConfiguration axisConfig, String serviceGrpClassName, String serviceGrpName)
     Find the AxisServiceGroup object that matches the criteria

Note the saved service group meta information may not match up with any of the serviceGroups that are in the current AxisConfiguration object.

public static  TransportListenerfindTransportListener(AxisConfiguration axisConfig, String listenerClassName)
     Find the TransportListener object that matches the criteria

Note the saved meta information may not match up with any of the objects that are in the current AxisConfiguration object.

public static  booleanisEquivalent(ArrayList a1, ArrayList a2, boolean strict)
     Compares the two collections to see if they are equivalent.
Parameters:
  a1 - The first collection
Parameters:
  a2 - The second collection
Parameters:
  strict - Indicates whether strict checking is required.
public static  booleanisEquivalent(Map m1, Map m2, boolean strict)
     Compares the two collections to see if they are equivalent.
Parameters:
  m1 - The first collection
Parameters:
  m2 - The second collection
Parameters:
  strict - Indicates whether strict checking is required.
public static  booleanisEquivalent(LinkedList l1, LinkedList l2)
     Compares the two collections to see if they are equivalent.
public static  ArrayListreadArrayList(ObjectInput in, String desc)
     Reads an array of objects from the specified input stream.
public static  HashMapreadHashMap(ObjectInput in, String desc)
     Read a hashmap of objects from the specified input stream.
public static  LinkedListreadLinkedList(ObjectInput in, String desc)
     Reads a linked list of objects from the specified input stream.
public static  ObjectreadObject(ObjectInput in, String desc)
     Read an object from the specified input stream.
public static  StringreadString(ObjectInput in, String desc)
     Read a string from the specified input stream.
public static  voidtraceNotSerializable(Object obj, NotSerializableException nse, String objDesc, String methodName, String desc)
     Trace the NotSerializable exception for the specified object if this is the first time that the specified object has caused the exception.
public static  voidwriteArrayList(ObjectOutput out, ArrayList al, String desc)
     Write an array of objects to the specified output stream.
public static  voidwriteHashMap(ObjectOutput out, HashMap map, String desc)
     Write a hashmap of objects to the specified output stream.
public static  voidwriteLinkedList(ObjectOutput out, LinkedList objlist, String desc)
     Write a linked list of objects to the specified output stream.
public static  voidwriteObject(ObjectOutput out, Object obj, String desc)
     Write an object to the specified output stream.
public static  voidwriteString(ObjectOutput out, String str, String desc)
     Write a string to the specified output stream.

Field Detail
ACTIVE_OBJECT
public static boolean ACTIVE_OBJECT(Code)



EMPTY_MARKER
public static String EMPTY_MARKER(Code)



EMPTY_OBJECT
public static boolean EMPTY_OBJECT(Code)



LAST_ENTRY
public static String LAST_ENTRY(Code)



NULL_OBJECT
public static String NULL_OBJECT(Code)



NotSerializableList
public static Hashtable NotSerializableList(Code)



OBJ_RESTORE_PROBLEM
final public static String OBJ_RESTORE_PROBLEM(Code)



OBJ_SAVE_PROBLEM
final public static String OBJ_SAVE_PROBLEM(Code)



UNSUPPORTED_REVID
final public static String UNSUPPORTED_REVID(Code)



UNSUPPORTED_SUID
final public static String UNSUPPORTED_SUID(Code)





Method Detail
findHandler
public static Object findHandler(ArrayList existingHandlers, MetaDataEntry metaDataEntry)(Code)
Find the Handler object that matches the criteria
Parameters:
  existingHandlers - The list of existing handlers and phases
Parameters:
  handlerClassName - the class name string for the target object (could be aderived class) the Handler object that matches the criteria



findMessage
public static AxisMessage findMessage(AxisOperation op, String msgName, String msgElementName)(Code)
Find the AxisMessage object that matches the criteria
Parameters:
  op - The AxisOperation object
Parameters:
  msgName - The name associated with the message
Parameters:
  msgElementName - The name associated with the message element the AxisMessage object that matches the given criteria



findOperation
public static AxisOperation findOperation(AxisConfiguration axisConfig, String opClassName, QName opQName)(Code)
Find the AxisOperation object that matches the criteria
Parameters:
  axisConfig - The AxisConfiguration object
Parameters:
  opClassName - the class name string for the target object (could be aderived class)
Parameters:
  opQName - the name associated with the operation the AxisOperation object that matches the given criteria



findOperation
public static AxisOperation findOperation(AxisService service, String opClassName, QName opQName)(Code)
Find the AxisOperation object that matches the criteria
Parameters:
  service - The AxisService object
Parameters:
  opClassName - The class name string for the target object (could be aderived class)
Parameters:
  opQName - the name associated with the operation the AxisOperation object that matches the given criteria



findService
public static AxisService findService(AxisConfiguration axisConfig, String serviceClassName, String serviceName)(Code)
Find the AxisService object that matches the criteria
Parameters:
  axisConfig - The AxisConfiguration object
Parameters:
  serviceClassName - the class name string for the target object (could be aderived class)
Parameters:
  serviceName - the name associated with the service the AxisService object that matches the criteria



findServiceGroup
public static AxisServiceGroup findServiceGroup(AxisConfiguration axisConfig, String serviceGrpClassName, String serviceGrpName)(Code)
Find the AxisServiceGroup object that matches the criteria

Note the saved service group meta information may not match up with any of the serviceGroups that are in the current AxisConfiguration object.
Parameters:
  axisConfig - The AxisConfiguration object
Parameters:
  serviceGrpClassName - the class name string for the target object (could be aderived class)
Parameters:
  serviceGrpName - the name associated with the service group the AxisServiceGroup object that matches the criteria




findTransportListener
public static TransportListener findTransportListener(AxisConfiguration axisConfig, String listenerClassName)(Code)
Find the TransportListener object that matches the criteria

Note the saved meta information may not match up with any of the objects that are in the current AxisConfiguration object.
Parameters:
  axisConfig - The AxisConfiguration object
Parameters:
  listenerClassName - the class name string for the target object (could be aderived class) the TransportListener object that matches the criteria




isEquivalent
public static boolean isEquivalent(ArrayList a1, ArrayList a2, boolean strict)(Code)
Compares the two collections to see if they are equivalent.
Parameters:
  a1 - The first collection
Parameters:
  a2 - The second collection
Parameters:
  strict - Indicates whether strict checking is required. Strict checkingmeans that the two collections must have the same elements inthe same order. Non-strict checking means that the twocollections must have the same elements, but the order is notsignificant. TRUE if the two collections are equivalent FALSE, otherwise



isEquivalent
public static boolean isEquivalent(Map m1, Map m2, boolean strict)(Code)
Compares the two collections to see if they are equivalent.
Parameters:
  m1 - The first collection
Parameters:
  m2 - The second collection
Parameters:
  strict - Indicates whether strict checking is required. Strict checkingmeans that the two collections must have the same mappings.Non-strict checking means that the two collections must havethe same keys. In both cases, the order is not significant. TRUE if the two collections are equivalent FALSE, otherwise



isEquivalent
public static boolean isEquivalent(LinkedList l1, LinkedList l2)(Code)
Compares the two collections to see if they are equivalent.
Parameters:
  l1 - The first collection
Parameters:
  l2 - The second collection TRUE if the two collections are equivalent FALSE, otherwise



readArrayList
public static ArrayList readArrayList(ObjectInput in, String desc) throws IOException(Code)
Reads an array of objects from the specified input stream. Returns null if no array is available.

The format of the information to be read from the input stream should be

  • class name
  • active or empty
  • data

    NOTE: each object in the array should implement either java.io.Serializable or java.io.Externalizable in order to be saved


    Parameters:
      in - The input stream
    Parameters:
      desc - A text description to use for logging The ArrayList or null, if not available
    throws:
      IOException -
    throws:
      ClassNotFoundException -




  • readHashMap
    public static HashMap readHashMap(ObjectInput in, String desc) throws IOException(Code)
    Read a hashmap of objects from the specified input stream. Returns null if no hashmap is available.

    The format of the information to be read from the input stream should be

  • class name
  • active or empty
  • data

    NOTE: each object in the array should implement either java.io.Serializable or java.io.Externalizable in order to be saved


    Parameters:
      in - The input stream
    Parameters:
      desc - A text description to use for logging The HashMap or null, if not available
    throws:
      IOException -
    throws:
      ClassNotFoundException -




  • readLinkedList
    public static LinkedList readLinkedList(ObjectInput in, String desc) throws IOException(Code)
    Reads a linked list of objects from the specified input stream. Returns null if no array is available.

    The format of the information to be read from the input stream should be

  • class name
  • active or empty
  • data

    NOTE: each object in the list should implement either java.io.Serializable or java.io.Externalizable in order to be saved


    Parameters:
      in - The input stream
    Parameters:
      desc - A text description to use for logging The linked list or null, if not available
    throws:
      IOException -
    throws:
      ClassNotFoundException -




  • readObject
    public static Object readObject(ObjectInput in, String desc) throws IOException, ClassNotFoundException(Code)
    Read an object from the specified input stream. Returns null if no object is available.

    The format of the information to be read from the input stream should be Non-Null Object

  • UTF - class name string
  • boolean - active flag
  • object - object if no error
  • LAST_ENTRY marker

    Null Object

  • UTF - description
  • boolean - empty flag


    Parameters:
      in - The input stream
    Parameters:
      desc - A text description to use for logging The object or null, if not available
    throws:
      IOException -
    throws:
      ClassNotFoundException -




  • readString
    public static String readString(ObjectInput in, String desc) throws IOException, ClassNotFoundException(Code)
    Read a string from the specified input stream. Returns null if no string is available.

    The format of the information to be read from the input stream should be Non-Null String

  • UTF - class name string
  • boolean - active flag
  • Object - string data

    Null String

  • UTF - description
  • boolean - empty flag


    Parameters:
      in - The input stream
    Parameters:
      desc - A text description to use for logging The string or null, if not available
    throws:
      IOException -
    throws:
      ClassNotFoundException -




  • traceNotSerializable
    public static void traceNotSerializable(Object obj, NotSerializableException nse, String objDesc, String methodName, String desc)(Code)
    Trace the NotSerializable exception for the specified object if this is the first time that the specified object has caused the exception.
    Parameters:
      obj - The object being saved or restored
    Parameters:
      nse - The exception object with the details of the error
    Parameters:
      objDesc - The description of the object, eg, like the field name whereit is being used
    Parameters:
      methodName - The method name which encountered the exception
    Parameters:
      desc - Text to be used for tracing



    writeArrayList
    public static void writeArrayList(ObjectOutput out, ArrayList al, String desc) throws IOException(Code)
    Write an array of objects to the specified output stream.

    The format of the information written to the output stream is

  • class name of the array
  • active or empty
  • data

    NOTE: each object in the array should implement either java.io.Serializable or java.io.Externalizable in order to be saved


    Parameters:
      out - The output stream
    Parameters:
      al - The ArrayList to write
    Parameters:
      desc - A text description to use for logging
    throws:
      IOException - Exception




  • writeHashMap
    public static void writeHashMap(ObjectOutput out, HashMap map, String desc) throws IOException(Code)
    Write a hashmap of objects to the specified output stream.

    The format of the information written to the output stream is

  • class name of the array
  • active or empty
  • data

    NOTE: each object in the map should implement either java.io.Serializable or java.io.Externalizable in order to be saved


    Parameters:
      out - The output stream
    Parameters:
      map - The HashMap to write
    Parameters:
      desc - A text description to use for logging
    throws:
      IOException - Exception




  • writeLinkedList
    public static void writeLinkedList(ObjectOutput out, LinkedList objlist, String desc) throws IOException(Code)
    Write a linked list of objects to the specified output stream.

    The format of the information written to the output stream is

  • class name of the array
  • active or empty
  • data

    NOTE: each object in the array should implement either java.io.Serializable or java.io.Externalizable in order to be saved


    Parameters:
      out - The output stream
    Parameters:
      list - The LinkedList to write
    Parameters:
      desc - A text description to use for logging
    throws:
      IOException - Exception




  • writeObject
    public static void writeObject(ObjectOutput out, Object obj, String desc) throws IOException(Code)
    Write an object to the specified output stream.

    The format of the information written to the output stream is

    Non-Null Object

  • UTF - class name string
  • boolean - active flag
  • object - object if no error in the form of int byte array
  • LAST_ENTRY marker in the form of int object

    Null Object

  • UTF - description
  • boolean - empty flag


    Parameters:
      out - The output stream
    Parameters:
      obj - The object to write
    Parameters:
      desc - A text description to use for logging
    throws:
      IOException - Exception




  • writeString
    public static void writeString(ObjectOutput out, String str, String desc) throws IOException(Code)
    Write a string to the specified output stream.

    The format of the information written to the output stream is: Non-Null String

  • UTF - class name string
  • boolean - active flag
  • Object - string data

    Null String

  • UTF - description
  • boolean - empty flag


    Parameters:
      out - The output stream
    Parameters:
      str - The string to write
    Parameters:
      desc - A text description to use for logging
    throws:
      IOException - Exception




  • 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.