001 package railo.transformer.cfml.evaluator.impl; 002 003 import railo.transformer.bytecode.statement.tag.Tag; 004 import railo.transformer.cfml.evaluator.ChildEvaluator; 005 import railo.transformer.cfml.evaluator.EvaluatorException; 006 import railo.transformer.library.tag.TagLibTag; 007 008 009 010 /** 011 * Pr�ft den Kontext des Tag mailparam. 012 * Das Tag <code>mailParam</code> darf nur innerhalb des Tag <code>mail</code> liegen. 013 */ 014 public final class MailParam extends ChildEvaluator { 015 016 protected String getParentName() { 017 return "mail"; 018 } 019 020 //� 021 /** 022 * @see railo.transformer.cfml.evaluator.EvaluatorSupport#evaluate(org.w3c.dom.Element, railo.transformer.library.tag.TagLibTag) 023 */ 024 public void evaluate(Tag tag,TagLibTag libTag) throws EvaluatorException { 025 /* 026 // check attributes 027 boolean hasFile=tag.containsAttribute("file"); 028 boolean hasName=tag.containsAttribute("name"); 029 // both attributes 030 if(hasName && hasFile) { 031 throw new EvaluatorException("Wrong Context for tag "+libTag.getFullName()+", when you use attribute file you can't also use attribute name"); 032 } 033 // no attributes 034 if(!hasName && !hasFile) { 035 throw new EvaluatorException("Wrong Context for tag "+libTag.getFullName()+", you must use attribute file or name for this tag"); 036 }*/ 037 } 038 }