Package io.mateu.dtos
Record Class ServerSideComponentDto
java.lang.Object
java.lang.Record
io.mateu.dtos.ServerSideComponentDto
- All Implemented Interfaces:
ComponentDto
public record ServerSideComponentDto(String id, String serverSideType, List<ComponentDto> children, Object initialData, String style, String cssClasses, List<ActionDto> actions, List<TriggerDto> triggers, List<RuleDto> rules, List<ValidationDto> validations, String slot)
extends Record
implements ComponentDto
-
Constructor Summary
ConstructorsConstructorDescriptionServerSideComponentDto(String id, String serverSideType, List<ComponentDto> children, Object initialData, String style, String cssClasses, List<ActionDto> actions, List<TriggerDto> triggers, List<RuleDto> rules, List<ValidationDto> validations, String slot) Creates an instance of aServerSideComponentDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.children()Returns the value of thechildrenrecord component.Returns the value of thecssClassesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinitialDatarecord component.rules()Returns the value of therulesrecord component.Returns the value of theserverSideTyperecord component.slot()Returns the value of theslotrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.triggers()Returns the value of thetriggersrecord component.Returns the value of thevalidationsrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.mateu.dtos.ComponentDto
withChildren
-
Constructor Details
-
ServerSideComponentDto
public ServerSideComponentDto(String id, String serverSideType, List<ComponentDto> children, Object initialData, String style, String cssClasses, List<ActionDto> actions, List<TriggerDto> triggers, List<RuleDto> rules, List<ValidationDto> validations, String slot) Creates an instance of aServerSideComponentDtorecord class.- Parameters:
id- the value for theidrecord componentserverSideType- the value for theserverSideTyperecord componentchildren- the value for thechildrenrecord componentinitialData- the value for theinitialDatarecord componentstyle- the value for thestylerecord componentcssClasses- the value for thecssClassesrecord componentactions- the value for theactionsrecord componenttriggers- the value for thetriggersrecord componentrules- the value for therulesrecord componentvalidations- the value for thevalidationsrecord componentslot- the value for theslotrecord component
-
-
Method Details
-
setStyle
- Specified by:
setStylein interfaceComponentDto
-
addStyle
- Specified by:
addStylein interfaceComponentDto
-
setSlot
- Specified by:
setSlotin interfaceComponentDto
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceComponentDto- Returns:
- the value of the
idrecord component
-
serverSideType
Returns the value of theserverSideTyperecord component.- Returns:
- the value of the
serverSideTyperecord component
-
children
Returns the value of thechildrenrecord component.- Specified by:
childrenin interfaceComponentDto- Returns:
- the value of the
childrenrecord component
-
initialData
Returns the value of theinitialDatarecord component.- Returns:
- the value of the
initialDatarecord component
-
style
Returns the value of thestylerecord component.- Specified by:
stylein interfaceComponentDto- Returns:
- the value of the
stylerecord component
-
cssClasses
Returns the value of thecssClassesrecord component.- Specified by:
cssClassesin interfaceComponentDto- Returns:
- the value of the
cssClassesrecord component
-
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-
triggers
Returns the value of thetriggersrecord component.- Returns:
- the value of the
triggersrecord component
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
validations
Returns the value of thevalidationsrecord component.- Returns:
- the value of the
validationsrecord component
-
slot
Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-