|
Oracle Content Database Web Services Java API Reference 10g Release 1 (10.2) B31408-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ifs.fdk.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 long[] |
getSupportedCapabilities() Returns a list of capabilities that are supported. |
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)
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)
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)
o
- Object to convert to a String.public static final java.lang.String itemToString(Item item)
item
- Item to convert to String.public static final java.lang.String namedValueToString(NamedValue nv)
nv
- NamedValue to convert to String.public static final java.lang.String fdkExceptionToString(FdkException fdke, boolean includeStackTrace)
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)
fdkee
- Entry to convert to String.public static final java.lang.String stackTraceToString(java.lang.Throwable t)
t
- The exception to convert.public static final NamedValue newNamedValue(java.lang.String name, java.lang.Object value)
name
- The name.value
- The value.public static final AttributeRequest newAttributeRequest(java.lang.String attributeName, AttributeRequest[] attributes)
attributeName
- The attribute name.attributes
- The requested attributes to be retrieved for the attribute.public static final AttributeRequest newAttributeRequest(java.lang.String attributeName)
attributeName
- The attribute name.public static final boolean isFolder(java.lang.String type)
type
- The type to check,public static final boolean isDocument(java.lang.String type)
type
- The type to check,public static final boolean isLink(java.lang.String type)
type
- The type to check,public static final java.util.Calendar convertDate(java.lang.Object date)
date
- The Calendar or Date object to convert. For other object types a RuntimeException will be thrown.public static long[] getSupportedCapabilities()
|
Oracle Content Database Web Services Java API Reference 10g Release 1 (10.2) B31408-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |