com.adventnet.components.projectworkspace
Class FrameworkUtils
java.lang.Object
|
+--com.adventnet.components.projectworkspace.FrameworkUtils
- Direct Known Subclasses:
- MenuFrameworkUtils, ToolBarFrameworkUtils
- public class FrameworkUtils
- extends java.lang.Object
This class has some utility methods to convert the input file or url into a
document object, and to get the parameters of any org.w3c.dom.Element object.
These methods are used in many instances across the projectworkspace framework.
|
Field Summary |
protected static boolean |
DEBUG_ON
|
|
Method Summary |
protected static java.lang.Object |
createNewInstance(java.lang.String className)
|
static java.util.Hashtable |
getAttributeList(org.w3c.dom.Element eNode)
Returns a hashtable with values of the input Element object
reference. |
static org.w3c.dom.Document |
getDocument(java.lang.String fileName)
Returns the Document object when an XML file is passed as an
argument. |
static org.w3c.dom.Document |
getDocument(java.net.URL url)
Returns the Document object when an url is passed as an
argument. |
static java.util.Hashtable |
getListenerList()
|
static java.lang.Object |
getObjectInstance(java.lang.String className)
Internally used. |
static java.util.EventListener |
getSingletonListenerInstance(java.lang.String listenerClassName)
|
protected static java.net.URL |
getURL(java.lang.String fileName)
|
protected static com.adventnet.components.projectworkspace.XMLUtils |
getXMLUtils()
|
static void |
printDebug(java.lang.String err)
|
static void |
setReuseListeners(boolean reuseOfListeners)
|
static void |
showError(java.lang.Exception er,
java.lang.String s)
|
static void |
showError(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DEBUG_ON
protected static final boolean DEBUG_ON
FrameworkUtils
public FrameworkUtils()
getDocument
public static org.w3c.dom.Document getDocument(java.lang.String fileName)
- Returns the Document object when an XML file is passed as an
argument.
- Parameters:
fileName - The input XML File.- Returns:
- The
Document reference.
getDocument
public static org.w3c.dom.Document getDocument(java.net.URL url)
- Returns the Document object when an url is passed as an
argument.
- Parameters:
url - The URL where the input file is present.- Returns:
- The
Document reference.
getAttributeList
public static java.util.Hashtable getAttributeList(org.w3c.dom.Element eNode)
- Returns a hashtable with values of the input Element object
reference.
- Parameters:
eNode - The Element reference.- Returns:
- The properties of the element as a
Hashtable reference.
showError
public static void showError(java.lang.Exception er,
java.lang.String s)
showError
public static void showError(java.lang.String s)
getURL
protected static java.net.URL getURL(java.lang.String fileName)
getObjectInstance
public static java.lang.Object getObjectInstance(java.lang.String className)
- Internally used.
printDebug
public static void printDebug(java.lang.String err)
getXMLUtils
protected static com.adventnet.components.projectworkspace.XMLUtils getXMLUtils()
setReuseListeners
public static void setReuseListeners(boolean reuseOfListeners)
getListenerList
public static java.util.Hashtable getListenerList()
getSingletonListenerInstance
public static java.util.EventListener getSingletonListenerInstance(java.lang.String listenerClassName)
throws FrameworkException
createNewInstance
protected static java.lang.Object createNewInstance(java.lang.String className)
throws java.lang.Exception
© 2001 - 2002 AdventNet Inc. Visit us at: http://www.adventnet.com