T
- base data implementationpublic abstract class RouteBaseData<T extends RouteBaseData> extends Object implements Comparable<T>, Serializable
Only for read as data is immutable.
Constructor and Description |
---|
RouteBaseData(List<Class<? extends RouterLayout>> parentLayouts,
String template,
List<Class<?>> parameters,
Class<? extends Component> navigationTarget)
RouteBaseData constructor.
|
RouteBaseData(List<Class<? extends RouterLayout>> parentLayouts,
String template,
Map<String,RouteParameterData> parameters,
Class<? extends Component> navigationTarget)
RouteBaseData constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(T otherRouteData) |
boolean |
equals(Object obj) |
Class<? extends Component> |
getNavigationTarget()
Get
Route navigation target. |
List<Class<?>> |
getParameters()
Deprecated.
use
getRouteParameters() instead. |
Class<? extends RouterLayout> |
getParentLayout()
Get the parent layout of
Route . |
List<Class<? extends RouterLayout>> |
getParentLayouts()
Return the whole parent layout chain of route target.
|
Map<String,RouteParameterData> |
getRouteParameters()
Get
Route route parameters if any. |
String |
getTemplate()
Get the full route template of
Route . |
String |
getUrl()
Deprecated.
use
getTemplate() instead. |
int |
hashCode() |
public RouteBaseData(List<Class<? extends RouterLayout>> parentLayouts, String template, List<Class<?>> parameters, Class<? extends Component> navigationTarget)
IllegalArgumentException
is
raised.parentLayouts
- route parent layout class chaintemplate
- full route urlparameters
- supports only null or empty list. If a non empty list is
passed and IllegalArgumentException
is raised.navigationTarget
- route navigation targetIllegalArgumentException
- if parameters is not empty.public RouteBaseData(List<Class<? extends RouterLayout>> parentLayouts, String template, Map<String,RouteParameterData> parameters, Class<? extends Component> navigationTarget)
parentLayouts
- route parent layout class chaintemplate
- full route urlparameters
- navigation target path parametersnavigationTarget
- route navigation targetpublic Class<? extends RouterLayout> getParentLayout()
Route
.public List<Class<? extends RouterLayout>> getParentLayouts()
@Deprecated public String getUrl()
getTemplate()
instead.Route
.public String getTemplate()
Route
.@Deprecated public List<Class<?>> getParameters()
getRouteParameters()
instead.Route
route parameters types if any.public Map<String,RouteParameterData> getRouteParameters()
Route
route parameters if any.public Class<? extends Component> getNavigationTarget()
Route
navigation target.public int compareTo(T otherRouteData)
compareTo
in interface Comparable<T extends RouteBaseData>
Copyright © 2020. All rights reserved.