wt.rule.util
Class XMLUtils

java.lang.Object
  extended bywt.rule.util.XMLUtils

public class XMLUtils
extends Object

This class provides XML utility methods that are used by classes in the wt.rule package.


Field Summary
private static String RESOURCE
           
private static String SAX_FEATURE_PREFIX
           
private static String SAX_NAMESPACE_PREFIXES
           
private static boolean SAX_NAMESPACE_PREFIXES_VALUE
           
private static String SAX_NAMESPACES
           
private static boolean SAX_NAMESPACES_VALUE
           
 
Constructor Summary
XMLUtils()
           
 
Method Summary
private static XMLReader getParser()
          Get an XMLReader using the parser factory.
static void parseSpecification(InputSource source, ContentHandler cHandler)
          Parse the contents of the InputSource using the content handler that is provided.
static void parseSpecification(Rule rule, ContentHandler cHandler)
          Parse the specified Rule's specification using the content handler that is provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

SAX_FEATURE_PREFIX

private static final String SAX_FEATURE_PREFIX
See Also:
Constant Field Values

SAX_NAMESPACES

private static final String SAX_NAMESPACES
See Also:
Constant Field Values

SAX_NAMESPACES_VALUE

private static final boolean SAX_NAMESPACES_VALUE
See Also:
Constant Field Values

SAX_NAMESPACE_PREFIXES

private static final String SAX_NAMESPACE_PREFIXES
See Also:
Constant Field Values

SAX_NAMESPACE_PREFIXES_VALUE

private static final boolean SAX_NAMESPACE_PREFIXES_VALUE
See Also:
Constant Field Values
Constructor Detail

XMLUtils

public XMLUtils()
Method Detail

parseSpecification

public static void parseSpecification(Rule rule,
                                      ContentHandler cHandler)
                               throws RuleException
Parse the specified Rule's specification using the content handler that is provided.

Parameters:
rule - the rule whose specification should be parsed
cHandler - the content handler to use
Throws:
RuleException

parseSpecification

public static void parseSpecification(InputSource source,
                                      ContentHandler cHandler)
                               throws IOException,
                                      SAXException
Parse the contents of the InputSource using the content handler that is provided.

Parameters:
cHandler - the content handler to use
Throws:
IOException
SAXException

getParser

private static XMLReader getParser()
                            throws SAXException
Get an XMLReader using the parser factory.

Throws:
SAXException