|
Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite 10g (10.1.3.2) B32189-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ifs.fdk.ClientUtils
public class ClientUtils
Utilities for the client side of Web Services, but they can also be used by in-process callers.
Method Summary | |
---|---|
static java.util.Calendar |
convertDate(java.lang.Object date) Converts an object to a Calendar. |
static java.lang.String |
fdkExceptionEntryToString(FdkExceptionEntry fdkee) Returns a String representation of a FdkExceptionEntry, suitable for detail logging. |
static java.lang.String |
fdkExceptionToString(FdkException fdke, boolean includeStackTrace) Returns a String representation of a FdkException, suitable for detail logging. |
static boolean |
isDocument(java.lang.String type) Returns true if the given type is one of the document types. |
static boolean |
isFolder(java.lang.String type) Returns true if the given type is one of the folder types. |
static boolean |
isLink(java.lang.String type) Returns true if the given type is one of the link types. |
static java.lang.String |
itemToString(Item item) Returns a String representation of an Item. |
static NamedValue[] |
mapToNamedValues(java.util.Map map) Converts an Map of named values to NamedValue[]. |
static java.util.Map |
namedValuesToMap(NamedValue[] namedValues) Converts a NamedValue[] to a Map for easy access. |
static java.lang.String |
namedValueToString(NamedValue nv) Returns a String representation of a NamedValue. |
static AttributeRequest |
newAttributeRequest(java.lang.String attributeName) Creates a new AttributeRequest without requesting any additional attributes. |
static AttributeRequest |
newAttributeRequest(java.lang.String attributeName, AttributeRequest[] attributes) Creates a new AttributeRequest. |
static NamedValue |
newNamedValue(java.lang.String name, java.lang.Object value) Creates a new NamedValue. |
static java.lang.String |
stackTraceToString(java.lang.Throwable t) Converts an exception stack trace to a String. |
static java.lang.String |
toString(java.lang.Object o) Returns a String representation of any Object, with special handling for known objects such as Item, NamedValue, FdkException, FdkExceptionEntry, etc. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.util.Map namedValuesToMap(NamedValue[] namedValues)
ClientUtils
String
.namedValues
- The NamedValue[] to convert. A zero-length array will result into an empty map and a null
array will result into a null
return value.public static final NamedValue[] mapToNamedValues(java.util.Map map)
ClientUtils
map
- The Map to convert. The keys in the map must be of type String
. An empty map will result in a zero-length NamedValue[] and a null
map will result into a null
return value.public static final java.lang.String toString(java.lang.Object o)
ClientUtils
o
- Object to convert to a String.public static final java.lang.String itemToString(Item item)
ClientUtils
item
- Item to convert to String.public static final java.lang.String namedValueToString(NamedValue nv)
ClientUtils
nv
- NamedValue to convert to String.public static final java.lang.String fdkExceptionToString(FdkException fdke, boolean includeStackTrace)
ClientUtils
fdke
- Exception to convert to String.includeStackTrace
- Whether to include the stack trace of the exception in the returned String.public static final java.lang.String fdkExceptionEntryToString(FdkExceptionEntry fdkee)
ClientUtils
fdkee
- Entry to convert to String.public static final java.lang.String stackTraceToString(java.lang.Throwable t)
ClientUtils
t
- The exception to convert.public static final NamedValue newNamedValue(java.lang.String name, java.lang.Object value)
ClientUtils
name
- The name.value
- The value.public static final AttributeRequest newAttributeRequest(java.lang.String attributeName, AttributeRequest[] attributes)
ClientUtils
attributeName
- The attribute name.attributes
- The requested attributes to be retrieved for the attribute.public static final AttributeRequest newAttributeRequest(java.lang.String attributeName)
ClientUtils
attributeName
- The attribute name.public static final boolean isFolder(java.lang.String type)
ClientUtils
type
- The type to check,public static final boolean isDocument(java.lang.String type)
ClientUtils
type
- The type to check,public static final boolean isLink(java.lang.String type)
ClientUtils
type
- The type to check,public static final java.util.Calendar convertDate(java.lang.Object date)
ClientUtils
date
- The Calendar or Date object to convert. For other object types a RuntimeException will be thrown.
|
Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite 10g (10.1.3.2) B32189-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |