|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.correlation.drools.config.RuleSet
public class RuleSet
Class RuleSet.
| Constructor Summary | |
|---|---|
RuleSet()
|
|
| Method Summary | |
|---|---|
void |
addEvent(int index,
String vEvent)
|
void |
addEvent(String vEvent)
|
void |
addGlobal(Global vGlobal)
|
void |
addGlobal(int index,
Global vGlobal)
|
void |
addRuleFile(int index,
String vRuleFile)
|
void |
addRuleFile(String vRuleFile)
|
Enumeration<String> |
enumerateEvent()
Method enumerateEvent. |
Enumeration<Global> |
enumerateGlobal()
Method enumerateGlobal. |
Enumeration<String> |
enumerateRuleFile()
Method enumerateRuleFile. |
String |
getAppContext()
Returns the value of field 'appContext'. |
String[] |
getEvent()
Method getEvent.Returns the contents of the collection in an Array. |
String |
getEvent(int index)
Method getEvent. |
List<String> |
getEventCollection()
Method getEventCollection.Returns a reference to '_eventList'. |
int |
getEventCount()
Method getEventCount. |
Global[] |
getGlobal()
Method getGlobal.Returns the contents of the collection in an Array. |
Global |
getGlobal(int index)
Method getGlobal. |
List<Global> |
getGlobalCollection()
Method getGlobalCollection.Returns a reference to '_globalList'. |
int |
getGlobalCount()
Method getGlobalCount. |
String |
getName()
Returns the value of field 'name'. |
String[] |
getRuleFile()
Method getRuleFile.Returns the contents of the collection in an Array. |
String |
getRuleFile(int index)
Method getRuleFile. |
List<String> |
getRuleFileCollection()
Method getRuleFileCollection.Returns a reference to '_ruleFileList'. |
int |
getRuleFileCount()
Method getRuleFileCount. |
boolean |
isValid()
Method isValid. |
Iterator<String> |
iterateEvent()
Method iterateEvent. |
Iterator<Global> |
iterateGlobal()
Method iterateGlobal. |
Iterator<String> |
iterateRuleFile()
Method iterateRuleFile. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllEvent()
|
void |
removeAllGlobal()
|
void |
removeAllRuleFile()
|
boolean |
removeEvent(String vEvent)
Method removeEvent. |
String |
removeEventAt(int index)
Method removeEventAt. |
boolean |
removeGlobal(Global vGlobal)
Method removeGlobal. |
Global |
removeGlobalAt(int index)
Method removeGlobalAt. |
boolean |
removeRuleFile(String vRuleFile)
Method removeRuleFile. |
String |
removeRuleFileAt(int index)
Method removeRuleFileAt. |
void |
setAppContext(String appContext)
Sets the value of field 'appContext'. |
void |
setEvent(int index,
String vEvent)
|
void |
setEvent(List<String> vEventList)
Sets the value of '_eventList' by copying the given Vector. |
void |
setEvent(String[] vEventArray)
|
void |
setEventCollection(List<String> eventList)
Deprecated. |
void |
setGlobal(Global[] vGlobalArray)
|
void |
setGlobal(int index,
Global vGlobal)
|
void |
setGlobal(List<Global> vGlobalList)
Sets the value of '_globalList' by copying the given Vector. |
void |
setGlobalCollection(List<Global> globalList)
Deprecated. |
void |
setName(String name)
Sets the value of field 'name'. |
void |
setRuleFile(int index,
String vRuleFile)
|
void |
setRuleFile(List<String> vRuleFileList)
Sets the value of '_ruleFileList' by copying the given Vector. |
void |
setRuleFile(String[] vRuleFileArray)
|
void |
setRuleFileCollection(List<String> ruleFileList)
Deprecated. |
static RuleSet |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RuleSet()
| Method Detail |
|---|
public void addEvent(String vEvent)
throws IndexOutOfBoundsException
vEvent -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addEvent(int index,
String vEvent)
throws IndexOutOfBoundsException
index - vEvent -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addGlobal(Global vGlobal)
throws IndexOutOfBoundsException
vGlobal -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addGlobal(int index,
Global vGlobal)
throws IndexOutOfBoundsException
index - vGlobal -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addRuleFile(String vRuleFile)
throws IndexOutOfBoundsException
vRuleFile -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addRuleFile(int index,
String vRuleFile)
throws IndexOutOfBoundsException
index - vRuleFile -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<String> enumerateEvent()
public Enumeration<Global> enumerateGlobal()
public Enumeration<String> enumerateRuleFile()
public String getAppContext()
public String getEvent(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getEvent()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<String> getEventCollection()
public int getEventCount()
public Global getGlobal(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Global[] getGlobal()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Global> getGlobalCollection()
public int getGlobalCount()
public String getName()
public String getRuleFile(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getRuleFile()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<String> getRuleFileCollection()
public int getRuleFileCount()
public boolean isValid()
public Iterator<String> iterateEvent()
public Iterator<Global> iterateGlobal()
public Iterator<String> iterateRuleFile()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllEvent()
public void removeAllGlobal()
public void removeAllRuleFile()
public boolean removeEvent(String vEvent)
vEvent -
public String removeEventAt(int index)
index -
public boolean removeGlobal(Global vGlobal)
vGlobal -
public Global removeGlobalAt(int index)
index -
public boolean removeRuleFile(String vRuleFile)
vRuleFile -
public String removeRuleFileAt(int index)
index -
public void setAppContext(String appContext)
appContext - the value of field 'appContext'.
public void setEvent(int index,
String vEvent)
throws IndexOutOfBoundsException
index - vEvent -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setEvent(String[] vEventArray)
vEventArray - public void setEvent(List<String> vEventList)
vEventList - the Vector to copy.public void setEventCollection(List<String> eventList)
eventList - the Vector to set.
public void setGlobal(int index,
Global vGlobal)
throws IndexOutOfBoundsException
index - vGlobal -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setGlobal(Global[] vGlobalArray)
vGlobalArray - public void setGlobal(List<Global> vGlobalList)
vGlobalList - the Vector to copy.public void setGlobalCollection(List<Global> globalList)
globalList - the Vector to set.public void setName(String name)
name - the value of field 'name'.
public void setRuleFile(int index,
String vRuleFile)
throws IndexOutOfBoundsException
index - vRuleFile -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setRuleFile(String[] vRuleFileArray)
vRuleFileArray - public void setRuleFile(List<String> vRuleFileList)
vRuleFileList - the Vector to copy.public void setRuleFileCollection(List<String> ruleFileList)
ruleFileList - the Vector to set.
public static RuleSet unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||