|
||||||||||
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 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(String uri,
String localName,
String qname)
|
void |
error(org.xml.sax.SAXParseException x)
|
void |
fatalError(org.xml.sax.SAXParseException x)
|
(package private) Object |
getCurrent()
|
RuleBaseContext |
getFactoryContext()
|
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)
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(URL url) throws org.xml.sax.SAXException, IOException
RuleSet
from a URL
.
url
- The rule-set URL.
org.xml.sax.SAXException
IOException
public RuleSet read(Reader reader) throws org.xml.sax.SAXException, IOException
RuleSet
from a Reader
.
reader
- The reader containing the rule-set.
org.xml.sax.SAXException
IOException
public RuleSet read(InputStream inputStream) throws org.xml.sax.SAXException, IOException
RuleSet
from an InputStream
.
inputStream
- The input-stream containing the rule-set.
org.xml.sax.SAXException
IOException
public RuleSet read(String url) throws org.xml.sax.SAXException, IOException
RuleSet
from a URL.
url
- The rule-set URL.
org.xml.sax.SAXException
IOException
public RuleSet read(org.xml.sax.InputSource in) throws org.xml.sax.SAXException, IOException
RuleSet
from an InputSource
.
in
- The rule-set input-source.
org.xml.sax.SAXException
IOException
public SemanticsRepository getSemanticsRepository()
void setRuleSet(RuleSet ruleSet)
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(String uri, String localName, 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
uri
- localName
- qname
- attrs
-
org.xml.sax.SAXException
ContentHandler
public void endElement(String uri, String localName, String qname) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
uri
- localName
- qname
-
org.xml.sax.SAXException
ContentHandler
protected void startConfiguration(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()
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)
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 |