| |
|
| java.lang.Object de.danet.an.workflow.util.XPDLUtil
XPDLUtil | public class XPDLUtil (Code) | | This class provides some methods that help handling XPDL.
author: Michael Lipp version: $Revision: 1.8 $ |
Inner Class :public static class SAXDataTypeHandler extends StackedHandler | |
Method Summary | |
public static Object | extractDataType(Element typeElem) Extract the Java data type information from a
DataType node. | public static Object | extractValue(Element typeElem, Element valueElem) Extract the value from a <DataType> and
a value representing node.
Parameters: typeElem - the <DataType> element. Parameters: valueElem - the value element. | public static Class | getJavaType(ExternalReference extRef) Retrieves the Java type from the external reference.
Parameters: extRef - the external reference. | public static boolean | isJavaType(ExternalReference extRef) Checks if the external reference is a Java type.
Parameters: extRef - the external reference. | public static boolean | isXMLType(Object type) Check if the given object is one of the possible
representations of XML types used in WfMOpen. | public static Object | parseDuration(String s, ValueEvaluator e) Retrieve a duration from the given String. | public static Object | parseDuration(String s) Retrieve a duration from the given String. |
XPDL_EXTN_NS | final public static String XPDL_EXTN_NS(Code) | | The URI of the supported XPDL extensions.
|
XPDL_NS | final public static String XPDL_NS(Code) | | The URI of the XPDL version used.
|
XPDL_VERSION | final public static String XPDL_VERSION(Code) | | The XPDL version used.
|
extractDataType | public static Object extractDataType(Element typeElem) throws IllegalArgumentException(Code) | | Extract the Java data type information from a
DataType node. The type information is coded as follows:
-
if the type is a
<BasicType> , the corresponding
Java class is returned, with
de.danet.an.workflow.api.Participant Participant used to denote "PERFORMER".
-
if the type is
<SchemaType> , but no schema is
specified, org.w3c.dom.Element.class is returned.
-
if the type is
<SchemaType> , and the schema is
specified, the schema is returned is returned
(as SAXEventBuffer ).
-
if the type is
<ExternalReference> ,
an ExternalReference is returned.
Parameters: typeElem - a <DataType> element. the type information as specified above. throws: IllegalArgumentException - if the type is not recognized. |
extractValue | public static Object extractValue(Element typeElem, Element valueElem) throws IllegalArgumentException(Code) | | Extract the value from a <DataType> and
a value representing node.
Parameters: typeElem - the <DataType> element. Parameters: valueElem - the value element. the extracted value which may be null . throws: IllegalArgumentException - if the value cannot be extracted. |
isJavaType | public static boolean isJavaType(ExternalReference extRef)(Code) | | Checks if the external reference is a Java type.
Parameters: extRef - the external reference. true if the extzernal referencedescribes a Java type. |
isXMLType | public static boolean isXMLType(Object type)(Code) | | Check if the given object is one of the possible
representations of XML types used in WfMOpen.
Parameters: type - the object representing the type true if the argument represents an XML type |
|
|
|