// dot notation
Boolean dotNotationUpperCase = null;
if(tag.containsAttribute("preservecase")) {
Boolean preservecase = ASMUtil.getAttributeBoolean(tag, "preservecase",null);
if(preservecase==null)
throw new TemplateException(data.cfml,"attribute [preserveCase] of the tag [processingdirective] must be a constant boolean value");
dotNotationUpperCase=preservecase.booleanValue()?Boolean.FALSE:Boolean.TRUE;
if(dotNotationUpperCase==data.settings.dotNotationUpper)
dotNotationUpperCase=null;
}
// page encoding
String encoding=null;
if(tag.containsAttribute("pageencoding")) {
encoding=ASMUtil.getAttributeString(tag, "pageencoding",null);
if(encoding==null)
throw new TemplateException(data.cfml,"attribute [pageencoding] of the tag [processingdirective] must be a constant value");
if(encoding.equalsIgnoreCase(data.cfml.getCharset()) || "UTF-8".equalsIgnoreCase(data.cfml.getCharset())) {
encoding=null;
}
}
// execution log
Boolean exeLog=null;
if(tag.containsAttribute("executionlog")) {
String strExeLog=ASMUtil.getAttributeString(tag, "executionlog",null);
exeLog=Caster.toBoolean(strExeLog,null);
if(exeLog==null)
throw new TemplateException(data.cfml,"attribute [executionlog] of the tag [processingdirective] must be a constant boolean value");
if(exeLog.booleanValue()==data.cfml.getWriteLog())
exeLog=null;
}