Interface ISelectingStyleWithSelectors
- All Superinterfaces:
AttributesRepresentable, IBaseStyle<ISelectingStyleWithSelectors>, IElement, ISelectingStyle<ISelectingStyleWithSelectors>, SpecificationRepresentable
- All Known Implementing Classes:
AbstractSelectingStyle, DeepSelectingStyle, SelectingStyle
A
ISelectingStyleWithSelectors is a ISelectingStyle that can
have specific selectors.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanwithAdditionalSelectorRole(Enum<?> additionalSelectorRole) withAdditionalSelectorRole(String additionalSelectorRole) withAdditionalSelectorRoles(IContainer<String> additionalSelectorRoles) withAdditionalSelectorRoles(Enum<?>... additionalSelectorRoles) withAdditionalSelectorRoles(String... additionalSelectorRoles) withAdditionalSelectorToken(String additionalSelectorToken) withAdditionalSelectorTokens(IContainer<String> additionalSelectorTokens) withAdditionalSelectorTokens(String... additionalSelectorTokens) withSelectorId(String selectorId) withSelectorType(Class<?> selectorType) withSelectorType(String selectorType) Methods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface IBaseStyle
applyToElement, containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAdditionalSubStyle, withAdditionalSubStyles, withAttachingAttributes, withAttachingAttributes, withSubStylesMethods inherited from interface ISelectingStyle
selectsChildElements, selectsElement, skipsChildElements, skipsElementMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
Method Details
-
getSelectorId
String getSelectorId()- Returns:
- the selector id of the current
ISelectingStyleWithSelectors. - Throws:
RuntimeException- if the currentISelectingStyleWithSelectorsdoes not have a selector id.
-
getSelectorRoles
IContainer<String> getSelectorRoles()- Returns:
- the selector roles of the current
ISelectingStyleWithSelectors.
-
getSelectorTokens
IContainer<String> getSelectorTokens()- Returns:
- the selector tokens of the current
ISelectingStyleWithSelectors.
-
getSelectorType
String getSelectorType()- Returns:
- the selector type of the current
ISelectingStyleWithSelectors. - Throws:
RuntimeException- if the currentISelectingStyleWithSelectorsdoes not have a selector type.
-
hasSelectorId
boolean hasSelectorId()- Returns:
- true if the current
ISelectingStyleWithSelectorshas a selector id, false otherwise.
-
hasSelectorType
boolean hasSelectorType()- Returns:
- true if the current
ISelectingStyleWithSelectorshas a selector type, false otherwise.
-
withAdditionalSelectorRole
- Parameters:
additionalSelectorRole-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRole . - Throws:
RuntimeException- if the given additionalSelectorRole is null or blank.
-
withAdditionalSelectorRole
- Parameters:
additionalSelectorRole-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRole . - Throws:
RuntimeException- if the given additionalSelectorRole is null or blank.
-
withAdditionalSelectorRoles
- Parameters:
additionalSelectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRoles. - Throws:
RuntimeException- if the given additionalSelectorRoles is null.RuntimeException- if one of the given additionalSelectorRoles is null.
-
withAdditionalSelectorRoles
ISelectingStyleWithSelectors withAdditionalSelectorRoles(IContainer<String> additionalSelectorRoles) - Parameters:
additionalSelectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRoles. - Throws:
RuntimeException- if the given additionalSelectorRoles is null.RuntimeException- if one of the given additionalSelectorRoles is null or blank.
-
withAdditionalSelectorRoles
- Parameters:
additionalSelectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRoles . - Throws:
RuntimeException- if the given additionalSelectorRoles is null.RuntimeException- if one of the given additionalSelectorRoles is null or blank.
-
withAdditionalSelectorToken
- Parameters:
additionalSelectorToken-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorToken. - Throws:
RuntimeException- if the given additionalSelectorToken is null or blank.
-
withAdditionalSelectorTokens
- Parameters:
additionalSelectorTokens-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorTokens. - Throws:
RuntimeException- if the given additionalSelectorTokens is null.RuntimeException- if one of the given additionalSelectorTokens is null or blank.
-
withAdditionalSelectorTokens
ISelectingStyleWithSelectors withAdditionalSelectorTokens(IContainer<String> additionalSelectorTokens) - Parameters:
additionalSelectorTokens-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorTokens. - Throws:
RuntimeException- if the given additionalSelectorTokens is null.RuntimeException- if one of the given additionalSelectorTokens is null or blank.
-
withSelectorId
- Parameters:
selectorId-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorId set. - Throws:
RuntimeException- if the given selectorId is null or blank.
-
withSelectorType
- Parameters:
selectorType-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorType set. - Throws:
RuntimeException- if the given selectorType is null.
-
withSelectorType
- Parameters:
selectorType-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorType set. - Throws:
RuntimeException- if the given selectorType is null or blank.
-