Package org.apache.juneau.svl
Class SimpleVar
java.lang.Object
org.apache.juneau.svl.Var
org.apache.juneau.svl.SimpleVar
- Direct Known Subclasses:
DefaultingVar
,HtmlWidgetVar
,LowerCaseVar
,MultipartResolvingVar
,MultipartVar
,NotEmptyVar
,UpperCaseVar
,UrlEncodeVar
,UrlVar
Abstract superclass of all Simple Var Language variables that resolve to simple returned string values.
Note the difference between this class and StreamedVar
that streams values to writers.
Unlike the StreamedVar
class, the returned value from this class can contain nested variables that will be
recursively resolved by VarResolver
.
Subclasses must implement the following method:
See Also:
09-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
resolveTo
(VarResolverSession session, Writer w, String arg) The interface that needs to be implemented for subclasses ofStreamedVar
.Methods inherited from class org.apache.juneau.svl.Var
allowNested, allowRecurse, canResolve, doResolve, getName, resolve
-
Constructor Details
-
SimpleVar
Constructor.- Parameters:
name
- The variable name (e.g."C" for variables of the form"$C{...}" )
-
-
Method Details
-
resolveTo
Description copied from class:Var
The interface that needs to be implemented for subclasses ofStreamedVar
.
-