|
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. |
java.lang.Object |
clone()
Producing an identical object to this object. |
boolean |
contains(ServiceRule item)
Checks if a certain ServiceRule exists in this list. |
boolean |
contains(java.lang.String item)
Checks if a certain ServiceRule exists in this list. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
ServiceRule |
getAt(int index)
Gets the ServiceRule this list has in a specific index. |
int |
getIndexOfItem(java.lang.String item)
Gets the index of the ServiceRule in this list which has a specific name. |
ServiceRule |
getServiceRule(java.lang.String serviceRuleName)
Gets the ServiceRule that has a specific name from this list. |
int |
getSize()
Gets the size of this list. |
java.util.Iterator |
iterator()
|
java.util.ListIterator |
listIterator()
|
void |
remove(int index)
Removes the ServiceRule, which is in a specific index in this list. |
void |
remove(int index,
Package pkg)
|
boolean |
remove(java.lang.String item)
Removes the ServiceRule, which has a specific name, from this list. |
boolean |
remove(java.lang.String item,
Package pack)
|
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 |
| 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 java.lang.Object clone()
clone in class java.lang.Objectpublic boolean contains(ServiceRule item)
item - the queried ServiceRule
public boolean contains(java.lang.String item)
item - the ServiceRule's 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 ServiceRule getAt(int index)
index - the index of the desired ServiceRule
ItemNotFoundException - if no ServiceRule exists in the desired indexpublic int getIndexOfItem(java.lang.String item)
item - the desired ServiceRule's name
public ServiceRule getServiceRule(java.lang.String serviceRuleName)
throws ItemNotFoundException
serviceRuleName - the name of the desired ServiceRule
ItemNotFoundException - if no ServiceRule exists in the desired indexpublic int getSize()
public java.util.Iterator iterator()
public java.util.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(java.lang.String item)
throws ItemNotFoundException
item - the host of the removed ServiceRule
ItemNotFoundException - if this list has no ServiceRule with the desired values
public void remove(int index,
Package pkg)
throws ItemNotFoundException
ItemNotFoundException
public boolean remove(java.lang.String item,
Package pack)
throws ItemNotFoundException
ItemNotFoundException
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 | |||||||||