Package io.meeds.layout.util
Class LayoutStyleValidator
java.lang.Object
io.meeds.layout.util.LayoutStyleValidator
Validates the style values a page or a site layout carries before it is
saved, on every editor save path (page layout and site layout alike). A
refused value fails the save with an
IllegalArgumentException.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidate(org.exoplatform.portal.config.model.ModelObject modelObject) Validates the style values of the given layout object and of every descendant container.
-
Method Details
-
validate
public static void validate(org.exoplatform.portal.config.model.ModelObject modelObject) Validates the style values of the given layout object and of every descendant container.- Parameters:
modelObject- the page, site layout or container to validate, null accepted (nothing to validate)- Throws:
IllegalArgumentException- when a style value is refused
-