| java.lang.Object org.enhydra.shark.xpdl.XMLUtil
XMLUtil | public class XMLUtil (Code) | | Class with utilities to read/write XPDLs from/to XML.
author: Sasa Bojanic |
Method Summary | |
public static boolean | canBeExpression(String expr, Map allVars, boolean evaluateToString) | public static Package | clonePackage(Package pkg) | public static Package | clonePackageBySerialization(Package pkg) | public static int | cntIds(XMLCollection xmlCol, String id) | public static String | convertToSystemPath(String path) | public static String | createPath(String basedir, String relpath) | public static Object | deserialize(byte[] array) | public static ExtendedAttributes | destringyfyExtendedAttributes(String extAttribs) | public static String | fileToString(String fileName) Converts a file specified by the path, to the String. | public static Application | findApplication(XMLInterface xmlInterface, WorkflowProcess toBegin, String id) | public static Participant | findParticipant(XMLInterface xmlInterface, WorkflowProcess toBegin, String perf) | public static Participant | findParticipant(XMLInterface xmlInterface, Package toBegin, String perf) | public static WorkflowProcess | findWorkflowProcess(XMLInterface xmlInterface, Package toBegin, String wpId) | public static Activity | getActivity(XMLElement el) | public static ActivitySet | getActivitySet(XMLElement el) | public static List | getAllExternalPackageIds(XMLInterface xmli, Package pkg, Set alreadyGathered) | public static Set | getAllParents(XMLElement el) | public static Application | getApplication(XMLInterface xmlInterface, Package toBegin, String id) | public static Set | getBlockActivities(XMLComplexElement wpOrAs, boolean recursivly) Returns the set of BlockActivity objects contained within given
process or block activity. | public static ActivitySet | getBlockActivitySet(Activity blockAct) | public static String | getCanonicalPath(String relpath, String basedir, boolean canBeDirectory) | public static String | getCanonicalPath(String path, boolean canBeDirectory) | public static Node | getChildByName(Node parent, String childName) | public static String | getChildNodesContent(Node node) | public static int | getConformanceClassNo(String conformanceClass) Returns predefined conformanceClass number. | public static String | getContent(Node node, boolean omitXMLDeclaration) | public static String | getCurrentDateAndTime() Gets the current date and time string in ISO-8601 format. | public static Set | getEndingActivities(XMLCollectionElement procOrASDef) | public static Set | getExceptionalOutgoingTransitions(Activity act) | public static Set | getExceptionalOutgoingTransitions(Activity act, Transitions tras) | public static String | getExtendedAttributeValue(String[][] extendedAttributes, String extAttrName) | public static String | getExtendedAttributesString(ExtendedAttributes eas) | public static String | getExtendedAttributesString(Node node) | public static String | getExternalPackageId(String extPkgHref) | public static int | getFinishMode(Activity act) | public static Activity | getFromActivity(Transition t) | public static String | getId(Node node) | public static synchronized String | getIdFromFile(String xmlFile) | public static List | getImmediateExternalPackages(XMLInterface xmli, Package pkg) | public static Set | getIncomingTransitions(Activity act) | public static Set | getIncomingTransitions(Activity act, Transitions tras) | public static Join | getJoin(Activity act) | public static String | getNameSpacePrefix(Node node) | public static Set | getNonExceptionalOutgoingTransitions(Activity act) | public static Set | getNonExceptionalOutgoingTransitions(Activity act, Transitions tras) | public static List | getOrderedOutgoingTransitions(Activity fromActDef, Set outTransitions) | public static Set | getOutgoingTransitions(Activity act) | public static Set | getOutgoingTransitions(Activity act, Transitions tras) | public static Package | getPackage(XMLElement el) | public static XMLElement | getParentElement(Class type, XMLElement el) | public static XMLElement | getParentElementByAssignableType(Class assignableFrom, XMLElement el) | public static Participant | getParticipant(XMLElement el) | public static SequencedHashMap | getPossibleApplications(Package forPkg, XMLInterface xmlInterface) | public static SequencedHashMap | getPossibleApplications(WorkflowProcess forWP, XMLInterface xmlInterface) | public static SequencedHashMap | getPossibleDataFields(Package forPkg) | public static SequencedHashMap | getPossibleDataFields(WorkflowProcess forWP) | public static SequencedHashMap | getPossibleParticipants(Package forPkg, XMLInterface xmlInterface) | public static SequencedHashMap | getPossibleParticipants(WorkflowProcess forWP, XMLInterface xmlInterface) | public static SequencedHashMap | getPossibleSubflowProcesses(SubFlow sbflw, XMLInterface xmlInterface) | public static SequencedHashMap | getPossibleVariables(WorkflowProcess forWP) | public static List | getResponsibles(WorkflowProcess wp) Returns the list of responsibles for the process, and responsibles
for whole package. | public static String | getShortClassName(String fullClassName) | public static Split | getSplit(Activity act) | public static Set | getSplitOrJoinActivities(Collection acts, int sOrJ) Returns the set of (XML) activities that have split or join. | public static int | getStartMode(Activity act) | public static Set | getStartingActivities(XMLCollectionElement procOrASDef) | public static WorkflowProcess | getSubflowProcess(XMLInterface xmlInterface, Activity sbflwAct) | public static Activity | getToActivity(Transition t) | public static Transition | getTransition(XMLElement el) | public static List | getUsingPositions(String expr, String dfOrFpId, Map allVars) | public static WorkflowProcess | getWorkflowProcess(XMLElement el) | public static int | howManyStringsWithinString(String toSearch, String toFind) Determines the number of string toFind within string toSearch. | public static int | indexOfXMLElementWithinList(List l, XMLElement el) | public static boolean | isANDTypeSplitOrJoin(Activity act, int sOrJ) Returns if given activity has AND type split or join. | public static boolean | isChildsParent(XMLElement parent, XMLElement mayBeChild) | public static boolean | isExceptionalTransition(Transition tra) | public static boolean | isIdValid(String id) Checks if Id is valid NMTOKEN string. | public static boolean | isParentsChild(XMLElement parent, XMLElement el) | public static boolean | isSubflowSynchronous(Activity sbflwActivityDefinition) | public static void | main(String[] args) | public static OutputStream | packageToStream(org.enhydra.shark.xpdl.elements.Package pkg, OutputStream os) | public static Node | parseExtendedAttributeContent(String toParse) | public static Node | parseSchemaNode(String toParse, boolean isFile) | public static Package | readFromFile(XMLInterface xmli, String inputFile, boolean readExt) | public static int | removeXMLElementFromList(List l, XMLElement el) | public static String | replaceBackslashesWithSlashes(String repBS) | public static byte[] | serialize(Object obj) | public static String | stringifyExtendedAttributes(ExtendedAttributes extAttribs) | public static void | writeToFile(String outputFile, Package pkg) |
XSI_SCHEMA_LOCATION | final public static String XSI_SCHEMA_LOCATION(Code) | | |
canBeExpression | public static boolean canBeExpression(String expr, Map allVars, boolean evaluateToString)(Code) | | |
fileToString | public static String fileToString(String fileName)(Code) | | Converts a file specified by the path, to the String.
|
getBlockActivities | public static Set getBlockActivities(XMLComplexElement wpOrAs, boolean recursivly)(Code) | | Returns the set of BlockActivity objects contained within given
process or block activity. If the BlockActivity objects contains
other BlockActivity objects, and the second parameter is set to true,
these are also returned, and so on - which means that
implementation is recursive.
|
getCanonicalPath | public static String getCanonicalPath(String path, boolean canBeDirectory)(Code) | | |
getConformanceClassNo | public static int getConformanceClassNo(String conformanceClass)(Code) | | Returns predefined conformanceClass number.
Parameters: conformanceClass - The conformance class we are looking for number 0 if conformance class is NON_BLOCKED, 1 if conformance class isLOOP_BLOCKED, 2 if conformance class is FULL_BLOCKED, and -1 otherwise |
getContent | public static String getContent(Node node, boolean omitXMLDeclaration)(Code) | | |
getCurrentDateAndTime | public static String getCurrentDateAndTime()(Code) | | Gets the current date and time string in ISO-8601 format.
|
getExceptionalOutgoingTransitions | public static Set getExceptionalOutgoingTransitions(Activity act)(Code) | | |
getExtendedAttributeValue | public static String getExtendedAttributeValue(String[][] extendedAttributes, String extAttrName)(Code) | | |
getExtendedAttributesString | public static String getExtendedAttributesString(Node node)(Code) | | |
getNonExceptionalOutgoingTransitions | public static Set getNonExceptionalOutgoingTransitions(Activity act)(Code) | | |
getOrderedOutgoingTransitions | public static List getOrderedOutgoingTransitions(Activity fromActDef, Set outTransitions)(Code) | | |
getResponsibles | public static List getResponsibles(WorkflowProcess wp)(Code) | | Returns the list of responsibles for the process, and responsibles
for whole package.
|
getSplitOrJoinActivities | public static Set getSplitOrJoinActivities(Collection acts, int sOrJ)(Code) | | Returns the set of (XML) activities that have split or join.
Parameters: acts - The activities graph objects that are checked if theirXML object have split or join, depending on the second parameter. Parameters: sOrJ - if 0, activity is checked for split, otherwise it ischecked for join |
howManyStringsWithinString | public static int howManyStringsWithinString(String toSearch, String toFind)(Code) | | Determines the number of string toFind within string toSearch.
|
indexOfXMLElementWithinList | public static int indexOfXMLElementWithinList(List l, XMLElement el)(Code) | | |
isANDTypeSplitOrJoin | public static boolean isANDTypeSplitOrJoin(Activity act, int sOrJ)(Code) | | Returns if given activity has AND type split or join.
Parameters: act - The activity that is checked if it has a AND typesplit or join, depending on the second parameter. Parameters: sOrJ - if 0, activity is checked for AND type split, otherwise it ischecked for AND type join true if given activity has AND type split or join |
isExceptionalTransition | public static boolean isExceptionalTransition(Transition tra)(Code) | | |
isIdValid | public static boolean isIdValid(String id)(Code) | | Checks if Id is valid NMTOKEN string.
|
isSubflowSynchronous | public static boolean isSubflowSynchronous(Activity sbflwActivityDefinition)(Code) | | |
parseExtendedAttributeContent | public static Node parseExtendedAttributeContent(String toParse)(Code) | | |
parseSchemaNode | public static Node parseSchemaNode(String toParse, boolean isFile)(Code) | | |
replaceBackslashesWithSlashes | public static String replaceBackslashesWithSlashes(String repBS)(Code) | | |
|
|