Interface ISelectingStyle<S extends ISelectingStyle<S>>
- Type Parameters:
S- is the type of aISelectingStyle.
- All Superinterfaces:
IBaseStyle<S>, IElement
- All Known Subinterfaces:
ISelectingStyleWithSelectors
- All Known Implementing Classes:
AbstractSelectingStyle, DeepSelectingStyle, SelectingStyle
A
ISelectingStyle is a IBaseStyle that can select or skip a
IStylableElement that is given to be styled.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanselectsElement(IStylableElement<?> element) default booleandefault booleanskipsElement(IStylableElement<?> element) Methods inherited from interface IBaseStyle
applyToElement, containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAttachingAttributes, withAttachingAttributes, withSubStyle, withSubStylesMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXml
-
Method Details
-
selectsChildElements
boolean selectsChildElements()- Returns:
- true if the current
ISelectingStylewould select the child elements of a givenIStylableElementto style, false otherwise.
-
selectsElement
- Parameters:
element-- Returns:
- true if the current
ISelectingStylewould select the given element to style, false otherwise.
-
skipsChildElements
default boolean skipsChildElements()- Returns:
- true if the current
ISelectingStylewould not (!) select the child elements of a givenIStylableElementto style, false otherwise.
-
skipsElement
- Parameters:
element-- Returns:
- true if the current
ISelectingStylewould not (!) select the given element to style, false otherwise.
-