public static class GlobalTemplateVariables.Date extends SimpleTemplateVariableResolver
pattern and a
locale as optional parameters. pattern is a pattern compatible with
SimpleDateFormat. locale is a string representation of the locale
compatible with the constructor parameter ULocale.ULocale(String).| Constructor and Description |
|---|
Date()
Creates a new date variable
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
resolve(TemplateContext context)
Returns an instance of the type resolved by the receiver available in
context. |
void |
resolve(TemplateVariable variable,
TemplateContext context)
Resolves
variable in context. |
isUnambiguous, setEvaluationStringgetDescription, getType, resolveAll, setDescription, setTypepublic void resolve(TemplateVariable variable, TemplateContext context)
TemplateVariableResolvervariable in context. To resolve
means to find a valid binding of the receiver's type in the given TemplateContext.
If the variable can be successfully resolved, its value is set using
TemplateVariable.setValues(String[]).resolve in class TemplateVariableResolvervariable - the variable to resolvecontext - the context in which variable is resolvedprotected String resolve(TemplateContext context)
TemplateVariableResolvercontext.
To resolve means to provide a binding to a concrete text object (a
String) in the given context.
The default implementation looks up the type in the context.
resolve in class SimpleTemplateVariableResolvercontext - the context in which to resolve the typenull if it cannot be determined
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.