|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.berlioz.content.ServiceStatusRule
public final class ServiceStatusRule
Defines the business logic to calculating the status code of a service.
All class attributes are immutable and have a value (they are never null
).
Nested Class Summary | |
---|---|
static class |
ServiceStatusRule.CodeRule
How is the status code for the determined. |
static class |
ServiceStatusRule.SelectType
How the generator should be selected. |
Method Summary | |
---|---|
boolean |
appliesTo(String nameOrTarget)
Indicates whether this rule applies to the generator name or target. |
boolean |
appliesToAll()
Indicates whether this rule applies to all the generators. |
List<String> |
items()
|
static ServiceStatusRule |
newInstance(String use,
String rule)
Create a new rule instance. |
ServiceStatusRule.CodeRule |
rule()
|
String |
toString()
|
ServiceStatusRule.SelectType |
use()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ServiceStatusRule.SelectType use()
public List<String> items()
public boolean appliesTo(String nameOrTarget)
nameOrTarget
- The name or target of the generator.
true
if this rule applies to all the generators;
false
otherwise.public boolean appliesToAll()
true
if this rule applies to all the generators;
false
otherwise.public ServiceStatusRule.CodeRule rule()
public String toString()
toString
in class Object
public static ServiceStatusRule newInstance(String use, String rule)
use
- the use definitionrule
- the code rule.
NullPointerException
- If the use parameter is null
.
IllegalArgumentException
- If either argument is invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |