public final class RaConfigRule extends Rule implements RaConfigRuleChild
Constructor and Description |
---|
RaConfigRule(RaConfigContext context,
java.util.List<RaConfigRuleChild> children) |
Modifier and Type | Method and Description |
---|---|
static RaConfigRule |
createRaConfigRule(RaConfigContext context,
RaConfigRuleChild... children)
Convenience method to create a
RaConfigRule instance. |
static RaConfigRule |
createRaConfigRuleWithId(int id,
RaConfigContext context,
RaConfigRuleChild... children)
Convenience method to create a
RaConfigRule instance, and set its ID. |
boolean |
equals(java.lang.Object o) |
java.util.List<C> |
getChildren()
Returns the child rules and child actions associated with this rule.
|
X |
getContext()
The context which must be matched in order for the child actions and child rules to be applied.
|
int |
hashCode() |
java.lang.String |
toString() |
public RaConfigRule(@Nonnull RaConfigContext context, @Nonnull java.util.List<RaConfigRuleChild> children)
context
- The context in which this rule should be applied.children
- Each child is either a (nested) rule, or an action to apply.@Nonnull public static RaConfigRule createRaConfigRule(@Nonnull RaConfigContext context, @Nonnull RaConfigRuleChild... children)
RaConfigRule
instance.@Nonnull public static RaConfigRule createRaConfigRuleWithId(int id, @Nonnull RaConfigContext context, @Nonnull RaConfigRuleChild... children)
RaConfigRule
instance, and set its ID.@Nonnull public X getContext()
@Nonnull public java.util.List<C> getChildren()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © OpenCloud. All Rights Reserved.