Package io.quarkus.qute
Class Parameter
- java.lang.Object
-
- io.quarkus.qute.Parameter
-
public final class Parameter extends Object
Definition of a section factory parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Parameter.Builder
-
Field Summary
Fields Modifier and Type Field Description String
defaultValue
static String
EMPTY
String
name
boolean
optional
Predicate<String>
valuePredicate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(String value)
Allows a factory parameter to refuse a value of an unnamed actual parameter.static Parameter.Builder
builder(String name)
String
getDefaultValue()
String
getName()
boolean
hasDefaultValue()
boolean
isOptional()
String
toString()
-
-
-
Method Detail
-
builder
public static Parameter.Builder builder(String name)
-
getName
public String getName()
-
getDefaultValue
public String getDefaultValue()
-
hasDefaultValue
public boolean hasDefaultValue()
-
isOptional
public boolean isOptional()
-
accepts
public boolean accepts(String value)
Allows a factory parameter to refuse a value of an unnamed actual parameter.- Parameters:
value
-- Returns:
true
if the value is acceptable,false
otherwise
-
-