Module io.inverno.mod.web.compiler
Package io.inverno.mod.web.compiler.spi
Class WebParameterQualifiedName
java.lang.Object
io.inverno.core.compiler.spi.QualifiedName
io.inverno.mod.web.compiler.spi.WebParameterQualifiedName
public class WebParameterQualifiedName
extends io.inverno.core.compiler.spi.QualifiedName
A qualified name identifying a parameter in a web route.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from class io.inverno.core.compiler.spi.QualifiedName
SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionWebParameterQualifiedName(WebRouteQualifiedName routeQName, String name)Creates a web parameter qualified name with the specified route qualified name and parameter name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the parameter name.Returns the route qualified name.static WebParameterQualifiedNameCreates a web parameter qualified name from the specified bean qualified name of the web controller and the specified raw value of the form<routeName>:<parameterName>where<routeName>and<parameterName>are valid Java names.static WebParameterQualifiedNameCreates a web parameter qualified name from the specified raw value of the formWebRouteQualifiedName():<parameterName>where<parameterName>is a valid Java name.Methods inherited from class io.inverno.core.compiler.spi.QualifiedName
equals, getValue, hashCode, normalize, toString, validateQualifiedNamePart
-
Constructor Details
-
WebParameterQualifiedName
public WebParameterQualifiedName(WebRouteQualifiedName routeQName, String name) throws io.inverno.core.compiler.spi.QualifiedNameFormatExceptionCreates a web parameter qualified name with the specified route qualified name and parameter name.
- Parameters:
routeQName- the route qualified namename- the parameter name- Throws:
io.inverno.core.compiler.spi.QualifiedNameFormatException- if the specified parameter name is invalid
-
-
Method Details
-
getSimpleValue
- Specified by:
getSimpleValuein classio.inverno.core.compiler.spi.QualifiedName
-
getRouteQName
Returns the route qualified name.
- Returns:
- the route qualified name
-
getParameterName
Returns the parameter name.
- Returns:
- the parameter name
-
valueOf
public static WebParameterQualifiedName valueOf(String qname) throws io.inverno.core.compiler.spi.QualifiedNameFormatExceptionCreates a web parameter qualified name from the specified raw value of the form
WebRouteQualifiedName():<parameterName>where<parameterName>is a valid Java name.- Parameters:
qname- a raw qualified name- Returns:
- a web parameter qualified name
- Throws:
io.inverno.core.compiler.spi.QualifiedNameFormatException- if the specified value is not a web parameter qualified name
-
valueOf
public static WebParameterQualifiedName valueOf(io.inverno.core.compiler.spi.BeanQualifiedName controllerQName, String qname) throws io.inverno.core.compiler.spi.QualifiedNameFormatExceptionCreates a web parameter qualified name from the specified bean qualified name of the web controller and the specified raw value of the form
<routeName>:<parameterName>where<routeName>and<parameterName>are valid Java names.- Parameters:
controllerQName- a web controller qualified nameqname- a raw qualified name- Returns:
- a web parameter qualified name
- Throws:
io.inverno.core.compiler.spi.QualifiedNameFormatException- if the specified value is not a web parameter qualified name
-