Package cambridge

Examples of cambridge.TemplateParsingException


                    break;
                }

                if (currentBlock == null && behavior.getType() != FIRST)
                {
                    throw new TemplateParsingException(behavior.getValidationError(), nextTag.getBeginLine(), nextTag.getBeginColumn());
                }

                if (nextTag == nextConditional)
                {
                    switch (nextTag.getConditionalBehavior().getType())
View Full Code Here


   public Tag addBehavior(TagBehavior behavior) {
      dynamic = true;
      if (behavior instanceof ConditionalTagBehavior) {
         if (conditionalBehavior != null) {
            throw new TemplateParsingException("Only one conditional behaviour be assigned to a tag. Tag: " + toString(), getBeginLine(), getBeginColumn());
         }
         conditionalBehavior = (ConditionalTagBehavior) behavior;
      } else if (behavior instanceof LoopingTagBehavior) {
         if (looping != null) {
            throw new TemplateParsingException("Only one looping behaviour be assigned to a tag. Tag: " + toString(), getBeginLine(), getBeginColumn());
         }
         looping = (LoopingTagBehavior) behavior;
      } else if (behavior instanceof ModifyingTagBehavior) {
         if (modifyingBehaviors == null) {
            modifyingBehaviors = new ArrayList<ModifyingTagBehavior>();
View Full Code Here

TOP

Related Classes of cambridge.TemplateParsingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.