Package org.alfresco.repo.template
Class ShortQNameMethod
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.template.ShortQNameMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel,freemarker.template.TemplateMethodModelEx,freemarker.template.TemplateModel,org.alfresco.processor.ProcessorExtension
public final class ShortQNameMethod
extends BaseProcessorExtension
implements freemarker.template.TemplateMethodModelEx
- Author:
- Mike Hatfield
FreeMarker custom method to return the short (prefix) version of a QName.
Usage: String shortQName(String longQName)
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetServiceRegistry(ServiceRegistry serviceRegistry) Set the service registryMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Constructor Details
-
ShortQNameMethod
public ShortQNameMethod()
-
-
Method Details
-
setServiceRegistry
Set the service registry- Parameters:
serviceRegistry- the service registry
-
exec
- Specified by:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Throws:
freemarker.template.TemplateModelException- See Also:
-
TemplateMethodModel.exec(java.util.List)
-