public static class TemplateParseUtil.Template extends Object
TemplateParseUtil.PARSE_TEMPLATE_KEYSTemplateParseUtil.SEPARATOR are special characters and must be used as indicated only
2) Must begin with a TemplateParseUtil.SEPARATOR, must not end with a TemplateParseUtil.SEPARATOR
3) must begin with "/{prefix}" (use the TemplateParseUtil.SEPARATOR and TemplateParseUtil.PREFIX constants)
3) each {var} can only be used once in a template
4) {var} can never touch each other (i.e /{var1}{var2}/{id} is invalid)
5) each {var} can only have the chars from TemplateParseUtil.VALID_VAR_CHARS
6) parse templates can only have the chars from TemplateParseUtil.VALID_TEMPLATE_CHARS
7) Empty braces ({}) cannot appear in the template| Modifier and Type | Field and Description |
|---|---|
boolean |
incoming
indicates the template is an incoming template if true, outgoing template if false
|
String |
template
the template itself
|
String |
templateKey
the template key, from the set of template keys
TemplateParseUtil.PARSE_TEMPLATE_KEYS,
or make one up for your own templates, should be unique for this set of templates |
public String templateKey
TemplateParseUtil.PARSE_TEMPLATE_KEYS,
or make one up for your own templates, should be unique for this set of templatespublic String template
public boolean incoming
public Template(String templateKey, String template)
templateKey - template identifier, from the set of template keys TemplateParseUtil.PARSE_TEMPLATE_KEYS,
must be unique for this set of templatestemplate - the parseable templatepublic Template(String templateKey, String template, boolean incoming)
templateKey - template identifier, from the set of template keys TemplateParseUtil.PARSE_TEMPLATE_KEYS,
must be unique for this set of templatestemplate - the parseable templateincoming - if true then this is an incoming template, otherwise it is an outgoing oneCopyright © 2003–2022 Sakai Project. All rights reserved.