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 classParameter.Builder
-
Field Summary
Fields Modifier and Type Field Description StringdefaultValuestatic StringEMPTYStringnamebooleanoptionalPredicate<String>valuePredicate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(String value)Allows a factory parameter to refuse a value of an unnamed actual parameter.static Parameter.Builderbuilder(String name)StringgetDefaultValue()StringgetName()booleanhasDefaultValue()booleanisOptional()StringtoString()
-
-
-
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:
trueif the value is acceptable,falseotherwise
-
-