Package com.helger.css.decl
Class CSSDeclarationContainer
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<ELEMENTTYPE>
-
- com.helger.commons.collection.impl.CommonsArrayList<DATATYPE>
-
- com.helger.css.decl.CSSWritableList<CSSDeclaration>
-
- com.helger.css.decl.CSSDeclarationList
-
- com.helger.css.decl.CSSDeclarationContainer
-
- All Implemented Interfaces:
com.helger.commons.collection.impl.ICommonsCollection<CSSDeclaration>
,com.helger.commons.collection.impl.ICommonsIterable<CSSDeclaration>
,com.helger.commons.collection.impl.ICommonsList<CSSDeclaration>
,com.helger.commons.lang.ICloneable<com.helger.commons.collection.impl.ICommonsList<CSSDeclaration>>
,com.helger.commons.lang.IHasSize
,com.helger.commons.traits.IGenericImplTrait<CSSDeclarationList>
,IHasCSSDeclarations<CSSDeclarationList>
,ICSSSourceLocationAware
,ICSSWriteable
,Serializable
,Cloneable
,Iterable<CSSDeclaration>
,Collection<CSSDeclaration>
,List<CSSDeclaration>
,RandomAccess
@NotThreadSafe public class CSSDeclarationContainer extends CSSDeclarationList
Represents a common container ofCSSDeclaration
objects. In contrary toCSSDeclarationList
this class emits block level elements around the declarations as used in style rules etc.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description CSSDeclarationContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to an output.-
Methods inherited from class com.helger.css.decl.CSSDeclarationList
addDeclaration, addDeclaration, getAllDeclarations, getAllDeclarationsOfPropertyName, getDeclarationAtIndex, getDeclarationCount, getDeclarationOfPropertyName, hasDeclarations, removeAllDeclarations, removeDeclaration, removeDeclaration, setDeclarationAtIndex
-
Methods inherited from class com.helger.css.decl.CSSWritableList
equals, getSourceLocation, hashCode, setSourceLocation, toString
-
Methods inherited from class com.helger.commons.collection.impl.CommonsArrayList
createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createInstance, getClone
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsCollection
addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addIf, addIfNotNull, addObject, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, iterator2, removeAll, removeObject, set, setAll, setAll, setAllMapped, setAllMapped
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount
-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsList
getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getLast, getLast, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeLast, reverse, setFirst, setLast, swapItems
-
Methods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSString
-
Methods inherited from interface com.helger.css.decl.IHasCSSDeclarations
addDeclaration, getAllDeclarationsOfPropertyNameCaseInsensitive, getDeclarationOfPropertyNameCaseInsensitive
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
getAsCSSString
@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
Description copied from interface:ICSSWriteable
Get the contents of this object as a serialized CSS string for writing to an output.- Specified by:
getAsCSSString
in interfaceICSSWriteable
- Overrides:
getAsCSSString
in classCSSWritableList<CSSDeclaration>
- Parameters:
aSettings
- The settings to be used to format the output. May not benull
.nIndentLevel
- The current indentation level- Returns:
- The content of this object as CSS string. Never
null
.
-
-