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

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

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

Class RuleSet.

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

Constructor Summary
RuleSet()
           
 
Method Summary
 void addEvent(int index, java.lang.String vEvent)
          Method addEvent
 void addEvent(java.lang.String vEvent)
          Method addEvent
 void addGlobal(Global vGlobal)
          Method addGlobal
 void addGlobal(int index, Global vGlobal)
          Method addGlobal
 void addRuleFile(int index, java.lang.String vRuleFile)
          Method addRuleFile
 void addRuleFile(java.lang.String vRuleFile)
          Method addRuleFile
 void clearEvent()
          Method clearEvent
 void clearGlobal()
          Method clearGlobal
 void clearRuleFile()
          Method clearRuleFile
 java.util.Enumeration enumerateEvent()
          Method enumerateEvent
 java.util.Enumeration enumerateGlobal()
          Method enumerateGlobal
 java.util.Enumeration enumerateRuleFile()
          Method enumerateRuleFile
 java.lang.String getAppContext()
          Returns the value of field 'appContext'.
 java.lang.String[] getEvent()
          Method getEvent
 java.lang.String getEvent(int index)
          Method getEvent
 java.util.ArrayList getEventCollection()
          Method getEventCollection Returns a reference to 'event'.
 int getEventCount()
          Method getEventCount
 Global[] getGlobal()
          Method getGlobal
 Global getGlobal(int index)
          Method getGlobal
 java.util.ArrayList getGlobalCollection()
          Method getGlobalCollection Returns a reference to 'global'.
 int getGlobalCount()
          Method getGlobalCount
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String[] getRuleFile()
          Method getRuleFile
 java.lang.String getRuleFile(int index)
          Method getRuleFile
 java.util.ArrayList getRuleFileCollection()
          Method getRuleFileCollection Returns a reference to 'ruleFile'.
 int getRuleFileCount()
          Method getRuleFileCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeEvent(java.lang.String vEvent)
          Method removeEvent
 boolean removeGlobal(Global vGlobal)
          Method removeGlobal
 boolean removeRuleFile(java.lang.String vRuleFile)
          Method removeRuleFile
 void setAppContext(java.lang.String appContext)
          Sets the value of field 'appContext'.
 void setEvent(java.util.ArrayList eventCollection)
          Method setEvent Sets the value of 'event' by copying the given ArrayList.
 void setEvent(int index, java.lang.String vEvent)
          Method setEvent
 void setEvent(java.lang.String[] eventArray)
          Method setEvent
 void setEventCollection(java.util.ArrayList eventCollection)
          Method setEventCollection Sets the value of 'event' by setting it to the given ArrayList.
 void setGlobal(java.util.ArrayList globalCollection)
          Method setGlobal Sets the value of 'global' by copying the given ArrayList.
 void setGlobal(Global[] globalArray)
          Method setGlobal
 void setGlobal(int index, Global vGlobal)
          Method setGlobal
 void setGlobalCollection(java.util.ArrayList globalCollection)
          Method setGlobalCollection Sets the value of 'global' by setting it to the given ArrayList.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setRuleFile(java.util.ArrayList ruleFileCollection)
          Method setRuleFile Sets the value of 'ruleFile' by copying the given ArrayList.
 void setRuleFile(int index, java.lang.String vRuleFile)
          Method setRuleFile
 void setRuleFile(java.lang.String[] ruleFileArray)
          Method setRuleFile
 void setRuleFileCollection(java.util.ArrayList ruleFileCollection)
          Method setRuleFileCollection Sets the value of 'ruleFile' 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

RuleSet

public RuleSet()
Method Detail

addEvent

public void addEvent(java.lang.String vEvent)
              throws java.lang.IndexOutOfBoundsException
Method addEvent

Parameters:
vEvent -
Throws:
java.lang.IndexOutOfBoundsException

addEvent

public void addEvent(int index,
                     java.lang.String vEvent)
              throws java.lang.IndexOutOfBoundsException
Method addEvent

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

addGlobal

public void addGlobal(Global vGlobal)
               throws java.lang.IndexOutOfBoundsException
Method addGlobal

Parameters:
vGlobal -
Throws:
java.lang.IndexOutOfBoundsException

addGlobal

public void addGlobal(int index,
                      Global vGlobal)
               throws java.lang.IndexOutOfBoundsException
Method addGlobal

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

addRuleFile

