|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xmatters.ibm.tivoli.util.BaseUtil
public class BaseUtil
Contains methods common to all configuration utility classes.
Nested Class Summary | |
---|---|
class |
BaseUtil.ResourceResolver
Inner Class to implement a URIResolver to allow the Transformer to resolve the location of included XSL data in the transform stylesheets |
class |
BaseUtil.TransformerErrorListener
Inner Class to implement an ErrorListener to handle transformation errors and log them |
Field Summary | |
---|---|
static java.lang.String |
CONFIGURATION_PATH
|
protected boolean |
configured
|
protected org.apache.log4j.Logger |
logger
|
static java.lang.String |
PROPERTIES_FILE
|
Constructor Summary | |
---|---|
BaseUtil()
|
Method Summary | |
---|---|
org.dom4j.Element |
addElement(org.dom4j.Element parent,
java.lang.String name)
Adds an element containing the specified text to the parent |
org.dom4j.Element |
addElement(org.dom4j.Element parent,
java.lang.String name,
java.lang.String value)
Adds an element containing the specified text to the parent |
java.lang.String |
getConfPath()
|
java.lang.String |
getJavaClientUrl()
|
int |
getWorkflowAssignmentTimeout()
|
int |
getWorkflowAssignmentWaitTime()
|
boolean |
isConfigured()
Check if the configuration for this utility has been loaded successfully |
java.util.Properties |
loadPropertiesFile(java.lang.String filename)
Load the specified properties file contained on the classpath |
void |
moveFile(java.io.File file,
java.lang.String destination)
move a file from one location to another |
java.lang.String |
postToJavaClient(org.dom4j.Document document)
|
protected void |
setConfPath(java.lang.String confPath)
|
void |
setJavaClientUrl(java.lang.String javaClientUrl)
|
void |
setWorkflowAssignmentTimeout(int workflowAssignmentTimeout)
|
void |
setWorkflowAssignmentWaitTime(int workflowAssignmentWaitTime)
|
org.dom4j.Document |
transformDocument(org.dom4j.Document document,
java.lang.String xslFile)
Transform the Document using the XSL File located on the classpath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTIES_FILE
public static final java.lang.String CONFIGURATION_PATH
protected boolean configured
protected org.apache.log4j.Logger logger
Constructor Detail |
---|
public BaseUtil()
Method Detail |
---|
public void moveFile(java.io.File file, java.lang.String destination)
file
- The file to be moveddestination
- The directory to move the file topublic java.util.Properties loadPropertiesFile(java.lang.String filename) throws java.io.IOException
filename
- Name of the properties file
java.io.IOException
- If a error loading the properties file occursprotected void setConfPath(java.lang.String confPath)
public java.lang.String getConfPath()
public org.dom4j.Document transformDocument(org.dom4j.Document document, java.lang.String xslFile)
document
- The Document to be transformedxslFile
- The XSL File name. The File must be on the classpath
public boolean isConfigured()
public void setWorkflowAssignmentTimeout(int workflowAssignmentTimeout)
public int getWorkflowAssignmentTimeout()
public void setWorkflowAssignmentWaitTime(int workflowAssignmentWaitTime)
public int getWorkflowAssignmentWaitTime()
public java.lang.String getJavaClientUrl()
public void setJavaClientUrl(java.lang.String javaClientUrl)
public java.lang.String postToJavaClient(org.dom4j.Document document)
public org.dom4j.Element addElement(org.dom4j.Element parent, java.lang.String name)
parent
- element to add the new node toname
- String name of the node to addpublic org.dom4j.Element addElement(org.dom4j.Element parent, java.lang.String name, java.lang.String value)
parent
- element to add the new node toname
- String name of the node to addvalue
- String value to assign to the node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |