Package com.vaadin.copilot
Record Class NewRouteTemplateHandler.FlowTemplateRequest
java.lang.Object
java.lang.Record
com.vaadin.copilot.NewRouteTemplateHandler.FlowTemplateRequest
- Record Components:
packageName- Package name where file will be located. e.g.com.vaadin.project.viewsroute- Route url of the viewtitle- Title of the page which will be used for@PageTitleclassName- Java class name of the file. e.g. HelloWorldView for HelloWorldView.javaaccessRequirement- Access requirement parameters that are entered from UIlayoutClass- Layout class that view is extended from. Might be null.templateName- Template file name. e.g. HelloWorldView.javatemplateData- data for the selected template, ornulladdToMenu- whether to add the view to an automatically generated menu
- Enclosing class:
NewRouteTemplateHandler
public static record NewRouteTemplateHandler.FlowTemplateRequest(String packageName, String route, String title, String className, AccessRequirement accessRequirement, Class<?> layoutClass, String templateName, String templateData, boolean addToMenu)
extends Record
Contains information to generate new Flow view
-
Constructor Summary
ConstructorsConstructorDescriptionFlowTemplateRequest(String packageName, String route, String title, String className, AccessRequirement accessRequirement, Class<?> layoutClass, String templateName, String templateData, boolean addToMenu) Creates an instance of aFlowTemplateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessRequirementrecord component.booleanReturns the value of theaddToMenurecord component.Returns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?> Returns the value of thelayoutClassrecord component.Returns the value of thepackageNamerecord component.route()Returns the value of therouterecord 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
-
FlowTemplateRequest
public FlowTemplateRequest(String packageName, String route, String title, String className, AccessRequirement accessRequirement, Class<?> layoutClass, String templateName, String templateData, boolean addToMenu) Creates an instance of aFlowTemplateRequestrecord class.- Parameters:
packageName- the value for thepackageNamerecord componentroute- the value for therouterecord componenttitle- the value for thetitlerecord componentclassName- the value for theclassNamerecord componentaccessRequirement- the value for theaccessRequirementrecord componentlayoutClass- the value for thelayoutClassrecord 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 '=='. -
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
accessRequirement
Returns the value of theaccessRequirementrecord component.- Returns:
- the value of the
accessRequirementrecord component
-
layoutClass
Returns the value of thelayoutClassrecord component.- Returns:
- the value of the
layoutClassrecord 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
-