org.opennms.netmgt.correlation.drools.config
Class EngineConfiguration

java.lang.Object
  extended by org.opennms.netmgt.correlation.drools.config.EngineConfiguration
All Implemented Interfaces:
java.io.Serializable

public class EngineConfiguration
extends java.lang.Object
implements java.io.Serializable

The top-level element of the drools-engine.xml configuration file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
EngineConfiguration()
           
 
Method Summary
 void addRuleSet(int index, RuleSet vRuleSet)
          Method addRuleSet
 void addRuleSet(RuleSet vRuleSet)
          Method addRuleSet
 void clearRuleSet()
          Method clearRuleSet
 java.util.Enumeration enumerateRuleSet()
          Method enumerateRuleSet
 RuleSet[] getRuleSet()
          Method getRuleSet
 RuleSet getRuleSet(int index)
          Method getRuleSet
 java.util.ArrayList getRuleSetCollection()
          Method getRuleSetCollection Returns a reference to 'ruleSet'.
 int getRuleSetCount()
          Method getRuleSetCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeRuleSet(RuleSet vRuleSet)
          Method removeRuleSet
 void setRuleSet(java.util.ArrayList ruleSetCollection)
          Method setRuleSet Sets the value of 'ruleSet' by copying the given ArrayList.
 void setRuleSet(int index, RuleSet vRuleSet)
          Method setRuleSet
 void setRuleSet(RuleSet[] ruleSetArray)
          Method setRuleSet
 void setRuleSetCollection(java.util.ArrayList ruleSetCollection)
          Method setRuleSetCollection Sets the value of 'ruleSet' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineConfiguration

public EngineConfiguration()
Method Detail

addRuleSet

public void addRuleSet(RuleSet vRuleSet)
                throws java.lang.IndexOutOfBoundsException
Method addRuleSet

Parameters:
vRuleSet -
Throws:
java.lang.IndexOutOfBoundsException

addRuleSet

public void addRuleSet(int index,
                       RuleSet vRuleSet)
                throws java.lang.IndexOutOfBoundsException
Method addRuleSet

Parameters:
index -
vRuleSet -
Throws:
java.lang.IndexOutOfBoundsException

clearRuleSet

public void clearRuleSet()
Method clearRuleSet


enumerateRuleSet

public java.util.Enumeration enumerateRuleSet()
Method enumerateRuleSet

Returns:
Enumeration

getRuleSet

public RuleSet getRuleSet(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getRuleSet

Parameters:
index -
Returns:
RuleSet
Throws:
java.lang.IndexOutOfBoundsException

getRuleSet

public RuleSet[] getRuleSet()
Method getRuleSet

Returns:
RuleSet

getRuleSetCollection

public java.util.ArrayList getRuleSetCollection()
Method getRuleSetCollection Returns a reference to 'ruleSet'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getRuleSetCount

public int getRuleSetCount()
Method getRuleSetCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeRuleSet

public boolean removeRuleSet(RuleSet vRuleSet)
Method removeRuleSet

Parameters:
vRuleSet -
Returns:
boolean

setRuleSet

public void setRuleSet(int index,
                       RuleSet vRuleSet)
                throws java.lang.IndexOutOfBoundsException
Method setRuleSet

Parameters:
index -
vRuleSet -
Throws:
java.lang.IndexOutOfBoundsException

setRuleSet

public void setRuleSet(RuleSet[] ruleSetArray)
Method setRuleSet

Parameters:
ruleSetArray -

setRuleSet

public void setRuleSet(java.util.ArrayList ruleSetCollection)
Method setRuleSet Sets the value of 'ruleSet' by copying the given ArrayList.

Parameters:
ruleSetCollection - the Vector to copy.

setRuleSetCollection

public void setRuleSetCollection(java.util.ArrayList ruleSetCollection)
Method setRuleSetCollection Sets the value of 'ruleSet' by setting it to the given ArrayList. No type checking is performed.

Parameters:
ruleSetCollection - the ArrayList to copy.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.