}
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;
}