private void setPropertiesToNotUse(List<PropertyDeclarationTree> propertyDeclarationTrees) { propertiesToNotUse = null; for (PropertyDeclarationTree declaration : propertyDeclarationTrees) { if ("display".equals(declaration.property().standardProperty().getName()) && declaration.isValid(this.getContext().getLanguage()) && declaration.value().sanitizedValueElements().get(0) instanceof IdentifierTree) { displayDeclaration = declaration; String displayValue = ((IdentifierTree) declaration.value().sanitizedValueElements().get(0)).text(); if (displayValue.startsWith("table-")) { propertiesToNotUse = RULES.get("table-*"); } else { propertiesToNotUse = RULES.get(displayValue); } return; } } }
private void setPropertiesToNotUse(List<PropertyDeclarationTree> propertyDeclarationTrees) { propertiesToNotUse = null; for (PropertyDeclarationTree declaration : propertyDeclarationTrees) { if ("display".equals(declaration.property().standardProperty().getName()) && declaration.isValid(this.getContext().getLanguage()) && declaration.value().sanitizedValueElements().get(0) instanceof IdentifierTree) { displayDeclaration = declaration; String displayValue = ((IdentifierTree) declaration.value().sanitizedValueElements().get(0)).text(); if (displayValue.startsWith("table-")) { propertiesToNotUse = RULES.get("table-*"); } else { propertiesToNotUse = RULES.get(displayValue); } return; } } }
@Override public void visitPropertyDeclaration(PropertyDeclarationTree tree) { if (tree.property().standardProperty() instanceof FontFamily && tree.isValid(this.getContext().getLanguage())) { checkForIssues(mapByFontFamilyName(tree.value())); } super.visitPropertyDeclaration(tree); }
@Override public void visitPropertyDeclaration(PropertyDeclarationTree tree) { if (tree.property().standardProperty() instanceof FontFamily && tree.isValid(this.getContext().getLanguage())) { checkForIssues(mapByFontFamilyName(tree.value())); } super.visitPropertyDeclaration(tree); }
@Override public void visitPropertyDeclaration(PropertyDeclarationTree tree) { if (!tree.property().isVendorPrefixed() && !tree.isValid(this.getContext().getLanguage())) { addPreciseIssue( tree, MessageFormat.format( "Update the invalid value of property \"{0}\". Expected format: {1}", tree.property().standardProperty().getName(), tree.property().standardProperty().getValidatorFormat())); } super.visitPropertyDeclaration(tree); }
@Override public void visitPropertyDeclaration(PropertyDeclarationTree tree) { if (!tree.property().isVendorPrefixed() && !tree.isValid(this.getContext().getLanguage())) { addPreciseIssue( tree, MessageFormat.format( "Update the invalid value of property \"{0}\". Expected format: {1}", tree.property().standardProperty().getName(), tree.property().standardProperty().getValidatorFormat())); } super.visitPropertyDeclaration(tree); }