public abstract class AbstractXMLFactory extends AbstractRuleExecutionSetFactory implements IRuleExecutionSetXMLFactory
Modifier and Type | Class and Description |
---|---|
protected static interface |
AbstractXMLFactory.MainRuleFactory |
Modifier and Type | Field and Description |
---|---|
protected int |
level |
protected static String |
NODE_RULES |
Constructor and Description |
---|
AbstractXMLFactory() |
AbstractXMLFactory(CompilationLevel compilationLevel) |
AbstractXMLFactory(ICompilationContext compilationContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
autoSetFromAttributes(Node node,
Object obj) |
protected void |
autoSetFromChildren(Node node,
Object obj) |
protected void |
closeNode(Outer os,
String n) |
protected void |
closeNode(Outer os,
String n,
boolean spaces) |
protected void |
finishCloseNode(Outer os) |
protected void |
finishOpenNode(Outer os) |
protected void |
finishOpenNode(Outer os,
boolean lf) |
protected IEvaluationOperator |
getEvaluationOperator(Node node) |
protected IEvaluationOperator |
getEvaluationOperator(Node node,
boolean mandatory) |
protected ILogicalOperator |
getLogicalOperator(Node node) |
protected ILogicalOperator |
getLogicalOperator(Node node,
boolean mandatory) |
protected abstract AbstractXMLFactory.MainRuleFactory |
getMainRuleFactory() |
String |
getSpaces() |
protected String |
handleRuleEngineObject(Node node,
IMRulesObject obj,
boolean nameMandatory) |
protected void |
openNode(Outer os,
String n) |
protected void |
openNode(Outer os,
String n,
boolean lf) |
IMRuleExecutionSet |
read(InputSource is)
Reads MRuleExecutionSet configuration
|
IMRuleExecutionSet |
read(InputStream is)
Reads IMRuleExecutionSet configuration
|
IMRuleExecutionSet |
read(Node doc)
Reads MRuleExecutionSet configuration
|
IMRuleExecutionSet |
read(Object obj)
Reads IMRuleExecutionSet configuration
|
IMRuleExecutionSet |
read(Reader r)
Reads IMRuleExecutionSet configuration
|
IMRuleExecutionSet |
read(Serializable obj)
Reads IMRuleExecutionSet configuration
|
protected void |
startOpenNode(Outer os,
String n) |
protected void |
updateDebugInfos(Node node,
IMRulesObject obj) |
void |
write(Outer os,
IMRuleExecutionSet rule) |
void |
write(OutputStream os,
IMRuleExecutionSet rule)
Writes IMRuleExecutionSet configuration with default charset
|
void |
write(OutputStream os,
IMRuleExecutionSet rule,
String charset)
Writes IMRuleExecutionSet configuration with default charset
|
void |
write(Writer w,
IMRuleExecutionSet rule)
Writes IMRuleExecutionSet configuration
|
protected void |
writeAttribute(Outer os,
String name,
String value) |
protected void |
writeNode(Outer os,
String n) |
protected void |
writeNode(Outer os,
String n,
String v) |
protected void |
writeNode(Outer os,
String n,
String v,
Map<String,String> attrs) |
protected void |
writeNode(Outer os,
String n,
String v,
String attrName,
String attrValue) |
compile, getCacheActivationResolver, getCompilationContext, getCompilationLevel, isForceCompilationLevel, isOptimizationEnabled, setCacheActivationResolver, setCompilationContext, setCompilationLevel, setForceCompilationLevel, setOptimizationEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCacheActivationResolver, getCompilationContext, getCompilationLevel, isForceCompilationLevel, isOptimizationEnabled, setCacheActivationResolver, setCompilationContext, setCompilationLevel, setForceCompilationLevel, setOptimizationEnabled
protected static final String NODE_RULES
protected int level
public AbstractXMLFactory()
public AbstractXMLFactory(CompilationLevel compilationLevel)
public AbstractXMLFactory(ICompilationContext compilationContext)
public IMRuleExecutionSet read(Object obj) throws XMLMConfigurationException
IRuleExecutionSetFactory
read
in interface IRuleExecutionSetFactory
XMLMConfigurationException
public IMRuleExecutionSet read(Serializable obj) throws XMLMConfigurationException
IRuleExecutionSetFactory
read
in interface IRuleExecutionSetFactory
XMLMConfigurationException
public IMRuleExecutionSet read(InputStream is) throws XMLMConfigurationException
IRuleExecutionSetFactory
read
in interface IRuleExecutionSetFactory
XMLMConfigurationException
public IMRuleExecutionSet read(Reader r) throws XMLMConfigurationException
IRuleExecutionSetFactory
read
in interface IRuleExecutionSetFactory
XMLMConfigurationException
public IMRuleExecutionSet read(InputSource is) throws XMLMConfigurationException
IRuleExecutionSetXMLFactory
read
in interface IRuleExecutionSetXMLFactory
XMLMConfigurationException
public IMRuleExecutionSet read(Node doc) throws XMLMConfigurationException
IRuleExecutionSetXMLFactory
read
in interface IRuleExecutionSetXMLFactory
XMLMConfigurationException
public void write(Writer w, IMRuleExecutionSet rule) throws MConfigurationException, IOException
write
in interface IRuleExecutionSetFactory
MConfigurationException
IOException
public void write(OutputStream os, IMRuleExecutionSet rule) throws MConfigurationException, IOException
write
in interface IRuleExecutionSetFactory
MConfigurationException
IOException
public void write(OutputStream os, IMRuleExecutionSet rule, String charset) throws MConfigurationException, IOException
write
in interface IRuleExecutionSetFactory
MConfigurationException
IOException
public void write(Outer os, IMRuleExecutionSet rule) throws XMLMConfigurationException, IOException
protected abstract AbstractXMLFactory.MainRuleFactory getMainRuleFactory()
protected String handleRuleEngineObject(Node node, IMRulesObject obj, boolean nameMandatory) throws XMLMConfigurationException
XMLMConfigurationException
protected void updateDebugInfos(Node node, IMRulesObject obj)
protected ILogicalOperator getLogicalOperator(Node node) throws XMLMConfigurationException
XMLMConfigurationException
protected ILogicalOperator getLogicalOperator(Node node, boolean mandatory) throws XMLMConfigurationException
XMLMConfigurationException
protected IEvaluationOperator getEvaluationOperator(Node node) throws XMLMConfigurationException
XMLMConfigurationException
protected IEvaluationOperator getEvaluationOperator(Node node, boolean mandatory) throws XMLMConfigurationException
XMLMConfigurationException
protected void autoSetFromAttributes(Node node, Object obj) throws XMLUtilsException
XMLUtilsException
protected void autoSetFromChildren(Node node, Object obj) throws XMLUtilsException
XMLUtilsException
protected void startOpenNode(Outer os, String n) throws IOException
IOException
protected void finishOpenNode(Outer os) throws IOException
IOException
protected void finishOpenNode(Outer os, boolean lf) throws IOException
IOException
protected void finishCloseNode(Outer os) throws IOException
IOException
protected void openNode(Outer os, String n) throws IOException
IOException
protected void openNode(Outer os, String n, boolean lf) throws IOException
IOException
protected void writeNode(Outer os, String n) throws IOException
IOException
protected void writeNode(Outer os, String n, String v) throws IOException
IOException
protected void writeNode(Outer os, String n, String v, String attrName, String attrValue) throws IOException
IOException
protected void writeNode(Outer os, String n, String v, Map<String,String> attrs) throws IOException
IOException
protected void writeAttribute(Outer os, String name, String value) throws IOException
IOException
protected void closeNode(Outer os, String n) throws IOException
IOException
protected void closeNode(Outer os, String n, boolean spaces) throws IOException
IOException
public String getSpaces()