|
|||||||||
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
public class RuleSetReader
RuleSet
loader.
Field Summary | |
---|---|
static java.lang.String |
RULES_NAMESPACE_URI
Namespace URI for the general tags. |
Constructor Summary | |
---|---|
RuleSetReader()
Construct. |
|
RuleSetReader(RuleBaseContext factoryContext)
Construct. |
|
RuleSetReader(javax.xml.parsers.SAXParser parser)
Construct. |
|
RuleSetReader(javax.xml.parsers.SAXParser parser,
RuleBaseContext context)
Construct. |
|
RuleSetReader(javax.xml.parsers.SAXParser parser,
SemanticsRepository repo)
Construct. |
|
RuleSetReader(SemanticsRepository repo)
Construct. |
|
RuleSetReader(SemanticsRepository repo,
RuleBaseContext context)
Construct. |
|
RuleSetReader(SemanticsRepository repo,
javax.xml.parsers.SAXParser parser)
Construct. |
|
RuleSetReader(SemanticsRepository repo,
javax.xml.parsers.SAXParser parser,
RuleBaseContext context)
Construct. |
Method Summary | |
---|---|
void |
characters(char[] chars,
int start,
int len)
|
protected Configuration |
endConfiguration()
End a configuration node. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qname)
|
void |
error(org.xml.sax.SAXParseException x)
|
void |
fatalError(org.xml.sax.SAXParseException x)
|
RuleBaseContext |
getFactoryContext()
|
org.xml.sax.Locator |
getLocator()
Get the Locator . |
RuleSet |
getRuleSet()
|
SemanticsRepository |
getSemanticsRepository()
|
RuleSet |
read(org.xml.sax.InputSource in)
Read a RuleSet from an InputSource . |
RuleSet |
read(java.io.InputStream inputStream)
Read a RuleSet from an InputStream . |
RuleSet |
read(java.io.Reader reader)
Read a RuleSet from a Reader . |
RuleSet |
read(java.lang.String url)
Read a RuleSet from a URL. |
RuleSet |
read(java.net.URL url)
Read a RuleSet from a URL . |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
void |
setLocator(org.xml.sax.Locator locator)
|
protected void |
startConfiguration(java.lang.String name,
org.xml.sax.Attributes attrs)
Start a configuration node. |
void |
startDocument()
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.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 java.lang.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)
repo
- The semantics repository.public RuleSetReader(RuleBaseContext factoryContext)
factoryContext
- public RuleSetReader(SemanticsRepository repo, javax.xml.parsers.SAXParser parser)
repo
- The semantics repository.parser
- The SAX parser.public RuleSetReader(SemanticsRepository repo, RuleBaseContext context)
repo
- The semantics repository.public RuleSetReader(javax.xml.parsers.SAXParser parser, SemanticsRepository repo)
parser
- repo
- The semantics repository.public RuleSetReader(javax.xml.parsers.SAXParser parser, RuleBaseContext context)
parser
- context
- public RuleSetReader(SemanticsRepository repo, javax.xml.parsers.SAXParser parser, RuleBaseContext context)
repo
- The semantics repository.parser
- The SAX parser.Method Detail |
---|
public RuleSet read(java.net.URL url) throws org.xml.sax.SAXException, java.io.IOException
RuleSet
from a URL
.
org.xml.sax.SAXException
java.io.IOException
url
- The rule-set URL.
public RuleSet read(java.io.Reader reader) throws org.xml.sax.SAXException, java.io.IOException
RuleSet
from a Reader
.
org.xml.sax.SAXException
java.io.IOException
reader
- The reader containing the rule-set.
public RuleSet read(java.io.InputStream inputStream) throws org.xml.sax.SAXException, java.io.IOException
RuleSet
from an InputStream
.
org.xml.sax.SAXException
java.io.IOException
inputStream
- The input-stream containing the rule-set.
public RuleSet read(java.lang.String url) throws org.xml.sax.SAXException, java.io.IOException
RuleSet
from a URL.
org.xml.sax.SAXException
java.io.IOException
url
- The rule-set URL.
public RuleSet read(org.xml.sax.InputSource in) throws org.xml.sax.SAXException, java.io.IOException
RuleSet
from an InputSource
.
org.xml.sax.SAXException
java.io.IOException
in
- The rule-set input-source.
public SemanticsRepository getSemanticsRepository()
public RuleSet getRuleSet()
public RuleBaseContext getFactoryContext()
public void setLocator(org.xml.sax.Locator locator)
ContentHandler
public org.xml.sax.Locator getLocator()
Locator
.
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
uri
- localName
- qname
- attrs
- ContentHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qname) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
uri
- localName
- qname
- ContentHandler
protected void startConfiguration(java.lang.String name, org.xml.sax.Attributes attrs)
name
- Tag name.attrs
- Tag attributes.public void characters(char[] chars, int start, int len)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
chars
- start
- len
- ContentHandler
protected Configuration endConfiguration()
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
public void warning(org.xml.sax.SAXParseException x)
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
public void error(org.xml.sax.SAXParseException x)
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
public void fatalError(org.xml.sax.SAXParseException x) throws org.xml.sax.SAXParseException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |