|
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.ServiceRuleArray
public class ServiceRuleArray
An array of ServiceRules held by the Package. This array combines the time
based regulations for the Package .
The ServiceRuleArray and its elements belong to a Policy, which admits
validation limitations on them, such as the existance of the Servcies the
Rules apply to.
| Constructor Summary | |
|---|---|
ServiceRuleArray(com.pcube.apps.engage.policy.Rule.RuleResourceProvider resourceProvider)
ServiceRuleArray Constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(ServiceRule item)
Adds a new ServiceRule to this list. |
Object |
clone()
Producing an identical object to this object. |
boolean |
contains(ServiceRule item)
Checks if a certain ServiceRule exists in this list. |
boolean |
contains(String item)
Checks if a certain ServiceRule exists in this list. |
void |
fromStream(BufferedReader in,
Formatter f)
Method fromStream |
ServiceRule |
getAt(int index)
Gets the ServiceRule this list has in a specific index. |
int |
getIndexOfItem(String item)
Gets the index of the ServiceRule in this list which has a specific name. |
ServiceRule |
getServiceRule(String serviceRuleName)
Gets the ServiceRule that has a specific name from this list. |
int |
getSize()
Gets the size of this list. |
Iterator |
iterator()
|
ListIterator |
listIterator()
|
void |
remove(int index)
Removes the ServiceRule, which is in a specific index in this list. |
boolean |
remove(String item)
Removes the ServiceRule, which has a specific name, from this list. |
void |
toStream(PrintStream out,
Formatter f)
Method toStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceRuleArray(com.pcube.apps.engage.policy.Rule.RuleResourceProvider resourceProvider)
policy - the Policy this ServiceRuleArray belongs to| Method Detail |
|---|
public boolean add(ServiceRule item)
throws DuplicateItemException,
ItemNotFoundException
item - the added ServiceRule
DuplicateItemException - if such an ServiceRule already exists in this list
ItemNotFoundExceptionpublic Object clone()
clone in class Objectpublic boolean contains(ServiceRule item)
item - the queried ServiceRule
public boolean contains(String item)
item - the ServiceRule's name
public void fromStream(BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public ServiceRule getAt(int index)
index - the index of the desired ServiceRule
ItemNotFoundException - if no ServiceRule exists in the desired indexpublic int getIndexOfItem(String item)
item - the desired ServiceRule's name
public ServiceRule getServiceRule(String serviceRuleName)
throws ItemNotFoundException
serviceRuleName - the name of the desired ServiceRule
ItemNotFoundException - if no ServiceRule exists in the desired indexpublic int getSize()
public Iterator iterator()
public ListIterator listIterator()
public void remove(int index)
throws ItemNotFoundException
index - the index of the removed ServiceRule in this list
ItemNotFoundException - if this list has no ServiceRule in the desired index
public boolean remove(String item)
throws ItemNotFoundException
item - the host of the removed ServiceRule
ItemNotFoundException - if this list has no ServiceRule with the desired values
public void toStream(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 | |||||||||