| java.lang.Object org.mandarax.xkb.AbstractXKBDriver org.mandarax.xkb.ruleml.AbstractRuleMLDriver
All known Subclasses: org.mandarax.xkb.ruleml.RuleML0_8Driver, org.mandarax.xkb.ruleml.RuleML0_8_1Driver,
AbstractRuleMLDriver | abstract class AbstractRuleMLDriver extends AbstractXKBDriver (Code) | | Abstract superclass for ruleml drivers.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.9 |
Method Summary | |
protected Element | export(ConstantTerm ct) Export a constant term, e.g. | protected Element | export(Fact f) Export a fact, e.g. | abstract protected Element | export(KnowledgeBase kb) Export a knowledge base, e.g. | protected Element | export(Predicate p) Export a predicate, e.g. | protected Element | export(Rule r) Export a rule, e.g. | protected Element | export(VariableTerm v) Export a variable term, e.g. | protected Element | exportFact2Atom(Fact f) Export a fact, e.g. | protected Element | exportFact2Head(Fact f) Export a fact, e.g. | protected Element | exportJavaObject(Object obj) | public Document | exportKnowledgeBase(KnowledgeBase kb) Export a knowledge base, i.e., convert it into an xml document. | public String | getDescription() Get a short text describing the driver. | protected Fact | importAtom(Element e) Import an atom. | protected List | importBody(Element e) Import a body. | protected ConstantTerm | importConstantTerm(Element e) Import a constant term. | protected Fact | importFact(Element e) Import a fact. | protected Fact | importHead(Element e) Import a head. | protected Object | importJavaObject(Element e) Import a java object. | public KnowledgeBase | importKnowledgeBase(Document doc) Import a knowledge base, i.e., build it from an xml document. | abstract protected KnowledgeBase | importKnowledgeBase(Element e) Import a knowledge base. | protected Predicate | importPredicate(Element e) Import a predicate. | protected Rule | importRule(Element e) Import a rule. | protected Term | importTerm(Element e) Import a term. |
AbstractRuleMLDriver | public AbstractRuleMLDriver()(Code) | | Constructor.
|
export | protected Element export(ConstantTerm ct)(Code) | | Export a constant term, e.g. convert it into an xml element.
an element (of the jdom tree) Parameters: ct - a constant term |
export | protected Element export(Fact f)(Code) | | Export a fact, e.g. convert it into an xml element.
an element (of the jdom tree) Parameters: f - a fact |
export | abstract protected Element export(KnowledgeBase kb)(Code) | | Export a knowledge base, e.g. convert it into an xml element.
an element (of the jdom tree) Parameters: kb - a knowledge base |
export | protected Element export(Predicate p)(Code) | | Export a predicate, e.g. convert it into an xml element.
an element (of the jdom tree) Parameters: p - a predicate |
export | protected Element export(Rule r)(Code) | | Export a rule, e.g. convert it into an xml element.
an element (of the jdom tree) Parameters: r - a rule |
export | protected Element export(VariableTerm v)(Code) | | Export a variable term, e.g. convert it into an xml element.
an element (of the jdom tree) Parameters: v - a variable term |
exportFact2Atom | protected Element exportFact2Atom(Fact f)(Code) | | Export a fact, e.g. convert it into an xml element.
an element (of the jdom tree) Parameters: f - a fact |
exportFact2Head | protected Element exportFact2Head(Fact f)(Code) | | Export a fact, e.g. convert it into an xml element.
an element (of the jdom tree) Parameters: f - a fact |
exportJavaObject | protected Element exportJavaObject(Object obj)(Code) | | Export aan object
an element (of the jdom tree) Parameters: obj - an arbirtary object |
exportKnowledgeBase | public Document exportKnowledgeBase(KnowledgeBase kb) throws XKBException(Code) | | Export a knowledge base, i.e., convert it into an xml document.
an xml document Parameters: kb - a knowledge base throws: an - XKBException is thrown if export fails |
getDescription | public String getDescription()(Code) | | Get a short text describing the driver.
a text |
importAtom | protected Fact importAtom(Element e) throws XKBException(Code) | | Import an atom.
a fact Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importBody | protected List importBody(Element e) throws XKBException(Code) | | Import a body.
a list Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importConstantTerm | protected ConstantTerm importConstantTerm(Element e) throws XKBException(Code) | | Import a constant term.
a constant term Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importFact | protected Fact importFact(Element e) throws XKBException(Code) | | Import a fact.
a fact Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importHead | protected Fact importHead(Element e) throws XKBException(Code) | | Import a head.
a fact Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importJavaObject | protected Object importJavaObject(Element e) throws XKBException(Code) | | Import a java object.
a constant term Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importKnowledgeBase | public KnowledgeBase importKnowledgeBase(Document doc) throws XKBException(Code) | | Import a knowledge base, i.e., build it from an xml document.
a knowledge base Parameters: doc - an xml document throws: an - XKBException is thrown if import fails |
importKnowledgeBase | abstract protected KnowledgeBase importKnowledgeBase(Element e) throws XKBException(Code) | | Import a knowledge base.
a knowledge base Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importPredicate | protected Predicate importPredicate(Element e) throws XKBException(Code) | | Import a predicate.
a predicate Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importRule | protected Rule importRule(Element e) throws XKBException(Code) | | Import a rule.
a rule Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
importTerm | protected Term importTerm(Element e) throws XKBException(Code) | | Import a term.
a term Parameters: e - an xml element throws: an - XKBException is thrown if import fails |
Methods inherited from org.mandarax.xkb.AbstractXKBDriver | protected List collectChildren(Element e, String name1, String name2)(Code)(Java Doc) protected List collectChildren(Element e, String name1, String name2, String name3)(Code)(Java Doc) protected boolean compare(String s1, String s2)(Code)(Java Doc) protected int countChildren(Element e, String name)(Code)(Java Doc) protected int countChildren(Element e, String name1, String name2)(Code)(Java Doc) protected int countChildren(Element e, String name1, String name2, String name3)(Code)(Java Doc) public String getName()(Code)(Java Doc)
|
|
|