Class ClientViewConfig

java.lang.Object
com.vaadin.hilla.route.records.ClientViewConfig

public final class ClientViewConfig extends Object
Implementation of TypeScript's Hilla ConfigView. Represents a view configuration from Hilla file-system-routing module.
  • Constructor Details

    • ClientViewConfig

      public ClientViewConfig()
  • Method Details

    • add

      public void add(String key, Object value)
      Add a key-value pair for all unknown fields.
      Parameters:
      key - - the key
      value - - the value
    • getOther

      public Map<String,Object> getOther()
      Get all unknown values.
      Returns:
      a map of unknown values
    • getTitle

      public String getTitle()
    • getRolesAllowed

      public String[] getRolesAllowed()
    • isLoginRequired

      public boolean isLoginRequired()
    • getRoute

      public String getRoute()
    • isLazy

      public boolean isLazy()
    • isAutoRegistered

      public boolean isAutoRegistered()
    • getChildren

      public List<ClientViewConfig> getChildren()
    • getRouteParameters

      public Map<String,RouteParamType> getRouteParameters()
    • getParent

      public ClientViewConfig getParent()
    • setParent

      public void setParent(ClientViewConfig parent)
    • setTitle

      public void setTitle(String title)
    • setRolesAllowed

      public void setRolesAllowed(String[] rolesAllowed)
    • setLoginRequired

      public void setLoginRequired(boolean loginRequired)
    • setRoute

      public void setRoute(String route)
    • setLazy

      public void setLazy(boolean lazy)
    • setAutoRegistered

      public void setAutoRegistered(boolean autoRegistered)
    • setMenu

      public void setMenu(ClientViewMenuConfig menu)
    • setChildren

      public void setChildren(List<ClientViewConfig> children)
    • setRouteParameters

      public void setRouteParameters(Map<String,RouteParamType> routeParameters)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object