public class XMLUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ERROR_MESSAGE |
static int |
INFORMATION_MESSAGE |
| 构造器和说明 |
|---|
XMLUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
checkParameterMatching(FormalParameters fps,
ActualParameters aps)
Checks if formal and actual parameters are matched by number and by type.
|
static String |
dialog(Component parent,
String message,
int mode,
int filteringMode,
String initialName) |
static void |
expandAll(JTree tree,
boolean expand)
If expand is true, expands all nodes in the tree.
|
static void |
expandAll(JTree tree,
TreePath parent,
boolean expand)
Collapse or expand specified three path.
|
static String |
fileToString(String fileName)
Converts a file specified by the path, to the String.
|
static Set |
getAllExtendedAttributeNames(XMLComplexElement cel) |
static Set |
getBlockActivities(XMLComplexElement wpOrAs,
boolean recursivly)
Returns the set of BlockActivity objects contained within given process or block activity.
|
static String |
getCanonicalPath(String path,
boolean canBeDirectory) |
static Node |
getChildByName(Node parent,
String childName) |
static String |
getChildNodesContent(Node node) |
static int |
getConformanceClassNo(String conformanceClass)
Returns predefined conformanceClass number.
|
static String |
getContent(Node node,
boolean omitXMLDeclaration) |
static String |
getCurrentDateAndTime()
Gets the current date and time string in ISO-8601 format.
|
static Set |
getEndingActivities(XMLCollectionElement procOrASDef) |
static String |
getID(Node node) |
static String |
getLanguageDependentString(String nm)
Gets a resource string from the resource bundle.
|
static URL |
getResource(String key)
Gets the url from a resource string.
|
static Set |
getSplitOrJoinActivities(Collection acts,
int sOrJ)
Returns the set of (XML) activities that have split or join.
|
static Set |
getStartingActivities(XMLCollectionElement procOrASDef) |
static int |
howManyStringsWithinString(String toSearch,
String toFind)
Determines the number of string toFind within string toSearch.
|
static void |
initExpand(JTree tree,
TreePath parent)
Collapse or expand specified three path, depends of state of flag isCollapsed in user object.
|
static boolean |
isANDTypeSplitOrJoin(Activity act,
int sOrJ)
Returns if given activity has AND type split or join.
|
static String |
makeEmptyHTMLText(int length) |
static String |
makeTagAnotherHtmlLine(String key,
String value)
Helps when generating tooltip for some element.
|
static String |
makeTooltip(Vector tagArr)
Neat little thing.
|
static String |
makeTooltip(XMLElement[] elements)
Neat little thing.
|
static void |
message(String message,
int type) |
static void |
parseElements(Node node,
Collection complexStructure)
Used to parse all elements from the given collection according to the given tagContent.
|
static String |
replaceBackslashesWithSlashes(String repBS) |
static void |
setApplicationWindow(Window w) |
static void |
setChoosenResources(ResourceBundle choosenR) |
static void |
setDefaultResources(ResourceBundle defaultR) |
static void |
setProperties(Properties props) |
static void |
setSelectCell(Object object) |
static String[] |
tokenize(String input,
String boundary)
Take the given string and chop it up into a series of strings on given boundries.
|
public static final int INFORMATION_MESSAGE
public static final int ERROR_MESSAGE
public static void setApplicationWindow(Window w)
public static void setDefaultResources(ResourceBundle defaultR)
public static void setChoosenResources(ResourceBundle choosenR)
public static void setProperties(Properties props)
public static void message(String message, int type)
public static String dialog(Component parent, String message, int mode, int filteringMode, String initialName)
public static String getLanguageDependentString(String nm)
Resource bundle represents the property file. For example, if property file contains something like this:
nm - name of the resource to fetch.public static URL getResource(String key)
key - the string key to the url in the properties.Class.getResource(java.lang.String)public static String[] tokenize(String input, String boundary)
public static int howManyStringsWithinString(String toSearch, String toFind)
public static String makeTooltip(XMLElement[] elements)
public static String makeTooltip(Vector tagArr)
public static String makeTagAnotherHtmlLine(String key, String value)
public static void parseElements(Node node, Collection complexStructure)
public static boolean isANDTypeSplitOrJoin(Activity act, int sOrJ)
act - The activity that is checked if it has AND type split or join, depending on the second parameter.sOrJ - if 0, activity is checked for AND type split, otherwise it is checked for AND type joinpublic static Set getSplitOrJoinActivities(Collection acts, int sOrJ)
acts - The activities graph objects that are checked if their XML object have split or join, depending on the
second parameter.sOrJ - if 0, activity is checked for split, otherwise it is checked for joinpublic static Set getBlockActivities(XMLComplexElement wpOrAs, boolean recursivly)
public static int getConformanceClassNo(String conformanceClass)
conformanceClass - The conformance class we are looking for numberpublic static String fileToString(String fileName)
public static String getCurrentDateAndTime()
public static int checkParameterMatching(FormalParameters fps, ActualParameters aps)
public static void expandAll(JTree tree, boolean expand)
tree - jtree to expand or collapseexpand - if true expand, otherwise collapsespublic static void expandAll(JTree tree, TreePath parent, boolean expand)
tree - jtree to expand or collapseparent - path to collapse or expandexpand - if true expand, otherwise collapsespublic static void initExpand(JTree tree, TreePath parent)
tree - jtree to expand or collapseparent - path to collapse or expandpublic static Set getStartingActivities(XMLCollectionElement procOrASDef)
public static Set getEndingActivities(XMLCollectionElement procOrASDef)
public static Set getAllExtendedAttributeNames(XMLComplexElement cel)
public static void setSelectCell(Object object)
public static String makeEmptyHTMLText(int length)
Copyright © 2023 onecode. All rights reserved.