Interface ISelectingStyleWithSelectors
- All Superinterfaces:
IBaseStyle<ISelectingStyleWithSelectors>, IElement, ISelectingStyle<ISelectingStyleWithSelectors>
- All Known Implementing Classes:
AbstractSelectingStyle, DeepSelectingStyle, SelectingStyle
A
ISelectingStyleWithSelectors is a ISelectingStyle that can
have specific selectors.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanwithSelectorId(String selectorId) withSelectorRole(Enum<?> selectorRole, Enum<?>... selectorRoles) withSelectorRole(String selectorRole, String... selectorRoles) withSelectorRoles(IContainer<String> selectorRoles) withSelectorToken(String selectorToken, String... selectorTokens) withSelectorTokens(IContainer<String> selectorTokens) withSelectorType(Class<?> selectorType) withSelectorType(String selectorType) Methods inherited from interface IBaseStyle
applyToElement, containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAttachingAttributes, withAttachingAttributes, withSubStyle, withSubStylesMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface ISelectingStyle
selectsChildElements, selectsElement, skipsChildElements, skipsElement
-
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.
-
withSelectorId
- Parameters:
selectorId-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorId set. - Throws:
RuntimeException- if the given selectorId is null or blank.
-
withSelectorRole
- Parameters:
selectorRole-selectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRole and selectorRoles added. - Throws:
RuntimeException- if the given selectorRole is null.RuntimeException- if the given selectorRoles is null.RuntimeException- if one of the given selectorRoles is null.
-
withSelectorRole
- Parameters:
selectorRole-selectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRole and selectorRoles added. - Throws:
RuntimeException- if the given selectorRole is null or blank.RuntimeException- if the given selectorRoles is null.RuntimeException- if one of the given selectorRoles is null or blank.
-
withSelectorRoles
- Parameters:
selectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRoles added. - Throws:
RuntimeException- if the given selectorRoles is null.RuntimeException- if one of the given selectorRoles is null or blank.
-
withSelectorToken
- Parameters:
selectorToken-selectorTokens-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorToken and selectorTokens added. - Throws:
RuntimeException- if the given selectorToken is null or blank.RuntimeException- if the given selectorTokens is null.RuntimeException- if one of the given selectorTokens is null or blank.
-
withSelectorTokens
- Parameters:
selectorTokens-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorTokens added. - Throws:
RuntimeException- if the given selectorTokens is null.RuntimeException- if one of the given selectorTokens 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.
-