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 classProfileAction.AddAttributeUsed for adding a new attribute to profiles.static classProfileAction.ChangeAttributeTypeUsed to change the type of an existing profile attribute within the export data.static classProfileAction.ContextRequirementstatic classProfileAction.CreateProfileUsed to create and add a profile to the export data.static classProfileAction.DeleteAttributeUsed for deleting an attribute from profiles in the export data.static classProfileAction.DeleteProfileUsed to delete a profile from the export data.static classProfileAction.DeleteProfileTableUsed to delete a profile table from the export data.static classProfileAction.RenameAttributeUsed to rename an existing attribute.static classProfileAction.RenameProfileUsed to rename a profile within the export data.static classProfileAction.RenameProfileSpecUsed to change the name of a profile specification within the export data.static classProfileAction.RenameProfileTableUsed to rename a profile table within the export data.static classProfileAction.SetAttributeUsed for setting an attribute value within profiles.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanapplyAction(TransformableProfileTable profileTable, ProfileTransformationRule transformationRule, ProblemCollector problemCollector)Apply this action to the given profile if and where it matches the given context.abstract booleanequals(java.lang.Object o)ProfileAction.ContextRequirementgetAttributeValueContextRequirement()ProfileAction.ContextRequirementgetProfileContextRequirement()ProfileAction.ContextRequirementgetProfileTableContextRequirement()abstract inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
equals
public abstract boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCodein 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:
toStringin classjava.lang.Object
-
-