Class ElementModel
java.lang.Object
com.aquima.web.api.model.page.element.ElementModel
- Direct Known Subclasses:
Asset
,Button
,CompositeModel
,FailedElement
,Field
,Image
,Link
,TextItem
,UnknownElement
This class represents the viewmodel of the IElement interfaces
- Since:
- 9.2
- Author:
- A.Pragt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String key, Object value) Adds a property to the internal properties map.boolean
Returns the functional key of the element.getKey()
Returns the element key.getName()
Returns the name of the element.Returns the properties of the model, or null if no properties are availableReturns the presentationStyles of the model.abstract String
getType()
int
hashCode()
void
setFunctionalKey
(String functionalKey) Sets the functional key of the element.void
Sets the key of the element.void
Sets the name of the element.
-
Constructor Details
-
ElementModel
public ElementModel()
-
-
Method Details
-
getType
-
getKey
Returns the element key.- Returns:
- The key of the element.
-
setKey
Sets the key of the element.- Parameters:
key
- The key of the element.
-
getFunctionalKey
Returns the functional key of the element.- Returns:
- The functional key of the element
-
setFunctionalKey
Sets the functional key of the element.- Parameters:
functionalKey
- The functional key of the element.
-
getName
Returns the name of the element.- Returns:
- The name of the element.
-
setName
Sets the name of the element.- Parameters:
name
- The name of the element.
-
getStyles
Returns the presentationStyles of the model.- Returns:
- The list of presentation styles.
-
getProperties
Returns the properties of the model, or null if no properties are available- Returns:
- The map of properties.
-
addProperty
Adds a property to the internal properties map.- Parameters:
key
- Property key cannot be empty or nullvalue
- Property value can be empty or null
-
hashCode
public int hashCode() -
equals
-