DATATYPE - The type of object to be handled.@NotThreadSafe public class CSSWritableList<DATATYPE extends ICSSWriteable> extends Object implements ICSSSourceLocationAware, ICSSWriteable
ICSSWriteable objects. This class emits all
contained elements with a semicolon as separator but without any surrounding
block elements.| Constructor and Description |
|---|
CSSWritableList() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(DATATYPE aElement) |
protected void |
add(int nIndex,
DATATYPE aElement) |
protected List<DATATYPE> |
directGetAll() |
boolean |
equals(Object o) |
protected List<DATATYPE> |
getAll() |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
protected DATATYPE |
getAtIndex(int nIndex) |
protected int |
getCount() |
CSSSourceLocation |
getSourceLocation() |
int |
hashCode() |
protected boolean |
isEmpty() |
protected boolean |
isNotEmpty() |
protected com.helger.commons.state.EChange |
remove(DATATYPE aElement) |
protected com.helger.commons.state.EChange |
remove(int nIndex) |
protected com.helger.commons.state.EChange |
removeAll() |
protected void |
set(int nIndex,
DATATYPE aElement) |
void |
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.
|
String |
toString() |
protected final void add(@Nonnegative int nIndex, @Nonnull DATATYPE aElement)
protected final void set(@Nonnegative int nIndex, @Nonnull DATATYPE aElement)
@Nonnull protected final com.helger.commons.state.EChange remove(@Nonnegative int nIndex)
@Nonnull protected final com.helger.commons.state.EChange removeAll()
@Nonnull @ReturnsMutableObject(value="design") protected final List<DATATYPE> directGetAll()
@Nullable protected final DATATYPE getAtIndex(@Nonnegative int nIndex)
protected final boolean isEmpty()
protected final boolean isNotEmpty()
@Nonnegative protected final int getCount()
@Nonnull 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 levelpublic void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
ICSSSourceLocationAwaresetSourceLocation in interface ICSSSourceLocationAwareaSourceLocation - The source location to use. May be null.@Nullable public CSSSourceLocation getSourceLocation()
getSourceLocation in interface ICSSSourceLocationAwarenull if an object was not read but manually
created.Copyright © 2014–2016 Philip Helger. All rights reserved.