Class AbstractSelectingStyle
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.style.model.AbstractSelectingStyle
- All Implemented Interfaces:
IElement, IBaseStyle<ISelectingStyleWithSelectors>, ISelectingStyle<ISelectingStyleWithSelectors>, ISelectingStyleWithSelectors
- Direct Known Subclasses:
DeepSelectingStyle, SelectingStyle
public abstract class AbstractSelectingStyle
extends AbstractElement
implements ISelectingStyleWithSelectors
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleancontainsSelectorRole(String selectorRole) final booleanfinal booleancontainsSelectorToken(String selectorToken) final booleanfinal IContainer<String> final IContainer<INode<?>> final Stringfinal IContainer<String> final IContainer<String> final Stringfinal IContainer<? extends ISelectingStyleWithSelectors> final booleanfinal booleanhasSelectorId(String selectorId) final booleanfinal booleanhasSelectorType(Class<?> selectorType) final booleanhasSelectorType(String selectorType) final booleanselectsElement(IStylableElement<?> element) withAttachingAttributes(String... attachingAttributes) withSelectorRole(Enum<?> selectorRole, Enum<?>... selectorRoles) withSelectorRole(String selectorRole, String... selectorRoles) withSelectorToken(String selectorToken, String... selectorTokens) withSelectorType(Class<?> selectorType) withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) Methods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface IBaseStyle
applyToElement, containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAttachingAttributes, withAttachingAttributes, withSubStyle, withSubStylesMethods inherited from interface IElement
getSpecification, toFormatedString, toXmlMethods inherited from interface ISelectingStyle
selectsChildElements, skipsChildElements, skipsElementMethods inherited from interface ISelectingStyleWithSelectors
withSelectorId, withSelectorRoles, withSelectorTokens, withSelectorType
-
Method Details
-
containsSelectorRole
-
containsSelectorRoles
public final boolean containsSelectorRoles() -
containsSelectorToken
-
containsSelectorTokens
public final boolean containsSelectorTokens() -
getAttributes
- Specified by:
getAttributesin interfaceIElement- Returns:
- the attributes of the current
IElement.
-
getSelectorId
- Specified by:
getSelectorIdin interfaceISelectingStyleWithSelectors- Returns:
- the selector id of the current
ISelectingStyleWithSelectors.
-
getSelectorRoles
- Specified by:
getSelectorRolesin interfaceISelectingStyleWithSelectors- Returns:
- the selector roles of the current
ISelectingStyleWithSelectors.
-
getSelectorTokens
- Specified by:
getSelectorTokensin interfaceISelectingStyleWithSelectors- Returns:
- the selector tokens of the current
ISelectingStyleWithSelectors.
-
getSelectorType
- Specified by:
getSelectorTypein interfaceISelectingStyleWithSelectors- Returns:
- the selector type of the current
ISelectingStyleWithSelectors.
-
hasSelectorId
public final boolean hasSelectorId()- Specified by:
hasSelectorIdin interfaceISelectingStyleWithSelectors- Returns:
- true if the current
ISelectingStyleWithSelectorshas a selector id, false otherwise.
-
hasSelectorId
-
hasSelectorType
public final boolean hasSelectorType()- Specified by:
hasSelectorTypein interfaceISelectingStyleWithSelectors- Returns:
- true if the current
ISelectingStyleWithSelectorshas a selector type, false otherwise.
-
hasSelectorType
-
hasSelectorType
-
selectsElement
- Specified by:
selectsElementin interfaceISelectingStyle<ISelectingStyleWithSelectors>- Parameters:
element-- Returns:
- true if the current
ISelectingStylewould select the given element to style, false otherwise.
-
withSelectorRole
public final ISelectingStyleWithSelectors withSelectorRole(Enum<?> selectorRole, Enum<?>... selectorRoles) - Specified by:
withSelectorRolein interfaceISelectingStyleWithSelectors- Parameters:
selectorRole-selectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRole and selectorRoles added.
-
withSelectorRole
public final ISelectingStyleWithSelectors withSelectorRole(String selectorRole, String... selectorRoles) - Specified by:
withSelectorRolein interfaceISelectingStyleWithSelectors- Parameters:
selectorRole-selectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRole and selectorRoles added.
-
withSelectorToken
public final ISelectingStyleWithSelectors withSelectorToken(String selectorToken, String... selectorTokens) - Specified by:
withSelectorTokenin interfaceISelectingStyleWithSelectors- Parameters:
selectorToken-selectorTokens-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorToken and selectorTokens added.
-
withSelectorType
- Specified by:
withSelectorTypein interfaceISelectingStyleWithSelectors- Parameters:
selectorType-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorType set.
-
getAttachingAttributes
- Specified by:
getAttachingAttributesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Returns:
- the attaching attributes of the current
IBaseStyle.
-
getSubStyles
- Specified by:
getSubStylesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Returns:
- the sub styles of the current
IBaseStyle.
-
containsAttachingAttributes
public final boolean containsAttachingAttributes()- Specified by:
containsAttachingAttributesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Returns:
- true if the current
IBaseStylecontains attaching attributes, false otherwise.
-
withAttachingAttributes
- Specified by:
withAttachingAttributesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Parameters:
attachingAttributes-- Returns:
- a new
IStylefrom the currentIStylewith the given attachingAttributes added.
-
withSubStyle
public final ISelectingStyleWithSelectors withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) - Specified by:
withSubStylein interfaceIBaseStyle<S extends IBaseStyle<S>>- Parameters:
subStyle-subStyles-- Returns:
- a new
IStylefrom the currentIStylewith the given subStyle and subStyles added.
-