Package com.aquima.web.api.model.page
Class ModelChange
- java.lang.Object
-
- com.aquima.web.api.model.page.ModelChange
-
public class ModelChange extends Object
This class represents the actions to a page element model.- Since:
- 9.2
- Author:
- A.Pragt
-
-
Constructor Summary
Constructors Constructor Description ModelChange(ChangeType changeType, String elementKey, ElementModel elementModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
This method returns the key of the model.ElementModel
getModel()
This method returns the model.ChangeType
getType()
This method returns the type of the change.String
toString()
-
-
-
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.
-
-