Class ProfileRule
- java.lang.Object
-
- com.opencloud.slee.upgrade.transformation.model.Rule
-
- com.opencloud.slee.upgrade.transformation.model.ProfileRule
-
- All Implemented Interfaces:
ProfileRuleChild
public final class ProfileRule extends Rule implements ProfileRuleChild
A profile rule defines a profile context, as well zero or more profile actions, and zero or more child profile rules.
-
-
Constructor Summary
Constructors Constructor Description ProfileRule(ProfileContext context, java.util.List<ProfileRuleChild> children)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProfileRule
createProfileRule(ProfileContext context, ProfileRuleChild... children)
Convenience method to create aProfileRule
instance.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()
-
-
-
Constructor Detail
-
ProfileRule
public ProfileRule(@Nonnull ProfileContext context, @Nonnull java.util.List<ProfileRuleChild> 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
-
createProfileRule
@Nonnull public static ProfileRule createProfileRule(@Nonnull ProfileContext context, @Nonnull ProfileRuleChild... children)
Convenience method to create aProfileRule
instance.
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-