Java Doc for XMLUtil.java in  » Workflow-Engines » JaWE » org » enhydra » shark » xpdl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » JaWE » org.enhydra.shark.xpdl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final public static  StringXMLNS
    
final public static  StringXMLNS_XPDL
    
final public static  StringXMLNS_XSI
    
final public static  StringXSI_SCHEMA_LOCATION
    


Method Summary
public static  booleancanBeExpression(String expr, Map allVars, boolean evaluateToString)
    
public static  PackageclonePackage(Package pkg)
    
public static  PackageclonePackageBySerialization(Package pkg)
    
public static  intcntIds(XMLCollection xmlCol, String id)
    
public static  StringconvertToSystemPath(String path)
    
public static  StringcreatePath(String basedir, String relpath)
    
public static  Objectdeserialize(byte[] array)
    
public static  ExtendedAttributesdestringyfyExtendedAttributes(String extAttribs)
    
public static  StringfileToString(String fileName)
     Converts a file specified by the path, to the String.
public static  ApplicationfindApplication(XMLInterface xmlInterface, WorkflowProcess toBegin, String id)
    
public static  ParticipantfindParticipant(XMLInterface xmlInterface, WorkflowProcess toBegin, String perf)
    
public static  ParticipantfindParticipant(XMLInterface xmlInterface, Package toBegin, String perf)
    
public static  WorkflowProcessfindWorkflowProcess(XMLInterface xmlInterface, Package toBegin, String wpId)
    
public static  ActivitygetActivity(XMLElement el)
    
public static  ActivitySetgetActivitySet(XMLElement el)
    
public static  ListgetAllExternalPackageIds(XMLInterface xmli, Package pkg, Set alreadyGathered)
    
public static  SetgetAllParents(XMLElement el)
    
public static  ApplicationgetApplication(XMLInterface xmlInterface, Package toBegin, String id)
    
public static  SetgetBlockActivities(XMLComplexElement wpOrAs, boolean recursivly)
     Returns the set of BlockActivity objects contained within given process or block activity.
public static  ActivitySetgetBlockActivitySet(Activity blockAct)
    
public static  StringgetCanonicalPath(String relpath, String basedir, boolean canBeDirectory)
    
public static  StringgetCanonicalPath(String path, boolean canBeDirectory)
    
public static  NodegetChildByName(Node parent, String childName)
    
public static  StringgetChildNodesContent(Node node)
    
public static  intgetConformanceClassNo(String conformanceClass)
     Returns predefined conformanceClass number.
public static  StringgetContent(Node node, boolean omitXMLDeclaration)
    
public static  StringgetCurrentDateAndTime()
     Gets the current date and time string in ISO-8601 format.
public static  SetgetEndingActivities(XMLCollectionElement procOrASDef)
    
public static  SetgetExceptionalOutgoingTransitions(Activity act)
    
public static  SetgetExceptionalOutgoingTransitions(Activity act, Transitions tras)
    
public static  StringgetExtendedAttributeValue(String[][] extendedAttributes, String extAttrName)
    
public static  StringgetExtendedAttributesString(ExtendedAttributes eas)
    
public static  StringgetExtendedAttributesString(Node node)
    
public static  StringgetExternalPackageId(String extPkgHref)
    
public static  intgetFinishMode(Activity act)
    
public static  ActivitygetFromActivity(Transition t)
    
public static  StringgetId(Node node)
    
public static synchronized  StringgetIdFromFile(String xmlFile)
    
public static  ListgetImmediateExternalPackages(XMLInterface xmli, Package pkg)
    
public static  SetgetIncomingTransitions(Activity act)
    
public static  SetgetIncomingTransitions(Activity act, Transitions tras)
    
public static  JoingetJoin(Activity act)
    
public static  StringgetNameSpacePrefix(Node node)
    
public static  SetgetNonExceptionalOutgoingTransitions(Activity act)
    
public static  SetgetNonExceptionalOutgoingTransitions(Activity act, Transitions tras)
    
public static  ListgetOrderedOutgoingTransitions(Activity fromActDef, Set outTransitions)
    
public static  SetgetOutgoingTransitions(Activity act)
    
