Package org.apache.flex.compiler.problems

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


                }
            }
            else
            {
                //Unknown LinkFormat element.
                problems.add(new FXGUnknownAttributeValueProblem(getDocumentPath(), node.getStartLine(),
                        node.getStartColumn(), node.getNodeName(), propertyName));
            }
        }
        else
        {
View Full Code Here


        else if (FXG_BEVEL_FULL_VALUE.equals(value))
            return BevelType.FULL;
        else
        {
          //Unknown bevel type: {0}.
            problems.add(new FXGUnknownAttributeValueProblem(getDocumentPath(), getStartLine(),
                    getStartColumn(), FXG_TYPE_ATTRIBUTE, value));
            return null;
        }
    }
View Full Code Here

        {
          return NumberPercentAuto.newInstance(NumberPercentAutoAsEnum.AUTO);
            }

            //Unknown number percent auto.
            problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                    node.getStartColumn(), name, value));
           
            return NumberPercentAuto.newInstance(defaultValue);
      }
    }
View Full Code Here

                return BaselineOffset.newInstance(DOMParserHelper.parseDouble(this, value, min, max));
            }
            catch(Exception e)
            {
                //Unknown first baseline offset.
                problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                        node.getStartColumn(), name, value));
               
                return BaselineOffset.newInstance(defaultValue);
            }
        }
View Full Code Here

                return NumberAuto.newInstance(NumberAutoAsEnum.AUTO);
            else if (FXG_INHERIT_VALUE.equals(value))
                return NumberAuto.newInstance(NumberAutoAsEnum.INHERIT);
           
            //Unknown number auto.
            problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                    node.getStartColumn(), name, value));
           
            return NumberAuto.newInstance(defaultValue);
        }           
    }
View Full Code Here

                return NumberAuto.newInstance(NumberAutoAsEnum.AUTO);
            else if (FXG_INHERIT_VALUE.equals(value))
                return NumberAuto.newInstance(NumberAutoAsEnum.INHERIT);

            // Unknown number auto.
            problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                    node.getStartColumn(), name, value))
           
            return NumberAuto.newInstance(defaultValue);
        }
    }
View Full Code Here

        catch(Exception e)
        {
            if (FXG_INHERIT_VALUE.equals(value))
                return NumberInherit.newInstance(NumberInheritAsEnum.INHERIT);

            problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                    node.getStartColumn(), name, value))
           
            return NumberInherit.newInstance(defaultValue);
        }
    }
View Full Code Here

                FXGLog.getLogger().log(IFXGLogger.WARN, "DefaultAttributeValue", null, ((AbstractFXGNode)node).getDocumentPath(), node.getStartLine(), node.getStartColumn());
            }
            else
            {
                //Unknown interpolation method.
                problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                        node.getStartColumn(), FXG_INTERPOLATIONMETHOD_ATTRIBUTE, value));
            }
           
            return defaultValue;
        }
View Full Code Here

        if (FXG_FONTSTYLE_NORMAL_VALUE.equals(value))
            return FontStyle.NORMAL;
        else if (FXG_FONTSTYLE_ITALIC_VALUE.equals(value))
            return FontStyle.ITALIC;
       
        problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                node.getStartColumn(), FXG_FONTSTYLE_ATTRIBUTE, value));
       
        return defaultValue;
    }
View Full Code Here

        }
        else if (((AbstractFXGNode)node).getFileVersion().equalTo(FXGVersion.v1_0))
        {
            // FXG 1.0 does not support any more maskTypes
            // Unknown maskType {0}.
            problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                    node.getStartColumn(), FXG_MASKTYPE_ATTRIBUTE, value));
            return defaultValue;
        }
        else if (FXG_MASK_LUMINOSITY_VALUE.equals(value))
        {
            return MaskType.LUMINOSITY;
        }
        else
        {
            if (((AbstractFXGNode)node).isVersionGreaterThanCompiler())
            {
                // Warning: Minor version of this FXG file is greater than minor
                // version supported by this compiler. Use default value if an
                // attribute value is out of range.
                FXGLog.getLogger().log(IFXGLogger.WARN, "DefaultAttributeValue", null, ((AbstractFXGNode)node).getDocumentPath(), node.getStartLine(), node.getStartColumn());
            }
            else
            {
                // Unknown maskType {0}.
                problems.add(new FXGUnknownAttributeValueProblem(node.getDocumentPath(), node.getStartLine(),
                        node.getStartColumn(), FXG_MASKTYPE_ATTRIBUTE, value));
            }
           
            return defaultValue;
        }
View Full Code Here

TOP

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

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.