Process API

filenet.vw.api
Class VWXMLUtil

java.lang.Object
  extended by filenet.vw.api.VWXMLUtil

public final class VWXMLUtil
extends java.lang.Object

VWXMLUtil creates and processes blocks of XML from Process Engine API runtime objects that implement the IVWtoXML interface.

Since:
VWWS4.20
See Also:
Process API Classes, VWException

Constructor Summary
VWXMLUtil()
           
 
Method Summary
static java.lang.String _get_FILE_AUTHOR()
          For FileNet internal use only, do not call.
static java.lang.String _get_FILE_DATE()
          For FileNet internal use only, do not call.
static java.lang.String _get_FILE_REVISION()
          For FileNet internal use only, do not call.
static java.lang.String getNameSpace()
          Gets the namespace string used by this class.
static java.lang.String makeXMLBlock(IVWtoXML apiObject)
          Creates XML header information and XML text representing runtime a Process Engine API object from a runtime Process Engine API object that implements the IVWtoXML interface.
static java.lang.String makeXMLBlock(IVWtoXML[] apiObjects, java.lang.String theGroupTag)
          Creates XML header information and XML text representing runtime Process Engine API objects in an input array of runtime Process Engine API objects that implement the IVWtoXML interface.
static void setDatePattern(java.lang.String pattern)
          Sets the date pattern format for runtime toXML methods, such as VWQueueElement.toXML(StringBuffer).
static void setDateTimeZone(java.util.SimpleTimeZone TZone)
          Sets the SimpleTimeZone used to format dates in runtime toXML methods, such as VWQueueElement.toXML(StringBuffer).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VWXMLUtil

public VWXMLUtil()
Method Detail

_get_FILE_DATE

public static java.lang.String _get_FILE_DATE()
For FileNet internal use only, do not call.


_get_FILE_AUTHOR

public static java.lang.String _get_FILE_AUTHOR()
For FileNet internal use only, do not call.


_get_FILE_REVISION

public static java.lang.String _get_FILE_REVISION()
For FileNet internal use only, do not call.


makeXMLBlock

public static java.lang.String makeXMLBlock(IVWtoXML[] apiObjects,
                                            java.lang.String theGroupTag)
                                     throws VWException
Creates XML header information and XML text representing runtime Process Engine API objects in an input array of runtime Process Engine API objects that implement the IVWtoXML interface. You may create administration and configuration XML blocks with VWXMLConfiguration.makeXMLBlock(IVWtoXML[]).

Parameters:
apiObjects - Array of runtime Process Engine API objects that implement the IVWtoXML interface.
theGroupTag - A string which will be used as an enclosing tag around the XML for the apiObjects array. This group tag may aid in parsing the resulting block of XML.
Returns:
String containing XML text representing the runtime Process Engine API objects passed in the input apiObjects parameter.
Throws:
VWException - Thrown for various causes, including an invalid object in the input apiObjects argument.
See Also:
Process API Classes

makeXMLBlock

public static java.lang.String makeXMLBlock(IVWtoXML apiObject)
                                     throws VWException
Creates XML header information and XML text representing runtime a Process Engine API object from a runtime Process Engine API object that implements the IVWtoXML interface. You may create administration and configuration XML blocks with VWXMLConfiguration.makeXMLBlock(IVWtoXML[]).

Parameters:
apiObject - Runtime Process Engine API object that implements the IVWtoXML interface.
Returns:
XML header information and XML text representing the specified runtime Process Engine API object
Throws:
VWException - Thrown for various causes, including an invalid object in the input apiObjects argument.
See Also:
Process API Classes

getNameSpace

public static java.lang.String getNameSpace()
Gets the namespace string used by this class.

Returns:
The namespace used by this class.

setDatePattern

public static void setDatePattern(java.lang.String pattern)
                           throws VWException
Sets the date pattern format for runtime toXML methods, such as VWQueueElement.toXML(StringBuffer). By default, the pattern used represents UTC ISO condensed date format as follows:

"yyyyMMdd'T'HHmmss'Z'".

The new pattern remains in effect until either the calling program finishes or this method is again invoked to change the pattern.

Parameters:
pattern - The DateFormat pattern (or mask) to be used in runtime toXML methods. These patterns are described in the java.text.SimpleDateFormat class for your JDK.
Throws:
VWException
See Also:
Process API Classes

setDateTimeZone

public static void setDateTimeZone(java.util.SimpleTimeZone TZone)
                            throws VWException
Sets the SimpleTimeZone used to format dates in runtime toXML methods, such as VWQueueElement.toXML(StringBuffer). By default, the time zone used represents 'GMT', ( SimpleTimeZone(0,"UTC") ).

The new SimpleTimeZone remains in effect until either the calling program finishes or this method is again invoked to change the time zone.

Parameters:
TZone - The SimpleTimeZone to be used in runtime toXML methods. These time zones are described in the java.util.SimpleTimeZone class for your JDK.
Throws:
VWException
See Also:
Process API Classes

Process API

© Copyright IBM Corporation 2002, 2008. All rights reserved.