Class AbstractSelectingStyle
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.style.model.AbstractSelectingStyle
- All Implemented Interfaces:
AttributesRepresentable, IElement, SpecificationRepresentable, 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) withAdditionalSelectorRole(Enum<?> additionalSelectorRole) withAdditionalSelectorRole(String additionalSelectorRole) withAdditionalSelectorRoles(Enum<?>... additionalSelectorRoles) withAdditionalSelectorRoles(String... additionalSelectorRoles) withAdditionalSelectorToken(String additionalSelectorToken) withAdditionalSelectorTokens(String... additionalSelectorTokens) withAdditionalSubStyle(ISelectingStyleWithSelectors additionalSubStyle) withAdditionalSubStyles(ISelectingStyleWithSelectors... additionalSubStyles) withAttachingAttributes(String... attachingAttributes) withSelectorType(Class<?> selectorType) Methods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface IBaseStyle
applyToElement, containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAdditionalSubStyle, withAdditionalSubStyles, withAttachingAttributes, withAttachingAttributes, withSubStylesMethods inherited from interface ISelectingStyle
selectsChildElements, skipsChildElements, skipsElementMethods inherited from interface ISelectingStyleWithSelectors
withAdditionalSelectorRoles, withAdditionalSelectorTokens, withSelectorId, withSelectorTypeMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
Method Details
-
containsSelectorRole
-
containsSelectorRoles
public final boolean containsSelectorRoles() -
containsSelectorToken
-
containsSelectorTokens
public final boolean containsSelectorTokens() -
getAttributes
- Specified by:
getAttributesin interfaceAttributesRepresentable- Returns:
- the attributes of the current
AttributesRepresentable
-
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.
-
withAdditionalSelectorRole
- Specified by:
withAdditionalSelectorRolein interfaceISelectingStyleWithSelectors- Parameters:
additionalSelectorRole-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRole .
-
withAdditionalSelectorRole
- Specified by:
withAdditionalSelectorRolein interfaceISelectingStyleWithSelectors- Parameters:
additionalSelectorRole-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRole .
-
withAdditionalSelectorRoles
public final ISelectingStyleWithSelectors withAdditionalSelectorRoles(Enum<?>... additionalSelectorRoles) - Specified by:
withAdditionalSelectorRolesin interfaceISelectingStyleWithSelectors- Parameters:
additionalSelectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRoles.
-
withAdditionalSelectorRoles
public final ISelectingStyleWithSelectors withAdditionalSelectorRoles(String... additionalSelectorRoles) - Specified by:
withAdditionalSelectorRolesin interfaceISelectingStyleWithSelectors- Parameters:
additionalSelectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRoles .
-
withAdditionalSelectorToken
public final ISelectingStyleWithSelectors withAdditionalSelectorToken(String additionalSelectorToken) - Specified by:
withAdditionalSelectorTokenin interfaceISelectingStyleWithSelectors- Parameters:
additionalSelectorToken-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorToken.
-
withAdditionalSelectorTokens
public final ISelectingStyleWithSelectors withAdditionalSelectorTokens(String... additionalSelectorTokens) - Specified by:
withAdditionalSelectorTokensin interfaceISelectingStyleWithSelectors- Parameters:
additionalSelectorTokens-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorTokens.
-
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.
-
withAdditionalSubStyle
public final ISelectingStyleWithSelectors withAdditionalSubStyle(ISelectingStyleWithSelectors additionalSubStyle) - Specified by:
withAdditionalSubStylein interfaceIBaseStyle<S extends IBaseStyle<S>>- Parameters:
additionalSubStyle-- Returns:
- a new
IStylefrom the currentIStylewith the given additionalSubStyle.
-
withAdditionalSubStyles
public final ISelectingStyleWithSelectors withAdditionalSubStyles(ISelectingStyleWithSelectors... additionalSubStyles) - Specified by:
withAdditionalSubStylesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Parameters:
additionalSubStyles-- Returns:
- a new
IStylefrom the currentIStylewith the given additionalSubStyles.
-
withAttachingAttributes
- Specified by:
withAttachingAttributesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Parameters:
attachingAttributes-- Returns:
- a new
IStylefrom the currentIStylewith the given attachingAttributes added.
-