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
Represents a common container of
CSSDeclaration objects. In contrary
to CSSDeclarationList this class emits block level elements around
the declarations as used in style rules etc.- Author:
- Philip Helger
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsCSSString(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, setDeclarationAtIndexMethods inherited from class com.helger.css.decl.CSSWritableList
equals, getSourceLocation, hashCode, setSourceLocation, toStringMethods inherited from class com.helger.commons.collection.impl.CommonsArrayList
createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createInstance, getCloneMethods 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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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, setAllMappedMethods 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, getCountMethods inherited from interface com.helger.commons.collection.impl.ICommonsList
getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getFirstOrNull, getLast, getLast, getLastOrNull, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeFirstOrNull, removeLast, removeLastOrNull, reverse, setFirst, setLast, swapItemsMethods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSStringMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.css.decl.IHasCSSDeclarations
addDeclaration, getAllDeclarationsOfPropertyNameCaseInsensitive, getDeclarationOfPropertyNameCaseInsensitiveMethods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, sizeMethods 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
-
Constructor Details
-
CSSDeclarationContainer
public CSSDeclarationContainer()
-
-
Method Details
-
getAsCSSString
@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel) Description copied from interface:ICSSWriteableGet the contents of this object as a serialized CSS string for writing to an output.- Specified by:
getAsCSSStringin interfaceICSSWriteable- Overrides:
getAsCSSStringin 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.
-