Class ProfileAction
- java.lang.Object
-
- com.opencloud.slee.upgrade.transformation.model.ProfileAction
-
- All Implemented Interfaces:
ProfileRuleChild
- Direct Known Subclasses:
ProfileAction.AddAttribute
,ProfileAction.ChangeAttributeType
,ProfileAction.CreateProfile
,ProfileAction.DeleteAttribute
,ProfileAction.DeleteProfile
,ProfileAction.DeleteProfileTable
,ProfileAction.RenameAttribute
,ProfileAction.RenameProfile
,ProfileAction.RenameProfileSpec
,ProfileAction.RenameProfileTable
,ProfileAction.SetAttribute
public abstract class ProfileAction extends java.lang.Object implements ProfileRuleChild
An action which can be performed on profiles.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProfileAction.AddAttribute
Used for adding a new attribute to profiles.static class
ProfileAction.ChangeAttributeType
Used to change the type of an existing profile attribute within the export data.static class
ProfileAction.ContextRequirement
static class
ProfileAction.CreateProfile
Used to create and add a profile to the export data.static class
ProfileAction.DeleteAttribute
Used for deleting an attribute from profiles in the export data.static class
ProfileAction.DeleteProfile
Used to delete a profile from the export data.static class
ProfileAction.DeleteProfileTable
Used to delete a profile table from the export data.static class
ProfileAction.RenameAttribute
Used to rename an existing attribute.static class
ProfileAction.RenameProfile
Used to rename a profile within the export data.static class
ProfileAction.RenameProfileSpec
Used to change the name of a profile specification within the export data.static class
ProfileAction.RenameProfileTable
Used to rename a profile table within the export data.static class
ProfileAction.SetAttribute
Used for setting an attribute value within profiles.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
applyAction(TransformableProfileTable profileTable, ProfileTransformationRule transformationRule, ProblemCollector problemCollector)
Apply this action to the given profile if and where it matches the given context.abstract boolean
equals(java.lang.Object o)
ProfileAction.ContextRequirement
getAttributeValueContextRequirement()
ProfileAction.ContextRequirement
getProfileContextRequirement()
ProfileAction.ContextRequirement
getProfileTableContextRequirement()
abstract int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public abstract boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getProfileTableContextRequirement
public ProfileAction.ContextRequirement getProfileTableContextRequirement()
-
getProfileContextRequirement
public ProfileAction.ContextRequirement getProfileContextRequirement()
-
getAttributeValueContextRequirement
public ProfileAction.ContextRequirement getAttributeValueContextRequirement()
-
applyAction
public boolean applyAction(@Nonnull TransformableProfileTable profileTable, @Nonnull ProfileTransformationRule transformationRule, @Nonnull ProblemCollector problemCollector)
Apply this action to the given profile if and where it matches the given context.- Parameters:
profileTable
- The profile table to attempt to apply the action to.transformationRule
- the full rule, with all its contextsproblemCollector
- A problem collector to record warnings and errors on.- Returns:
- true if the action was applied, false if not.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-