| java.lang.Object org.xml.sax.helpers.DefaultHandler org.drools.xml.XmlPackageReader
XmlPackageReader | public class XmlPackageReader extends DefaultHandler (Code) | | RuleSet loader.
Note you can override the default entity resolver by setting the System property of:
org.drools.io.EntityResolve to your own custom entity resolver.
This can be done using -Dorg.drools.io.EntityResolver=YourClassHere on the command line, for instance.
author: bob mcwhirter |
Method Summary | |
public void | characters(char[] chars, int start, int len) | protected Configuration | endConfiguration() End a configuration node. | public void | endElement(String uri, String localName, String qname) | public void | endPrefixMapping(String prefix) | public void | error(SAXParseException x) | public void | fatalError(SAXParseException x) | Object | getCurrent() | Handler | getHandler(String localName) | public Locator | getLocator() Get the Locator . | public PackageDescr | getPackageDescr() | Object | getParent(Class parent) | LinkedList | getParents() | Object | getPeer() | public PackageDescr | read(Reader reader) Read a RuleSet from a Reader .
Parameters: reader - The reader containing the rule-set. | public PackageDescr | read(InputStream inputStream) Read a RuleSet from an InputStream .
Parameters: inputStream - The input-stream containing the rule-set. | public PackageDescr | read(InputSource in) Read a RuleSet from an InputSource .
Parameters: in - The rule-set input-source. | public InputSource | resolveEntity(String publicId, String systemId) | public void | setDocumentLocator(Locator locator) | void | setPackageDescr(PackageDescr packageDescr) | protected void | startConfiguration(String name, Attributes attrs) Start a configuration node. | public void | startDocument() | public void | startElement(String uri, String localName, String qname, Attributes attrs) | public void | startPrefixMapping(String prefix, String uri) | public void | warning(SAXParseException x) |
ENTITY_RESOLVER_PROPERTY_NAME | final public static String ENTITY_RESOLVER_PROPERTY_NAME(Code) | | |
RULES_NAMESPACE_URI | final public static String RULES_NAMESPACE_URI(Code) | | Namespace URI for the general tags.
|
XmlPackageReader | public XmlPackageReader()(Code) | | Construct.
Uses the default JAXP SAX parser and the default classpath-based
DefaultSemanticModule .
|
XmlPackageReader | public XmlPackageReader(SAXParser parser)(Code) | | Construct.
Uses the default classpath-based DefaultSemanticModule .
Parameters: parser - The SAX parser. |
characters | public void characters(char[] chars, int start, int len)(Code) | | Parameters: chars - Parameters: start - Parameters: len - See Also: org.xml.sax.ContentHandler |
endConfiguration | protected Configuration endConfiguration()(Code) | | End a configuration node.
The configuration. |
getLocator | public Locator getLocator()(Code) | | Get the Locator .
The locator. |
startConfiguration | protected void startConfiguration(String name, Attributes attrs)(Code) | | Start a configuration node.
Parameters: name - Tag name. Parameters: attrs - Tag attributes. |
startDocument | public void startDocument()(Code) | | |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|