Class RaConfigRule
- java.lang.Object
-
- com.opencloud.slee.upgrade.transformation.model.Rule
-
- com.opencloud.slee.upgrade.transformation.model.RaConfigRule
-
- All Implemented Interfaces:
RaConfigRuleChild
public final class RaConfigRule extends Rule implements RaConfigRuleChild
An RA config rule defines an RA configuration context, as well zero or more RA config actions, and zero or more child RA config rules.
-
-
Constructor Summary
Constructors Constructor Description RaConfigRule(RaConfigContext context, java.util.List<RaConfigRuleChild> children)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RaConfigRulecreateRaConfigRule(RaConfigContext context, RaConfigRuleChild... children)Convenience method to create aRaConfigRuleinstance.static RaConfigRulecreateRaConfigRuleWithId(int id, RaConfigContext context, RaConfigRuleChild... children)Convenience method to create aRaConfigRuleinstance, and set its ID.booleanequals(java.lang.Object o)java.util.List<C>getChildren()Returns the child rules and child actions associated with this rule.XgetContext()The context which must be matched in order for the child actions and child rules to be applied.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
RaConfigRule
public RaConfigRule(@Nonnull RaConfigContext context, @Nonnull java.util.List<RaConfigRuleChild> children)- Parameters:
context- The context in which this rule should be applied.children- Each child is either a (nested) rule, or an action to apply.
-
-
Method Detail
-
createRaConfigRule
@Nonnull public static RaConfigRule createRaConfigRule(@Nonnull RaConfigContext context, @Nonnull RaConfigRuleChild... children)
Convenience method to create aRaConfigRuleinstance.
-
createRaConfigRuleWithId
@Nonnull public static RaConfigRule createRaConfigRuleWithId(int id, @Nonnull RaConfigContext context, @Nonnull RaConfigRuleChild... children)
Convenience method to create aRaConfigRuleinstance, and set its ID.
-
getContext
@Nonnull public X getContext()
The context which must be matched in order for the child actions and child rules to be applied.
-
getChildren
@Nonnull public java.util.List<C> getChildren()
Returns the child rules and child actions associated with this rule.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-