public static  SetgetOutgoingTransitions(Activity act, Transitions tras)
    
public static  PackagegetPackage(XMLElement el)
    
public static  XMLElementgetParentElement(Class type, XMLElement el)
    
public static  XMLElementgetParentElementByAssignableType(Class assignableFrom, XMLElement el)
    
public static  ParticipantgetParticipant(XMLElement el)
    
public static  SequencedHashMapgetPossibleApplications(Package forPkg, XMLInterface xmlInterface)
    
public static  SequencedHashMapgetPossibleApplications(WorkflowProcess forWP, XMLInterface xmlInterface)
    
public static  SequencedHashMapgetPossibleDataFields(Package forPkg)
    
public static  SequencedHashMapgetPossibleDataFields(WorkflowProcess forWP)
    
public static  SequencedHashMapgetPossibleParticipants(Package forPkg, XMLInterface xmlInterface)
    
public static  SequencedHashMapgetPossibleParticipants(WorkflowProcess forWP, XMLInterface xmlInterface)
    
public static  SequencedHashMapgetPossibleSubflowProcesses(SubFlow sbflw, XMLInterface xmlInterface)
    
public static  SequencedHashMapgetPossibleVariables(WorkflowProcess forWP)
    
public static  ListgetResponsibles(WorkflowProcess wp)
     Returns the list of responsibles for the process, and responsibles for whole package.
public static  StringgetShortClassName(String fullClassName)
    
public static  SplitgetSplit(Activity act)
    
public static  SetgetSplitOrJoinActivities(Collection acts, int sOrJ)
     Returns the set of (XML) activities that have split or join.
public static  intgetStartMode(Activity act)
    
public static  SetgetStartingActivities(XMLCollectionElement procOrASDef)
    
public static  WorkflowProcessgetSubflowProcess(XMLInterface xmlInterface, Activity sbflwAct)
    
public static  ActivitygetToActivity(Transition t)
    
public static  TransitiongetTransition(XMLElement el)
    
public static  ListgetUsingPositions(String expr, String dfOrFpId, Map allVars)
    
public static  WorkflowProcessgetWorkflowProcess(XMLElement el)
    
public static  inthowManyStringsWithinString(String toSearch, String toFind)
     Determines the number of string toFind within string toSearch.
public static  intindexOfXMLElementWithinList(List l, XMLElement el)
    
public static  booleanisANDTypeSplitOrJoin(Activity act, int sOrJ)
     Returns if given activity has AND type split or join.
public static  booleanisChildsParent(XMLElement parent, XMLElement mayBeChild)
    
public static  booleanisExceptionalTransition(Transition tra)
    
public static  booleanisIdValid(String id)
     Checks if Id is valid NMTOKEN string.
public static  booleanisParentsChild(XMLElement parent, XMLElement el)
    
public static  booleanisSubflowSynchronous(Activity sbflwActivityDefinition)
    
public static  voidmain(String[] args)
    
public static  OutputStreampackageToStream(org.enhydra.shark.xpdl.elements.Package pkg, OutputStream os)
    
public static  NodeparseExtendedAttributeContent(String toParse)
    
public static  NodeparseSchemaNode(String toParse, boolean isFile)
    
public static  PackagereadFromFile(XMLInterface xmli, String inputFile, boolean readExt)
    
public static  intremoveXMLElementFromList(List l, XMLElement el)
    
public static  StringreplaceBackslashesWithSlashes(String repBS)
    
public static  byte[]serialize(Object obj)
    
public static  StringstringifyExtendedAttributes(ExtendedAttributes extAttribs)
    
public static  voidwriteToFile(String outputFile, Package pkg)
    

Field Detail
XMLNS
final public static String XMLNS(Code)



XMLNS_XPDL
final public static String XMLNS_XPDL(Code)



XMLNS_XSI
final public static String XMLNS_XSI(Code)



XSI_SCHEMA_LOCATION
final public static String XSI_SCHEMA_LOCATION(Code)





Method Detail
canBeExpression
public static boolean canBeExpression(String expr, Map allVars, boolean evaluateToString)(Code)



clonePackage
public static Package clonePackage(Package pkg) throws Exception(Code)



clonePackageBySerialization
public static Package clonePackageBySerialization(Package pkg) throws Exception(Code)



cntIds
public static int cntIds(XMLCollection xmlCol, String id)(Code)



convertToSystemPath
public static String convertToSystemPath(String path)(Code)



createPath
public static String createPath(String basedir, String relpath)(Code)



deserialize
public static Object deserialize(byte[] array) throws Exception(Code)



destringyfyExtendedAttributes
public static ExtendedAttributes destringyfyExtendedAttributes(String extAttribs) throws Exception(Code)



fileToString
public static String fileToString(String fileName)(Code)
Converts a file specified by the path, to the String.



findApplication
public static Application findApplication(XMLInterface xmlInterface, WorkflowProcess toBegin, String id)(Code)



findParticipant
public static Participant findParticipant(XMLInterface xmlInterface, WorkflowProcess toBegin, String perf)(Code)



findParticipant
public static Participant findParticipant(XMLInterface xmlInterface, Package toBegin, String perf)(Code)



findWorkflowProcess
public static WorkflowProcess findWorkflowProcess(XMLInterface xmlInterface, Package toBegin, String wpId)(Code)



getActivity
public static Activity getActivity(XMLElement el)(Code)



getActivitySet
public static ActivitySet getActivitySet(XMLElement el)(Code)



getAllExternalPackageIds
public static List getAllExternalPackageIds(XMLInterface xmli, Package pkg, Set alreadyGathered)(Code)



getAllParents
public static Set getAllParents(XMLElement el)(Code)



getApplication
public static Application getApplication(XMLInterface xmlInterface, Package toBegin, String id)(Code)



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.



getBlockActivitySet
public static ActivitySet getBlockActivitySet(Activity blockAct)(Code)



getCanonicalPath
public static String getCanonicalPath(String relpath, String basedir, boolean canBeDirectory)(Code)



getCanonicalPath
public static String getCanonicalPath(String path, boolean canBeDirectory)(Code)



getChildByName
public static Node getChildByName(Node parent, String childName)(Code)



