Klasse AbstractSelectingStyle
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.style.model.AbstractSelectingStyle
- Alle implementierten Schnittstellen:
IElement, IBaseStyle<ISelectingStyleWithSelectors>, ISelectingStyle<ISelectingStyleWithSelectors>, ISelectingStyleWithSelectors
- Bekannte direkte Unterklassen:
DeepSelectingStyle, SelectingStyle
public abstract class AbstractSelectingStyle
extends AbstractElement
implements ISelectingStyleWithSelectors
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenModifikatorKonstruktorBeschreibungprotectedAbstractSelectingStyle(String optionalSelectorId, String optionalSelectorType, IContainer<String> selectorRoles, IContainer<String> selectorTokens, IContainer<String> attachingAttributes, IContainer<? extends ISelectingStyleWithSelectors> subStyles) -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfinal 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) protected final voidLets the sub styles of the currentAbstractStylestyle the child element of the given element.final booleanselectsElement(IStylableElement<?> element) protected final voidsetAttachingAttributesToElement(IStylableElement<?> element) Sets the attaching attributes of the currentAbstractStyleto the given 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) Von Klasse geerbte Methoden AbstractElement
equals, getSpecification, hashCode, toStringVon Schnittstelle geerbte Methoden IBaseStyle
applyToElement, containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAttachingAttributes, withAttachingAttributes, withSubStyle, withSubStylesVon Schnittstelle geerbte Methoden IElement
getSpecification, toFormatedString, toXmlVon Schnittstelle geerbte Methoden ISelectingStyle
selectsChildElements, skipsChildElements, skipsElementVon Schnittstelle geerbte Methoden ISelectingStyleWithSelectors
withSelectorId, withSelectorRoles, withSelectorTokens, withSelectorType
-
Felddetails
-
SELECTOR_ID_HEADER
- Siehe auch:
-
SELECTOR_TYPE_HEADER
- Siehe auch:
-
SELECTOR_ROLE_HEADER
- Siehe auch:
-
SELECTOR_TOKEN_HEADER
- Siehe auch:
-
ATTACHING_ATTRIBUTE_HEADER
- Siehe auch:
-
-
Konstruktordetails
-
AbstractSelectingStyle
protected AbstractSelectingStyle(String optionalSelectorId, String optionalSelectorType, IContainer<String> selectorRoles, IContainer<String> selectorTokens, IContainer<String> attachingAttributes, IContainer<? extends ISelectingStyleWithSelectors> subStyles)
-
-
Methodendetails
-
containsSelectorRole
-
containsSelectorRoles
public final boolean containsSelectorRoles() -
containsSelectorToken
-
containsSelectorTokens
public final boolean containsSelectorTokens() -
getAttributes
- Angegeben von:
getAttributesin SchnittstelleIElement- Gibt zurück:
- the attributes of the current
IElement.
-
getSelectorId
- Angegeben von:
getSelectorIdin SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- the selector id of the current
ISelectingStyleWithSelectors.
-
getSelectorRoles
- Angegeben von:
getSelectorRolesin SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- the selector roles of the current
ISelectingStyleWithSelectors.
-
getSelectorTokens
- Angegeben von:
getSelectorTokensin SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- the selector tokens of the current
ISelectingStyleWithSelectors.
-
getSelectorType
- Angegeben von:
getSelectorTypein SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- the selector type of the current
ISelectingStyleWithSelectors.
-
hasSelectorId
public final boolean hasSelectorId()- Angegeben von:
hasSelectorIdin SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- true if the current
ISelectingStyleWithSelectorshas a selector id, false otherwise.
-
hasSelectorId
-
hasSelectorType
public final boolean hasSelectorType()- Angegeben von:
hasSelectorTypein SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- true if the current
ISelectingStyleWithSelectorshas a selector type, false otherwise.
-
hasSelectorType
-
hasSelectorType
-
selectsElement
- Angegeben von:
selectsElementin SchnittstelleISelectingStyle<ISelectingStyleWithSelectors>- Parameter:
element-- Gibt zurück:
- true if the current
ISelectingStylewould select the given element to style, false otherwise.
-
withSelectorRole
public final ISelectingStyleWithSelectors withSelectorRole(Enum<?> selectorRole, Enum<?>... selectorRoles) - Angegeben von:
withSelectorRolein SchnittstelleISelectingStyleWithSelectors- Parameter:
selectorRole-selectorRoles-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRole and selectorRoles added.
-
withSelectorRole
public final ISelectingStyleWithSelectors withSelectorRole(String selectorRole, String... selectorRoles) - Angegeben von:
withSelectorRolein SchnittstelleISelectingStyleWithSelectors- Parameter:
selectorRole-selectorRoles-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRole and selectorRoles added.
-
withSelectorToken
public final ISelectingStyleWithSelectors withSelectorToken(String selectorToken, String... selectorTokens) - Angegeben von:
withSelectorTokenin SchnittstelleISelectingStyleWithSelectors- Parameter:
selectorToken-selectorTokens-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorToken and selectorTokens added.
-
withSelectorType
- Angegeben von:
withSelectorTypein SchnittstelleISelectingStyleWithSelectors- Parameter:
selectorType-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorType set.
-
getAttachingAttributes
- Angegeben von:
getAttachingAttributesin SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Gibt zurück:
- the attaching attributes of the current
IBaseStyle.
-
getSubStyles
- Angegeben von:
getSubStylesin SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Gibt zurück:
- the sub styles of the current
IBaseStyle.
-
containsAttachingAttributes
public final boolean containsAttachingAttributes()- Angegeben von:
containsAttachingAttributesin SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Gibt zurück:
- true if the current
IBaseStylecontains attaching attributes, false otherwise.
-
withAttachingAttributes
- Angegeben von:
withAttachingAttributesin SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Parameter:
attachingAttributes-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given attachingAttributes added.
-
withSubStyle
public final ISelectingStyleWithSelectors withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) - Angegeben von:
withSubStylein SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Parameter:
subStyle-subStyles-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given subStyle and subStyles added.
-
setAttachingAttributesToElement
Sets the attaching attributes of the currentAbstractStyleto the given element.- Parameter:
element-- Löst aus:
InvalidArgumentException- if an attaching attribute of the currentAbstractStyleis not valid for the given element.
-
letSubStylesStyleChildElementsOfElement
Lets the sub styles of the currentAbstractStylestyle the child element of the given element.- Parameter:
element-
-