org.dawb.common.util.xml
Class XMLUtils

java.lang.Object
  extended by org.dawb.common.util.xml.XMLUtils

public class XMLUtils
extends java.lang.Object


Field Summary
static java.lang.String VARIABLE_EXPRESSION
           
 
Constructor Summary
XMLUtils()
           
 
Method Summary
static java.util.List<java.lang.CharSequence> getVariables(org.eclipse.core.resources.IFile file)
          Returns a list of strings surrounded by ${ } in the file.
static java.util.Map<java.lang.String,java.lang.String> getVariables(java.util.Map variables, java.lang.String xmlSource, java.util.Map<java.lang.String,java.lang.String> scalarSource)
           
static java.util.List<java.lang.String> getVariables(java.lang.String data)
          Returns a list of strings surrounded by ${ } in the file.
static java.lang.String getXPathValue(org.eclipse.core.resources.IFile file, java.lang.String xPath)
           
static void isLegalXPath(java.lang.String xPath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VARIABLE_EXPRESSION

public static final java.lang.String VARIABLE_EXPRESSION
See Also:
Constant Field Values
Constructor Detail

XMLUtils

public XMLUtils()
Method Detail

getVariables

public static java.util.List<java.lang.String> getVariables(java.lang.String data)
                                                     throws java.lang.Exception
Returns a list of strings surrounded by ${ } in the file.

Parameters:
file -
Returns:
Throws:
java.lang.Exception

getVariables

public static java.util.List<java.lang.CharSequence> getVariables(org.eclipse.core.resources.IFile file)
                                                           throws java.lang.Exception
Returns a list of strings surrounded by ${ } in the file.

Parameters:
file -
Returns:
Throws:
java.lang.Exception

getVariables

public static java.util.Map<java.lang.String,java.lang.String> getVariables(java.util.Map variables,
                                                                            java.lang.String xmlSource,
                                                                            java.util.Map<java.lang.String,java.lang.String> scalarSource)
                                                                     throws java.lang.Exception
Throws:
java.lang.Exception

getXPathValue

public static java.lang.String getXPathValue(org.eclipse.core.resources.IFile file,
                                             java.lang.String xPath)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

isLegalXPath

public static void isLegalXPath(java.lang.String xPath)
                         throws java.lang.Exception
Parameters:
xPath -
Throws:
java.lang.Exception - - if path invalid.