Class ModelChange


  • public class ModelChange
    extends Object
    This class represents the actions to a page element model.
    Since:
    9.2
    Author:
    A.Pragt
    • Constructor Detail

      • ModelChange

        public ModelChange​(ChangeType changeType,
                           String elementKey,
                           ElementModel elementModel)
        Parameters:
        changeType - The type of action, not null.
        elementKey - The key of the model, not null.
        elementModel - The model, null in case of a delete action.
    • Method Detail

      • getType

        public ChangeType getType()
        This method returns the type of the change.
        Returns:
        The action type, never null.
      • getKey

        public String getKey()
        This method returns the key of the model.
        Returns:
        The key of the model, never null.
      • getModel

        public ElementModel getModel()
        This method returns the model.
        Returns:
        The model, null in case of a delete action.