@NotThreadSafe public class CSSSelectorMemberNot extends Object implements ICSSSelectorMember, ICSSVersionAware, ICSSSourceLocationAware
| Constructor and Description |
|---|
CSSSelectorMemberNot(CSSSelector... aNestedSelectors) |
CSSSelectorMemberNot(CSSSelector aNestedSelector) |
CSSSelectorMemberNot(Iterable<CSSSelector> aNestedSelectors) |
| Modifier and Type | Method and Description |
|---|---|
CSSSelectorMemberNot |
addSelector(CSSSelector aSelector) |
CSSSelectorMemberNot |
addSelector(ICSSSelectorMember aSingleSelectorMember) |
CSSSelectorMemberNot |
addSelector(int nIndex,
CSSSelector aSelector) |
CSSSelectorMemberNot |
addSelector(int nIndex,
ICSSSelectorMember aSingleSelectorMember) |
boolean |
equals(Object o) |
com.helger.commons.collection.impl.ICommonsList<CSSSelector> |
getAllSelectors() |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
ECSSVersion |
getMinimumCSSVersion() |
CSSSelector |
getSelectorAtIndex(int nSelectorIndex) |
int |
getSelectorCount() |
CSSSourceLocation |
getSourceLocation() |
int |
hashCode() |
boolean |
hasSelectors() |
com.helger.commons.state.EChange |
removeAllSelectors()
Remove all selectors.
|
com.helger.commons.state.EChange |
removeSelector(CSSSelector aSelector) |
com.helger.commons.state.EChange |
removeSelector(int nSelectorIndex) |
void |
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSStringpublic CSSSelectorMemberNot(@Nonnull CSSSelector aNestedSelector)
public CSSSelectorMemberNot(@Nonnull CSSSelector... aNestedSelectors)
public CSSSelectorMemberNot(@Nonnull Iterable<CSSSelector> aNestedSelectors)
public boolean hasSelectors()
@Nonnegative public int getSelectorCount()
@Nonnull public CSSSelectorMemberNot addSelector(@Nonnull ICSSSelectorMember aSingleSelectorMember)
@Nonnull public CSSSelectorMemberNot addSelector(@Nonnull CSSSelector aSelector)
@Nonnull public CSSSelectorMemberNot addSelector(@Nonnegative int nIndex, @Nonnull ICSSSelectorMember aSingleSelectorMember)
@Nonnull public CSSSelectorMemberNot addSelector(@Nonnegative int nIndex, @Nonnull CSSSelector aSelector)
@Nonnull public com.helger.commons.state.EChange removeSelector(@Nonnull CSSSelector aSelector)
@Nonnull public com.helger.commons.state.EChange removeSelector(@Nonnegative int nSelectorIndex)
@Nonnull public com.helger.commons.state.EChange removeAllSelectors()
EChange.CHANGED if any selector was removed,
EChange.UNCHANGED otherwise. Never null.@Nullable public CSSSelector getSelectorAtIndex(@Nonnegative int nSelectorIndex)
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<CSSSelector> getAllSelectors()
@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
ICSSWriteablegetAsCSSString in interface ICSSWriteableaSettings - The settings to be used to format the output. May not be
null.nIndentLevel - The current indentation levelnull.@Nonnull public ECSSVersion getMinimumCSSVersion()
getMinimumCSSVersion in interface ICSSVersionAwarenull.@Nullable public final CSSSourceLocation getSourceLocation()
getSourceLocation in interface ICSSSourceLocationAwarenull if an object was not read but manually
created.public final void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
ICSSSourceLocationAwaresetSourceLocation in interface ICSSSourceLocationAwareaSourceLocation - The source location to use. May be null.Copyright © 2014–2022 Philip Helger. All rights reserved.