Package ch.nolix.system.style.model
Klasse AbstractSelectingStyle
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.style.model.AbstractSelectingStyle
- Alle implementierten Schnittstellen:
IElement,IAbstractStyle<ISelectingStyleWithSelectors>,ISelectingStyle<ISelectingStyleWithSelectors>,ISelectingStyleWithSelectors
- Bekannte direkte Unterklassen:
DeepSelectingStyle,SelectingStyle
public abstract class AbstractSelectingStyle
extends AbstractElement
implements ISelectingStyleWithSelectors
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedAbstractSelectingStyle(String optionalSelectorId, String optionalSelectorType, IContainer<String> selectorRoles, IContainer<String> selectorTokens, IContainer<? extends IAttachingAttribute> attachingAttributes, IContainer<? extends ISelectingStyleWithSelectors> subStyles) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal booleancontainsSelectorRole(String selectorRole) final booleanfinal booleancontainsSelectorToken(String selectorToken) final booleanfinal IContainer<? extends IAttachingAttribute> final IContainer<INode<?>> final Stringfinal IContainer<String> final IContainer<String> final Stringfinal IContainer<? extends ISelectingStyleWithSelectors> final booleanfinal 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.withAttachingAttribute(Enum<?> tag, String value) withAttachingAttribute(String attachingAttribute, String... attachingAttributes) withNewAttachingAttributesWhereSelectorType(String selectorType, String newAttachingAttribute, String... newAttachingAttributes) withReplacedAttachingAttributes(IPair<String, String> attachingAttributeReplacement, IPair<String, String>... attachingAttributeReplacements) withReplacedTaggedAttachingAttributes(IPair<Enum<?>, String> attachingAttributeReplacement, IPair<Enum<?>, String>... attachingAttributeReplacements) 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 ch.nolix.system.element.base.AbstractElement
equals, getSpecification, hashCode, toStringVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.systemapi.style.model.IAbstractStyle
applyToElement, getAttachingAttributes, getSubStyles, hasAttachingAttributes, withAttachingAttribute, withAttachingAttribute, withAttachingAttributes, withNewAttachingAttributesWhereSelectorType, withNewAttachingAttributesWhereSelectorType, withReplacedAttachingAttributes, withReplacedAttachingAttributes, withReplacedTaggedAttachingAttributes, withReplacedTaggedAttachingAttributes, withSubStyle, withSubStylesVon Schnittstelle geerbte Methoden ch.nolix.systemapi.element.base.IElement
getSpecification, toFormatedString, toXmlVon Schnittstelle geerbte Methoden ch.nolix.systemapi.style.model.ISelectingStyle
selectsChildElements, skipsChildElements, skipsElementVon Schnittstelle geerbte Methoden ch.nolix.systemapi.style.model.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<? extends IAttachingAttribute> 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.
-
hasSelectorId
-
hasSelectorType
public final boolean hasSelectorType()- Angegeben von:
hasSelectorTypein SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- true if the current
ISelectingStyleWithSelectorshas a selector type.
-
hasSelectorType
-
hasSelectorType
-
selectsElement
- Angegeben von:
selectsElementin SchnittstelleISelectingStyle<ISelectingStyleWithSelectors>- Parameter:
element-- Gibt zurück:
- true if the current
ISelectingStylewould select the given element to style.
-
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 SchnittstelleIAbstractStyle<S extends IAbstractStyle<S>>- Gibt zurück:
- the attaching attributes of the current
IAbstractStyle.
-
getSubStyles
- Angegeben von:
getSubStylesin SchnittstelleIAbstractStyle<S extends IAbstractStyle<S>>- Gibt zurück:
- the sub styles of the current
IAbstractStyle.
-
hasAttachingAttributes
public final boolean hasAttachingAttributes()- Angegeben von:
hasAttachingAttributesin SchnittstelleIAbstractStyle<S extends IAbstractStyle<S>>- Gibt zurück:
- true if the current
IAbstractStylehas attaching attributes, false otherwise.
-
withAttachingAttribute
- Angegeben von:
withAttachingAttributein SchnittstelleIAbstractStyle<S extends IAbstractStyle<S>>- Parameter:
tag-value-- Gibt zurück:
- a new
IStylefrom the currentIStylewith an attaching attribute added that has the given tag and value.
-
withAttachingAttribute
public final ISelectingStyleWithSelectors withAttachingAttribute(String attachingAttribute, String... attachingAttributes) - Angegeben von:
withAttachingAttributein SchnittstelleIAbstractStyle<S extends IAbstractStyle<S>>- Parameter:
attachingAttribute-attachingAttributes-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given attachingAttribute and attachingAttributes added.
-
withNewAttachingAttributesWhereSelectorType
public final ISelectingStyleWithSelectors withNewAttachingAttributesWhereSelectorType(String selectorType, String newAttachingAttribute, String... newAttachingAttributes) - Angegeben von:
withNewAttachingAttributesWhereSelectorTypein SchnittstelleIAbstractStyle<S extends IAbstractStyle<S>>- Parameter:
selectorType-newAttachingAttribute-newAttachingAttributes-- Gibt zurück:
- a new
IAbstractStylefrom the currentIAbstractStylewhere the newAttachingAttribute and each of the given newAttachingAttributes either was added or updated the according attachingAttributes where the given selectorType is.
-
withReplacedAttachingAttributes
public final ISelectingStyleWithSelectors withReplacedAttachingAttributes(IPair<String, String> attachingAttributeReplacement, IPair<String, String>... attachingAttributeReplacements) - Angegeben von:
withReplacedAttachingAttributesin SchnittstelleIAbstractStyle<S extends IAbstractStyle<S>>- Parameter:
attachingAttributeReplacement-attachingAttributeReplacements-- Gibt zurück:
- a new
IStylefrom the currentIStylewhere the given attributeAttributeReplacement and attachingAttributeReplacements replaced all the according attachingAttributes.
-
withReplacedTaggedAttachingAttributes
public final ISelectingStyleWithSelectors withReplacedTaggedAttachingAttributes(IPair<Enum<?>, String> attachingAttributeReplacement, IPair<Enum<?>, String>... attachingAttributeReplacements) - Angegeben von:
withReplacedTaggedAttachingAttributesin SchnittstelleIAbstractStyle<S extends IAbstractStyle<S>>- Parameter:
attachingAttributeReplacement-attachingAttributeReplacements-- Gibt zurück:
- a new
IStylefrom the currentIStylewhere the given attributeAttributeReplacement and attachingAttributeReplacements replaced all the according attachingAttributes.
-
withSubStyle
public final ISelectingStyleWithSelectors withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) - Angegeben von:
withSubStylein SchnittstelleIAbstractStyle<S extends IAbstractStyle<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-
-