|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.mwe.core.WorkflowComponentHelper
public class WorkflowComponentHelper
Helper class that provides some utility methods for workflow components.
Constructor Summary | |
---|---|
WorkflowComponentHelper()
|
Method Summary | |
---|---|
static boolean |
isLegalDir(java.lang.String dirname)
Proves if the argument points to a existent directory (not file!). |
static boolean |
isLegalFile(java.lang.String filename)
Proves if the filename points to a existent file (not directory!). |
static boolean |
isLegalURL(java.lang.String url)
Proves if the given string is a valid URL. |
static boolean |
isLoadableClass(java.lang.String classname)
Proves that a class could be loaded. |
static boolean |
isParamSet(java.lang.String param)
Convenience method that proves if a parameter is set. |
static boolean |
isResource(java.lang.String uri)
Proves if the given name is a valid resource. |
static boolean |
isResource(java.lang.String uri,
java.lang.String contextClassName)
Proves if the given name is a valid resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkflowComponentHelper()
Method Detail |
---|
public static boolean isLegalFile(java.lang.String filename)
filename
- Path to a file
public static boolean isLegalDir(java.lang.String dirname)
dirname
- Path to a directory
public static boolean isLegalURL(java.lang.String url)
url
- An URL as String
public static boolean isResource(java.lang.String uri)
uri
- A resource identifier
public static boolean isResource(java.lang.String uri, java.lang.String contextClassName)
uri
- A resource identifiercontextClassName
- The class whose resource is tested
public static boolean isParamSet(java.lang.String param)
param
- The parameter
public static boolean isLoadableClass(java.lang.String classname)
classname
- The classname to check
true
if the class was successfully loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |