Package com.aspectran.core.context.rule
Class TemplateRule
java.lang.Object
com.aspectran.core.context.rule.TemplateRule
- All Implemented Interfaces:
BeanReferenceable
,Replicable<TemplateRule>
The Class TemplateRule.
Created: 2008. 03. 22 PM 5:51:58
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Bean Referrer Type.Class<?>
getFile()
getId()
getName()
getTemplateSource
(ActivityContext context) Token[]
Token[]
getTemplateTokens
(ActivityContext context) getUrl()
boolean
boolean
boolean
boolean
boolean
static TemplateRule
newInstance
(String id, String engine, String name, String file, String resource, String url, String content, String style, String encoding, Boolean noCache) static TemplateRule
newInstanceForBuiltin
(String id, String engine, String name, String file, String resource, String url, String style, String content, String encoding, Boolean noCache) Creates and returns a new instance after replicating a rule or Object.static TemplateRule
replicate
(TemplateRule templateRule) void
setBuiltin
(boolean builtin) protected void
setContent
(String content) protected void
setContentStyle
(TextStyleType contentStyle) void
setEncoding
(String encoding) void
setEngineBeanClass
(Class<?> engineBeanClass) void
setEngineBeanId
(String engineBeanId) void
void
void
void
setNoCache
(Boolean noCache) void
setResource
(String resource) void
setTemplateSource
(String templateSource) protected void
setTemplateSource
(String templateSource, Token[] templateTokens) void
toString()
static void
updateTemplateSource
(TemplateRule templateRule, String content)
-
Constructor Details
-
TemplateRule
public TemplateRule()
-
-
Method Details
-
getId
-
setId
-
getEngine
-
getName
-
setName
-
getFile
-
setFile
-
getResource
-
setResource
-
getUrl
-
setUrl
-
getEncoding
-
setEncoding
-
getContentStyle
-
getContent
-
setContentStyle
-
setContent
-
getNoCache
-
isNoCache
public boolean isNoCache() -
setNoCache
-
isBuiltin
public boolean isBuiltin() -
setBuiltin
public void setBuiltin(boolean builtin) -
isOutsourcing
public boolean isOutsourcing() -
getEngineBeanId
-
setEngineBeanId
-
getEngineBeanClass
-
setEngineBeanClass
-
isExternalEngine
public boolean isExternalEngine() -
isTokenize
public boolean isTokenize() -
getTemplateSource
-
getTemplateSource
- Throws:
IOException
-
setTemplateSource
-
setTemplateSource
-
getTemplateTokens
-
getTemplateTokens
- Throws:
IOException
-
replicate
Description copied from interface:Replicable
Creates and returns a new instance after replicating a rule or Object.- Specified by:
replicate
in interfaceReplicable<TemplateRule>
- Returns:
- replicated rule or new instance of Object
-
getBeanRefererType
Description copied from interface:BeanReferenceable
Returns the Bean Referrer Type.- Specified by:
getBeanRefererType
in interfaceBeanReferenceable
- Returns:
- the Bean Referrer Type
-
toString
-
newInstance
@NonNull public static TemplateRule newInstance(String id, String engine, String name, String file, String resource, String url, String content, String style, String encoding, Boolean noCache) throws IllegalRuleException - Throws:
IllegalRuleException
-
newInstanceForBuiltin
@NonNull public static TemplateRule newInstanceForBuiltin(String id, String engine, String name, String file, String resource, String url, String style, String content, String encoding, Boolean noCache) throws IllegalRuleException - Throws:
IllegalRuleException
-
replicate
-
updateTemplateSource
-