wt.rule.util
Class XMLUtils
java.lang.Object
wt.rule.util.XMLUtils
- public class XMLUtils
- extends Object
This class provides XML
utility methods that are used by classes
in the wt.rule
package.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
XMLUtils
public XMLUtils()
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 parsedcHandler
- 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