@Test public void fontSizeEnumValidationTest() { Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "larger"))); Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "smaller"))); Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "xx-small"))); Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "x-small"))); Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "small"))); Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "medium"))); Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "large"))); Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "x-large"))); Assert.assertTrue(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "xx-large"))); Assert.assertFalse(CssDeclarationValidationMaster.checkDeclaration(new CssDeclaration(CommonCssConstants.FONT_SIZE, "smaler"))); }
public static boolean checkDeclaration(CssDeclaration declaration) { ICssDeclarationValidator validator = DEFAULT_VALIDATORS.get(declaration.getProperty()); return validator == null || validator.isValid(declaration); }
CssDeclarationValidationMaster { public static boolean checkDeclaration(CssDeclaration declaration) { ICssDeclarationValidator validator = DEFAULT_VALIDATORS.get(declaration.getProperty()); return validator == null || validator.isValid(declaration); } }
CssDeclarationValidationMaster { public static boolean checkDeclaration(CssDeclaration declaration) { ICssDeclarationValidator validator = DEFAULT_VALIDATORS.get(declaration.getProperty()); return validator == null || validator.isValid(declaration); } private  CssDeclarationValidationMaster(); }
CssDeclarationValidationMaster { public static boolean checkDeclaration(CssDeclaration declaration) { ICssDeclarationValidator validator = DEFAULT_VALIDATORS.get(declaration.getProperty()); return validator == null || validator.isValid(declaration); } private  CssDeclarationValidationMaster(); static boolean checkDeclaration(CssDeclaration declaration); }
CssDeclarationValidationMaster { public static boolean checkDeclaration(CssDeclaration declaration) { ICssDeclarationValidator validator = DEFAULT_VALIDATORS.get(declaration.getProperty()); return validator == null || validator.isValid(declaration); } private  CssDeclarationValidationMaster(); static boolean checkDeclaration(CssDeclaration declaration);  }