Package com.vaadin.copilot
Record Class NewRouteTemplateHandler.HillaTemplateRequest
java.lang.Object
java.lang.Record
com.vaadin.copilot.NewRouteTemplateHandler.HillaTemplateRequest
- Record Components:
routeName- Route of the filetitle- Title of the view. It will be used in viewConfigaccessRequirement- Access requirement parameters that are entered from UItemplateName- Template file name. e.g. HelloWorldView.tsxtemplateData- data for the selected template, ornulladdToMenu- whether to add the view to an automatically generated menu
- Enclosing class:
NewRouteTemplateHandler
public static record NewRouteTemplateHandler.HillaTemplateRequest(String routeName, String title, AccessRequirement accessRequirement, String templateName, String templateData, boolean addToMenu)
extends Record
Contains information to generate new Flow view
-
Constructor Summary
ConstructorsConstructorDescriptionHillaTemplateRequest(String routeName, String title, AccessRequirement accessRequirement, String templateName, String templateData, boolean addToMenu) Creates an instance of aHillaTemplateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessRequirementrecord component.booleanReturns the value of theaddToMenurecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therouteNamerecord component.Returns the value of thetemplateDatarecord component.Returns the value of thetemplateNamerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HillaTemplateRequest
public HillaTemplateRequest(String routeName, String title, AccessRequirement accessRequirement, String templateName, String templateData, boolean addToMenu) Creates an instance of aHillaTemplateRequestrecord class.- Parameters:
routeName- the value for therouteNamerecord componenttitle- the value for thetitlerecord componentaccessRequirement- the value for theaccessRequirementrecord componenttemplateName- the value for thetemplateNamerecord componenttemplateData- the value for thetemplateDatarecord componentaddToMenu- the value for theaddToMenurecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
routeName
Returns the value of therouteNamerecord component.- Returns:
- the value of the
routeNamerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
accessRequirement
Returns the value of theaccessRequirementrecord component.- Returns:
- the value of the
accessRequirementrecord component
-
templateName
Returns the value of thetemplateNamerecord component.- Returns:
- the value of the
templateNamerecord component
-
templateData
Returns the value of thetemplateDatarecord component.- Returns:
- the value of the
templateDatarecord component
-
addToMenu
public boolean addToMenu()Returns the value of theaddToMenurecord component.- Returns:
- the value of the
addToMenurecord component
-