Package org.cfeclipse.cfml.parser

Examples of org.cfeclipse.cfml.parser.ParseError


      Parameter currParam = (Parameter)params[i];
     
      if (currParam.isRequired()
          && !(itemAttributes.containsKey(currParam.getName().toLowerCase()) || itemAttributes.containsKey(currParam.getName()
              .toUpperCase())) && !itemAttributes.containsKey("attributecollection")) {
        this.parseMessages.addMessage(new ParseError(lineNumber, startPosition, endPosition, itemData,
          "The attribute \'" + currParam.getName() + "\' is compulsory for the <" + this.itemName + "> tag." + attributesFound));
      }
     
      if(!currParam.getTriggers().isEmpty()  && currParam.isRequired(suggestedAttributes) == 3 && !itemAttributes.containsKey(currParam.getName())){
        this.parseMessages.addMessage(new ParseError(lineNumber, startPosition, endPosition, itemData,
          "The attribute \'" + currParam.getName() + "\' is required for the <" + this.itemName + "> tag." + attributesFound));
//      the logic here is funky for optional tags with triggers TODO: refactor
//      } else if (!currParam.getTriggers().isEmpty()  && currParam.isTriggered(suggestedAttributes) == 0 && itemAttributes.containsKey(currParam.getName())) {
//        this.parseMessages.addMessage(new ParseError(lineNumber, startPosition, endPosition, itemData,
//          "The attribute \'" + currParam.getName() + "\' is not valid for the <" + this.itemName + "> tag." + attributesFound));
View Full Code Here


  {
    boolean addOkay = true;
   
    if(!newItem.validChildAddition(this))
    {
      parseMessages.addMessage(new ParseError(newItem.getLineNumber(), newItem.getStartPosition(), newItem.getEndPosition(), newItem.getItemData(),
                    "Invalid child " + newItem.getClass().getName() + ":\'" + newItem.getName() + "\' for parent \'" + getName() + "\'"));
      addOkay = false;
    }
    //
    // Set the item's parent & sibling
View Full Code Here

    /*
     * Is the attribute already present in the tag's attribute list?
     */
    if(itemAttributes.containsKey(attrName.toLowerCase()) && !attrName.toLowerCase().matches("eq|gt|lt|lte|gte|neq"))
    {
      parseMessages.addMessage(new ParseError(lineNumber, startPosition, endPosition, itemData,
                  "Attribute \'" + attrName + "\' has already been defined."));
    }
   
    itemAttributes.put(attrName.toLowerCase(), newAttr);
   
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.parser.ParseError

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.