Interface ICssPropertyMapper
- All Known Implementing Classes:
CssPropertyMapper
public interface ICssPropertyMapper
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionmapBackgroundToCssProperties(IBackground background) mapCornerShadowsToOptionalCssProperty(IContainer<? extends ICornerShadow> cornerShadows) mapCornerShadowToCssProperty(ICornerShadow cornerShadow) mapLineDecorationToCssProperty(LineDecoration lineDecoration)
-
Method Details
-
mapBackgroundToCssProperties
- Parameters:
background-- Returns:
- the
ICssPropertys from the given background. - Throws:
RuntimeException- if the given background is null.
-
mapCornerShadowToCssProperty
- Parameters:
cornerShadow-- Returns:
- a new
ICssPropertyfrom the given cornerShadow. - Throws:
RuntimeException- if the given cornerShadow is null.
-
mapCornerShadowsToOptionalCssProperty
Optional<ICssProperty> mapCornerShadowsToOptionalCssProperty(IContainer<? extends ICornerShadow> cornerShadows) - Parameters:
cornerShadows-- Returns:
- a
Optionalwith a newICssPropertyfrom the given cornerShadows if the given cornerShadows is not empty, an emptyOptionalotherwise. - Throws:
RuntimeException- if the given cornerShadows is null or one of the given cornerShadows is null.
-
mapLineDecorationToCssProperty
- Parameters:
lineDecoration-- Returns:
- a new
ICssPropertyfrom the given lineDecoration. - Throws:
RuntimeException- if the given lineDecoration is null.
-