Package com.helger.css.propertyvalue
Class CSSValueMultiValue
- java.lang.Object
-
- com.helger.css.propertyvalue.CSSValueMultiValue
-
- All Implemented Interfaces:
ICSSWriteable
,ICSSMultiValue
,ICSSValue
@Immutable public class CSSValueMultiValue extends Object implements ICSSMultiValue
Represents a CSS value that has one property name, but multiple different values. This is e.g. if the propertydisplay
is used with the valueinline-block
than the result coding should first emitdisplay:-moz-inline-block;
and thendisplay:inline-block;
for FireFox 2.x specific support. (this specific example was removed in ph-css 6)- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description CSSValueMultiValue(ICSSProperty aProperty, String[] aValues, boolean bIsImportant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
com.helger.commons.collection.impl.ICommonsList<CSSValue>
getAllContainedValues()
String
getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to an output.ECSSProperty
getProp()
int
hashCode()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSString
-
-
-
-
Constructor Detail
-
CSSValueMultiValue
public CSSValueMultiValue(@Nonnull ICSSProperty aProperty, @Nonnull @Nonempty String[] aValues, boolean bIsImportant)
-
-
Method Detail
-
getAllContainedValues
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<CSSValue> getAllContainedValues()
- Specified by:
getAllContainedValues
in interfaceICSSMultiValue
- Returns:
- The contained CSS values. Never
null
.
-
getProp
@Nonnull public ECSSProperty getProp()
-
getAsCSSString
@Nonnull 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
- 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
.
-
-