public void addRuleFile(java.lang.String vRuleFile)
                 throws java.lang.IndexOutOfBoundsException
Method addRuleFile

Parameters:
vRuleFile -
Throws:
java.lang.IndexOutOfBoundsException

addRuleFile

public void addRuleFile(int index,
                        java.lang.String vRuleFile)
                 throws java.lang.IndexOutOfBoundsException
Method addRuleFile

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

clearEvent

public void clearEvent()
Method clearEvent


clearGlobal

public void clearGlobal()
Method clearGlobal


clearRuleFile

public void clearRuleFile()
Method clearRuleFile


enumerateEvent

public java.util.Enumeration enumerateEvent()
Method enumerateEvent

Returns:
Enumeration

enumerateGlobal

public java.util.Enumeration enumerateGlobal()
Method enumerateGlobal

Returns:
Enumeration

enumerateRuleFile

public java.util.Enumeration enumerateRuleFile()
Method enumerateRuleFile

Returns:
Enumeration

getAppContext

public java.lang.String getAppContext()
Returns the value of field 'appContext'.

Returns:
String

getEvent

public java.lang.String getEvent(int index)
                          throws java.lang.IndexOutOfBoundsException
Method getEvent

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

getEvent

public java.lang.String[] getEvent()
Method getEvent

Returns:
String

getEventCollection

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

Returns:
ArrayList

getEventCount

public int getEventCount()
Method getEventCount

Returns:
int

getGlobal

public Global getGlobal(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getGlobal

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

getGlobal

public Global[] getGlobal()
Method getGlobal

Returns:
Global

getGlobalCollection

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

Returns:
ArrayList

getGlobalCount

public int getGlobalCount()
Method getGlobalCount

Returns:
int

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
String

getRuleFile

public java.lang.String getRuleFile(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getRuleFile

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

getRuleFile

public java.lang.String[] getRuleFile()
Method getRuleFile

Returns:
String

getRuleFileCollection

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

Returns:
ArrayList

getRuleFileCount

public int getRuleFileCount()
Method getRuleFileCount

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

removeEvent

public boolean removeEvent(java.lang.String vEvent)
Method removeEvent

Parameters:
vEvent -
Returns:
boolean

removeGlobal

public boolean removeGlobal(Global vGlobal)
Method removeGlobal

Parameters:
vGlobal -
Returns:
boolean

removeRuleFile

public boolean removeRuleFile(java.lang.String vRuleFile)
Method removeRuleFile

Parameters:
vRuleFile -
Returns:
boolean

setAppContext

public void setAppContext(java.lang.String appContext)
Sets the value of field 'appContext'.

Parameters:
appContext - the value of field 'appContext'.

setEvent

public void setEvent(int index,
                     java.lang.String vEvent)
              throws java.lang.IndexOutOfBoundsException
Method setEvent

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

setEvent

public void setEvent(java.lang.String[] eventArray)
Method setEvent

Parameters:
eventArray -

setEvent

public void setEvent(java.util.ArrayList eventCollection)
Method setEvent Sets the value of 'event' by copying the given ArrayList.

Parameters:
eventCollection - the Vector to copy.

setEventCollection

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

Parameters:
eventCollection - the ArrayList to copy.

setGlobal

public void setGlobal(int index,
                      Global vGlobal)
               throws java.lang.IndexOutOfBoundsException
Method setGlobal

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

setGlobal

public void setGlobal(Global[] globalArray)
Method setGlobal

Parameters:
globalArray -

setGlobal

public void setGlobal(java.util.ArrayList globalCollection)
Method setGlobal Sets the value of 'global' by copying the given ArrayList.

Parameters:
globalCollection - the Vector to copy.

setGlobalCollection

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

Parameters:
globalCollection - the ArrayList to copy.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

Parameters:
name - the value of field 'name'.

setRuleFile

public void setRuleFile(int index,
                        java.lang.String vRuleFile)
                 throws java.lang.IndexOutOfBoundsException
Method setRuleFile

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

setRuleFile

public void setRuleFile(java.lang.String[] ruleFileArray)
Method setRuleFile

Parameters:
ruleFileArray -

setRuleFile

public void setRuleFile(java.util.ArrayList ruleFileCollection)
Method setRuleFile Sets the value of 'ruleFile' by copying the given ArrayList.

Parameters:
ruleFileCollection - the Vector to copy.

setRuleFileCollection

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

Parameters:
ruleFileCollection - 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.