|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.drools.io.RuleSetReader
RuleSet
loader.
Field Summary | |
static String |
RULES_NAMESPACE_URI
Namespace URI for the general tags. |
Constructor Summary | |
RuleSetReader()
Construct. |
|
RuleSetReader(javax.xml.parsers.SAXParser parser)
Construct. |
|
RuleSetReader(SemanticsRepository repo)
Construct. |
|
RuleSetReader(SemanticsRepository repo,
javax.xml.parsers.SAXParser parser)
Construct. |
Method Summary | |
void |
characters(char[] chars,
int start,
int len)
|
protected Configuration |
endConfiguration()
End a configuration node. |
void |
endElement(String uri,
String localName,
String qname)
|
void |
error(org.xml.sax.SAXParseException x)
|
void |
fatalError(org.xml.sax.SAXParseException x)
|
(package private) Object |
getCurrent()
|
org.xml.sax.Locator |
getLocator()
Get the Locator . |
(package private) Object |
getParent(Class parent)
|
(package private) LinkedList |
getParents()
|
(package private) Object |
getPeer()
|
RuleSet |
getRuleSet()
|
SemanticsRepository |
getSemanticsRepository()
|
(package private) SemanticModule |
lookupSemanticModule(String uri,
String localName)
|
RuleSet |
read(org.xml.sax.InputSource in)
Read a RuleSet from an InputSource . |
RuleSet |
read(InputStream inputStream)
Read a RuleSet from an InputStream . |
RuleSet |
read(Reader reader)
Read a RuleSet from a Reader . |
RuleSet |
read(String url)
Read a RuleSet from a URL. |
RuleSet |
read(URL url)
Read a RuleSet from a URL . |
org.xml.sax.InputSource |
resolveEntity(String publicId,
String systemId)
|
void |
setLocator(org.xml.sax.Locator locator)
|
(package private) void |
setRuleSet(RuleSet ruleSet)
|
protected void |
startConfiguration(String name,
org.xml.sax.Attributes attrs)
Start a configuration node. |
void |
startDocument()
|
void |
startElement(String uri,
String localName,
String qname,
org.xml.sax.Attributes attrs)
|
void |
warning(org.xml.sax.SAXParseException x)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String RULES_NAMESPACE_URI
Constructor Detail |
public RuleSetReader()
Uses the default JAXP SAX parser and the default classpath-based
DefaultSemanticModule
.
public RuleSetReader(javax.xml.parsers.SAXParser parser)
Uses the default classpath-based DefaultSemanticModule
.
parser
- The SAX parser.public RuleSetReader(SemanticsRepository repo, javax.xml.parsers.SAXParser parser)
repo
- The semantics repository.parser
- The SAX parser.public RuleSetReader(SemanticsRepository repo)
repo
- The semantics repository.Method Detail |
public RuleSet read(URL url) throws Exception
RuleSet
from a URL
.
url
- The rule-set URL.
Exception
- If an error occurs during the parse.public RuleSet read(Reader reader) throws Exception
RuleSet
from a Reader
.
reader
- The reader containing the rule-set.
Exception
- If an error occurs during the parse.public RuleSet read(InputStream inputStream) throws Exception
RuleSet
from an InputStream
.
inputStream
- The input-stream containing the rule-set.
Exception
- If an error occurs during the parse.public RuleSet read(String url) throws Exception
RuleSet
from a URL.
url
- The rule-set URL.
Exception
- If an error occurs during the parse.public RuleSet read(org.xml.sax.InputSource in) throws Exception
RuleSet
from an InputSource
.
in
- The rule-set input-source.
Exception
- If an error occurs during the parse.public SemanticsRepository getSemanticsRepository()
void setRuleSet(RuleSet ruleSet)
public RuleSet getRuleSet()
public void setLocator(org.xml.sax.Locator locator)
ContentHandler
public org.xml.sax.Locator getLocator()
Locator
.
public void startDocument()
public void startElement(String uri, String localName, String qname, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
org.xml.sax.SAXException
ContentHandler
public void endElement(String uri, String localName, String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
ContentHandler
protected void startConfiguration(String name, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
name
- Tag name.attrs
- Tag attributes.
org.xml.sax.SAXException
- If an error occurs during parse.public void characters(char[] chars, int start, int len) throws org.xml.sax.SAXException
org.xml.sax.SAXException
ContentHandler
protected Configuration endConfiguration()
SemanticModule lookupSemanticModule(String uri, String localName) throws org.xml.sax.SAXParseException
org.xml.sax.SAXParseException
LinkedList getParents()
Object getParent(Class parent)
Object getPeer()
Object getCurrent()
public org.xml.sax.InputSource resolveEntity(String publicId, String systemId) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException x)
public void error(org.xml.sax.SAXParseException x)
public void fatalError(org.xml.sax.SAXParseException x) throws org.xml.sax.SAXParseException
org.xml.sax.SAXParseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |