@NotThreadSafe public class CSSExpressionMemberLineNames extends Object implements ICSSExpressionMember, ICSSVersionAware, ICSSSourceLocationAware
| Constructor and Description |
|---|
CSSExpressionMemberLineNames() |
CSSExpressionMemberLineNames(Iterable<? extends String> aMembers) |
| Modifier and Type | Method and Description |
|---|---|
CSSExpressionMemberLineNames |
addMember(int nIndex,
String aMember) |
CSSExpressionMemberLineNames |
addMember(String sMember) |
boolean |
equals(Object o) |
com.helger.commons.collection.impl.ICommonsList<String> |
getAllMembers() |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
CSSExpressionMemberLineNames |
getClone() |
int |
getMemberCount() |
ECSSVersion |
getMinimumCSSVersion() |
CSSSourceLocation |
getSourceLocation() |
int |
hashCode() |
com.helger.commons.state.EChange |
removeAllMembers()
Remove all members.
|
com.helger.commons.state.EChange |
removeMember(int nMemberIndex) |
com.helger.commons.state.EChange |
removeMember(String aMember) |
void |
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSString@Nonnull public CSSExpressionMemberLineNames addMember(@Nonnull @Nonempty String sMember)
@Nonnull public CSSExpressionMemberLineNames addMember(@Nonnegative int nIndex, @Nonnull @Nonempty String aMember)
@Nonnull public com.helger.commons.state.EChange removeMember(@Nonnegative int nMemberIndex)
@Nonnull public com.helger.commons.state.EChange removeAllMembers()
EChange.CHANGED if any member was removed,
EChange.UNCHANGED otherwise. Never null.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<String> getAllMembers()
@Nonnegative public int getMemberCount()
@Nonnull public CSSExpressionMemberLineNames getClone()
getClone in interface com.helger.commons.lang.ICloneable<ICSSExpressionMember>@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.