filenet.vw.api
Class VWXMLUtil
- java.lang.Object
-
- filenet.vw.api.VWXMLUtil
-
public final class VWXMLUtil extends java.lang.ObjectVWXMLUtil creates and processes blocks of XML from Process Engine API runtime objects that implement theIVWtoXMLinterface.- Since:
- VWWS4.20
- See Also:
VWException
-
-
Constructor Summary
Constructors Constructor and Description VWXMLUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringgetNameSpace()Gets the namespace string used by this class.static java.lang.StringmakeXMLBlock(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 theIVWtoXMLinterface.static java.lang.StringmakeXMLBlock(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 theIVWtoXMLinterface.static voidsetDatePattern(java.lang.String pattern)Sets the date pattern format for runtime toXML methods, such asVWQueueElement.toXML(StringBuffer).static voidsetDateTimeZone(java.util.SimpleTimeZone TZone)Sets the SimpleTimeZone used to format dates in runtime toXML methods, such asVWQueueElement.toXML(StringBuffer).
-
-
-
Method Detail
-
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 theIVWtoXMLinterface. You may create administration and configuration XML blocks withVWXMLConfiguration.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.
-
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 theIVWtoXMLinterface. You may create administration and configuration XML blocks withVWXMLConfiguration.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.
-
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 VWExceptionSets the date pattern format for runtime toXML methods, such asVWQueueElement.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
-
setDateTimeZone
public static void setDateTimeZone(java.util.SimpleTimeZone TZone) throws VWExceptionSets the SimpleTimeZone used to format dates in runtime toXML methods, such asVWQueueElement.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
-
-