Package org.apache.flex.compiler.problems

Examples of org.apache.flex.compiler.problems.FXGMissingAttributeProblem


        String source = parseSource(node.source);

        if (source == null)
        {
            // Missing source attribute in <BitmapGraphic> or <BitmapFill>.
            problems.add(new FXGMissingAttributeProblem(node.getDocumentPath(), node.getStartLine(),
                    node.getStartColumn(), FXGConstants.FXG_SOURCE_ATTRIBUTE, node.getNodeName()));
            return null;
       }
       
        DefineImage imageTag = createDefineBitsTag(node, source);
View Full Code Here


           
            String source = parseSource(fillNode.source);
            if (source == null)
            {
                // Missing source attribute in <BitmapGraphic> or <BitmapFill>.
                problems.add(new FXGMissingAttributeProblem(node.getDocumentPath(), node.getStartLine(),
                        node.getStartColumn(), FXGConstants.FXG_SOURCE_ATTRIBUTE, node.getNodeName()));
                return null;
            }
            DefineImage defImage = createDefineBitsTag(fill, source);
            if(defImage == null)
View Full Code Here

       
        if (sourceFormatted == null)
        {
            // Source is required after FXG 1.0
            // Missing source attribute in <BitmapGraphic> or <BitmapFill>.
            problems.add(new FXGMissingAttributeProblem(fill.getDocumentPath(), fill.getStartLine(),
                    fill.getStartColumn(), FXGConstants.FXG_SOURCE_ATTRIBUTE, fill.getNodeName()));
            return null;
        }

        DefineImage img = createDefineBitsTag(fill, sourceFormatted);
View Full Code Here

                || child instanceof CDATANode)
        {
          if (child instanceof LinkNode && (((LinkNode)child).href == null))
          {
            //Missing href attribute in <a> element.
              problems.add(new FXGMissingAttributeProblem(getDocumentPath(), getStartLine(),
                      getStartColumn(), FXG_HREF_ATTRIBUTE, child.getNodeName()));
              return;
         
         
            if (content == null)
View Full Code Here

                || child instanceof CDATANode)
        {
          if (child instanceof LinkNode && (((LinkNode)child).href == null))
          {
                //Missing href attribute in <a> element.
                problems.add(new FXGMissingAttributeProblem(getDocumentPath(), getStartLine(),
                        getStartColumn(), FXG_HREF_ATTRIBUTE, child.getNodeName()));
                return;       
         
         
            if (content == null)
View Full Code Here

                || child instanceof CDATANode)
        {
          if (child instanceof LinkNode && (((LinkNode)child).href == null))
          {
                //Missing href attribute in <a> element.
                problems.add(new FXGMissingAttributeProblem(getDocumentPath(), getStartLine(),
                        getStartColumn(), FXG_HREF_ATTRIBUTE, child.getNodeName()));
                return;       
         
          /**
           * When <a> has a <tcy> child, the <tcy> child is FORBIDDEN to have
View Full Code Here

                || child instanceof CDATANode)
        {
            if (child instanceof LinkNode && (((LinkNode)child).href == null))
            {
                //Missing href attribute in <a> element.
                problems.add(new FXGMissingAttributeProblem(getDocumentPath(), getStartLine(),
                        getStartColumn(), FXG_HREF_ATTRIBUTE, child.getNodeName()));
                return;             
            }  
           
            if (content == null)
View Full Code Here

                definitions = new HashMap<String, DefinitionNode>();

            DefinitionNode node = (DefinitionNode)child;
            if (node.name == null)
            {
                problems.add(new FXGMissingAttributeProblem(getDocumentPath(), child.getStartLine(),
                        child.getStartColumn(), FXGConstants.FXG_NAME_ATTRIBUTE, child.getNodeName()));
                return;
            }
            definitions.put(node.name, node);
        }
View Full Code Here

                            return;
                        }
                    }

                    //<Graphic> doesn't have the required attribute "version".
                    problems.add(new FXGMissingAttributeProblem(documentPath, startLine, startColumn, FXG_VERSION_ATTRIBUTE, root.getNodeName()));
                    return;
                }
                else
                {
                    if (!isMajorVersionMatch(root))
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.problems.FXGMissingAttributeProblem

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.