getChildNodesContent
public static String getChildNodesContent(Node node)(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.



getEndingActivities
public static Set getEndingActivities(XMLCollectionElement procOrASDef)(Code)



getExceptionalOutgoingTransitions
public static Set getExceptionalOutgoingTransitions(Activity act)(Code)



getExceptionalOutgoingTransitions
public static Set getExceptionalOutgoingTransitions(Activity act, Transitions tras)(Code)



getExtendedAttributeValue
public static String getExtendedAttributeValue(String[][] extendedAttributes, String extAttrName)(Code)



getExtendedAttributesString
public static String getExtendedAttributesString(ExtendedAttributes eas) throws Exception(Code)



getExtendedAttributesString
public static String getExtendedAttributesString(Node node)(Code)



getExternalPackageId
public static String getExternalPackageId(String extPkgHref)(Code)



getFinishMode
public static int getFinishMode(Activity act)(Code)



getFromActivity
public static Activity getFromActivity(Transition t)(Code)



getId
public static String getId(Node node)(Code)



getIdFromFile
public static synchronized String getIdFromFile(String xmlFile)(Code)



getImmediateExternalPackages
public static List getImmediateExternalPackages(XMLInterface xmli, Package pkg)(Code)



getIncomingTransitions
public static Set getIncomingTransitions(Activity act)(Code)



getIncomingTransitions
public static Set getIncomingTransitions(Activity act, Transitions tras)(Code)



getJoin
public static Join getJoin(Activity act)(Code)



getNameSpacePrefix
public static String getNameSpacePrefix(Node node)(Code)



getNonExceptionalOutgoingTransitions
public static Set getNonExceptionalOutgoingTransitions(Activity act)(Code)



getNonExceptionalOutgoingTransitions
public static Set getNonExceptionalOutgoingTransitions(Activity act, Transitions tras)(Code)



getOrderedOutgoingTransitions
public static List getOrderedOutgoingTransitions(Activity fromActDef, Set outTransitions)(Code)



getOutgoingTransitions
public static Set getOutgoingTransitions(Activity act)(Code)



getOutgoingTransitions
public static Set getOutgoingTransitions(Activity act, Transitions tras)(Code)



getPackage
public static Package getPackage(XMLElement el)(Code)



getParentElement
public static XMLElement getParentElement(Class type, XMLElement el)(Code)



getParentElementByAssignableType
public static XMLElement getParentElementByAssignableType(Class assignableFrom, XMLElement el)(Code)



getParticipant
public static Participant getParticipant(XMLElement el)(Code)



getPossibleApplications
public static SequencedHashMap getPossibleApplications(Package forPkg, XMLInterface xmlInterface)(Code)



getPossibleApplications
public static SequencedHashMap getPossibleApplications(WorkflowProcess forWP, XMLInterface xmlInterface)(Code)



getPossibleDataFields
public static SequencedHashMap getPossibleDataFields(Package forPkg)(Code)



getPossibleDataFields
public static SequencedHashMap getPossibleDataFields(WorkflowProcess forWP)(Code)



getPossibleParticipants
public static SequencedHashMap getPossibleParticipants(Package forPkg, XMLInterface xmlInterface)(Code)



getPossibleParticipants
public static SequencedHashMap getPossibleParticipants(WorkflowProcess forWP, XMLInterface xmlInterface)(Code)



getPossibleSubflowProcesses
public static SequencedHashMap getPossibleSubflowProcesses(SubFlow sbflw, XMLInterface xmlInterface)(Code)



getPossibleVariables
public static SequencedHashMap getPossibleVariables(WorkflowProcess forWP)(Code)



getResponsibles
public static List getResponsibles(WorkflowProcess wp)(Code)
Returns the list of responsibles for the process, and responsibles for whole package.



getShortClassName
public static String getShortClassName(String fullClassName)(Code)



getSplit
public static Split getSplit(Activity act)(Code)



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



getStartMode
public static int getStartMode(Activity act)(Code)



getStartingActivities
public static Set getStartingActivities(XMLCollectionElement procOrASDef)(Code)



getSubflowProcess
public static WorkflowProcess getSubflowProcess(XMLInterface xmlInterface, Activity sbflwAct)(Code)



getToActivity
public static Activity getToActivity(Transition t)(Code)



getTransition
public static Transition getTransition(XMLElement el)(Code)



getUsingPositions
public static List getUsingPositions(String expr, String dfOrFpId, Map allVars)(Code)



getWorkflowProcess
public static WorkflowProcess getWorkflowProcess(XMLElement el)(Code)



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



isChildsParent
public static boolean isChildsParent(XMLElement parent, XMLElement mayBeChild)(Code)



isExceptionalTransition
public static boolean isExceptionalTransition(Transition tra)(Code)



isIdValid
public static boolean isIdValid(String id)(Code)
Checks if Id is valid NMTOKEN string.



isParentsChild
public static boolean isParentsChild(XMLElement parent, XMLElement el)(Code)



isSubflowSynchronous
public static boolean isSubflowSynchronous(Activity sbflwActivityDefinition)(Code)



main
public static void main(String[] args) throws Throwable(Code)



packageToStream
public static OutputStream packageToStream(org.enhydra.shark.xpdl.elements.Package pkg, OutputStream os)(Code)



parseExtendedAttributeContent
public static Node parseExtendedAttributeContent(String toParse)(Code)



parseSchemaNode
public static Node parseSchemaNode(String toParse, boolean isFile)(Code)



readFromFile
public static Package readFromFile(XMLInterface xmli, String inputFile, boolean readExt) throws Exception(Code)



removeXMLElementFromList
public static int removeXMLElementFromList(List l, XMLElement el)(Code)



replaceBackslashesWithSlashes
public static String replaceBackslashesWithSlashes(String repBS)(Code)



serialize
public static byte[] serialize(Object obj) throws Exception(Code)



stringifyExtendedAttributes
public static String stringifyExtendedAttributes(ExtendedAttributes extAttribs) throws Exception(Code)



writeToFile
public static void writeToFile(String outputFile, Package pkg) throws Exception(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.