public class ObjectStateUtils extends Object implements ExternalizeConstants
Modifier and Type | Field and Description |
---|---|
static String |
NULL_OBJECT |
static String |
UNSUPPORTED_REVID |
static String |
UNSUPPORTED_SUID |
ACTIVE_OBJECT, EMPTY_MARKER, EMPTY_OBJECT, LAST_ENTRY, OBJ_RESTORE_PROBLEM, OBJ_SAVE_PROBLEM
Constructor and Description |
---|
ObjectStateUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
findHandler(ArrayList existingHandlers,
MetaDataEntry metaDataEntry)
Find the Handler object that matches the criteria
|
static AxisMessage |
findMessage(AxisOperation op,
String msgName,
String msgElementName)
Find the AxisMessage object that matches the criteria
|
static AxisOperation |
findOperation(AxisConfiguration axisConfig,
String opClassName,
QName opQName)
Find the AxisOperation object that matches the criteria
|
static AxisOperation |
findOperation(AxisService service,
String opClassName,
QName opQName)
Find the AxisOperation object that matches the criteria
|
static AxisService |
findService(AxisConfiguration axisConfig,
String serviceClassName,
String serviceName)
Find the AxisService object that matches the criteria
|
static AxisServiceGroup |
findServiceGroup(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.
|
static TransportListener |
findTransportListener(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.
|
static boolean |
isEquivalent(ArrayList a1,
ArrayList a2,
boolean strict)
Compares the two collections to see if they are equivalent.
|
static boolean |
isEquivalent(LinkedList l1,
LinkedList l2)
Compares the two collections to see if they are equivalent.
|
static boolean |
isEquivalent(Map m1,
Map m2,
boolean strict)
Compares the two collections to see if they are equivalent.
|
static ArrayList |
readArrayList(ObjectInput i,
String desc)
Reads an array of objects from the specified input stream.
|
static HashMap |
readHashMap(ObjectInput i,
String desc)
Read a hashmap of objects from the specified input stream.
|
static LinkedList |
readLinkedList(ObjectInput i,
String desc)
Reads a linked list of objects from the specified input stream.
|
static Object |
readObject(ObjectInput i,
String desc)
Read an object from the specified input stream.
|
static String |
readString(ObjectInput i,
String desc)
Read a string from the specified input stream.
|
static void |
writeArrayList(ObjectOutput o,
ArrayList al,
String desc)
Write an array of objects to the specified output stream.
|
static void |
writeHashMap(ObjectOutput o,
HashMap map,
String desc)
Write a hashmap of objects to the specified output stream.
|
static void |
writeLinkedList(ObjectOutput o,
LinkedList objlist,
String desc)
Write a linked list of objects to the specified output stream.
|
static void |
writeObject(ObjectOutput o,
Object obj,
String desc)
Write an object to the specified output stream.
|
static void |
writeString(ObjectOutput o,
String str,
String desc)
Write a string to the specified output stream.
|
public static String NULL_OBJECT
public static final String UNSUPPORTED_SUID
public static final String UNSUPPORTED_REVID
public static void writeString(ObjectOutput o, String str, String desc) throws IOException
o
- The output streamstr
- The string to writedesc
- A text description to use for loggingIOException
- Exceptionpublic static String readString(ObjectInput i, String desc) throws IOException, ClassNotFoundException
i
- The input streamdesc
- A text description to use for loggingIOException
ClassNotFoundException
public static void writeObject(ObjectOutput o, Object obj, String desc) throws IOException
o
- The output streamobj
- The object to writedesc
- A text description to use for loggingIOException
- Exceptionpublic static Object readObject(ObjectInput i, String desc) throws IOException, ClassNotFoundException
i
- The input streamdesc
- A text description to use for loggingIOException
ClassNotFoundException
public static void writeArrayList(ObjectOutput o, ArrayList al, String desc) throws IOException
o
- The output streamal
- The ArrayList to writedesc
- A text description to use for loggingIOException
- Exceptionpublic static ArrayList readArrayList(ObjectInput i, String desc) throws IOException
i
- The input streamdesc
- A text description to use for loggingIOException
ClassNotFoundException
public static void writeHashMap(ObjectOutput o, HashMap map, String desc) throws IOException
o
- The output streammap
- The HashMap to writedesc
- A text description to use for loggingIOException
- Exceptionpublic static HashMap readHashMap(ObjectInput i, String desc) throws IOException
in
- The input streamdesc
- A text description to use for loggingIOException
ClassNotFoundException
public static void writeLinkedList(ObjectOutput o, LinkedList objlist, String desc) throws IOException
o
- The output streamlist
- The LinkedList to writedesc
- A text description to use for loggingIOException
- Exceptionpublic static LinkedList readLinkedList(ObjectInput i, String desc) throws IOException
in
- The input streamdesc
- A text description to use for loggingIOException
ClassNotFoundException
public static AxisOperation findOperation(AxisConfiguration axisConfig, String opClassName, QName opQName)
axisConfig
- The AxisConfiguration objectopClassName
- the class name string for the target object (could be a derived class)opQName
- the name associated with the operationpublic static AxisOperation findOperation(AxisService service, String opClassName, QName opQName)
service
- The AxisService objectopClassName
- The class name string for the target object (could be a derived class)opQName
- the name associated with the operationpublic static AxisService findService(AxisConfiguration axisConfig, String serviceClassName, String serviceName)
axisConfig
- The AxisConfiguration objectserviceClassName
- the class name string for the target object (could be a derived
class)serviceName
- the name associated with the servicepublic static AxisServiceGroup findServiceGroup(AxisConfiguration axisConfig, String serviceGrpClassName, String serviceGrpName)
axisConfig
- The AxisConfiguration objectserviceGrpClassName
- the class name string for the target object (could be a derived
class)serviceGrpName
- the name associated with the service grouppublic static AxisMessage findMessage(AxisOperation op, String msgName, String msgElementName)
op
- The AxisOperation objectmsgName
- The name associated with the messagemsgElementName
- The name associated with the message elementpublic static Object findHandler(ArrayList existingHandlers, MetaDataEntry metaDataEntry)
existingHandlers
- The list of existing handlers and phaseshandlerClassName
- the class name string for the target object (could be a derived
class)public static TransportListener findTransportListener(AxisConfiguration axisConfig, String listenerClassName)
axisConfig
- The AxisConfiguration objectlistenerClassName
- the class name string for the target object (could be a derived
class)public static boolean isEquivalent(ArrayList a1, ArrayList a2, boolean strict)
a1
- The first collectiona2
- The second collectionstrict
- Indicates whether strict checking is required. Strict checking means that the
two collections must have the same elements in the same order.
Non-strict checking means that the two collections must have the same elements,
but the order is not significant.public static boolean isEquivalent(Map m1, Map m2, boolean strict)
m1
- The first collectionm2
- The second collectionstrict
- Indicates whether strict checking is required. Strict checking means that the
two collections must have the same mappings. Non-strict checking means that the two
collections must have the same keys. In both cases, the order is not significant.public static boolean isEquivalent(LinkedList l1, LinkedList l2)
l1
- The first collectionl2
- The second collectionCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.