|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.policy.RuleArray
public class RuleArray
An array of Rules, as kept in the ServiceRule.
ServiceRule,
Rule,
Serialized Form| Method Summary | |
|---|---|
boolean |
add(Rule item)
Adds a Rule to this RuleArray. |
java.lang.Object |
clone()
Produces an identical object to this object. |
boolean |
contains(Rule item)
Checks if the Rule is in this RuleArray. |
boolean |
contains(java.lang.String item)
Checks if a Rule bearing the specific name is in this RuleArray. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
Rule |
getAt(int index)
Gets the Rule in this RuleArray in the specific index. |
int |
getIndexOfItem(java.lang.String item)
Gets the index of the Rule bearing the specific name in this RuleArray. |
Rule |
getRule(java.lang.String ruleName)
Gets the Rule from this RuleArray by the Rule's name. |
int |
getSize()
Gets the size of the RuleArray |
void |
remove(int index)
Removes the Rule from a certain index in this RuleArray. |
boolean |
remove(java.lang.String ruleName)
Removes the Rule bearing a specific name from this RuleArray. |
void |
setValueFrom(RuleArray other)
Sets this RuleArray parameters to resemble the other RuleArray |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean add(Rule item)
item - the Rule to add
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean contains(Rule item)
item - the queried Rule
public boolean contains(java.lang.String item)
item - the desired Rule name
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public Rule getAt(int index)
index - the index of the Rule in the RuleArray
ItemNotFoundException - if the index is out of boundpublic int getIndexOfItem(java.lang.String item)
item - the desired Rule name
public Rule getRule(java.lang.String ruleName)
throws ItemNotFoundException
ruleName - the desired Rule's name
ItemNotFoundException - if the Rule is not found in this RuleArraypublic int getSize()
public void remove(int index)
throws ItemNotFoundException
index - the index of the removed Rule
ItemNotFoundException - if there is no Rule in that index (IndexOutOfBound)
public boolean remove(java.lang.String ruleName)
throws ItemNotFoundException
ruleName - the removed Rule's name
ItemNotFoundException - if a Rule bearing such a name does not exist in this
RuleArray
public void setValueFrom(RuleArray other)
throws java.lang.CloneNotSupportedException
other - the RuleArray this RuleArray gets the paremeters
java.lang.CloneNotSupportedException
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||