Package com.helger.css.propertyvalue
Class CSSValueMultiProperty
- java.lang.Object
-
- com.helger.css.propertyvalue.CSSValueMultiProperty
-
- All Implemented Interfaces:
ICSSWriteable,ICSSMultiValue,ICSSValue
@Immutable public class CSSValueMultiProperty extends Object implements ICSSMultiValue
Represents a CSS value that has several property names, but only one value. This is e.g. if the propertyborder-radiusis used, as in this case also-moz-border-radiusshould be emitted (with the same value).
For consistency issues,- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description CSSValueMultiProperty(ECSSProperty eProperty, ICSSProperty[] aProperties, String sValue, boolean bIsImportant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)com.helger.commons.collection.impl.ICommonsList<CSSValue>getAllContainedValues()StringgetAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)Get the contents of this object as a serialized CSS string for writing to an output.ECSSPropertygetProp()inthashCode()StringtoString()-
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
-
CSSValueMultiProperty
public CSSValueMultiProperty(@Nonnull ECSSProperty eProperty, @Nonnull ICSSProperty[] aProperties, @Nonnull @Nonempty String sValue, boolean bIsImportant)
-
-
Method Detail
-
getAllContainedValues
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<CSSValue> getAllContainedValues()
- Specified by:
getAllContainedValuesin 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:ICSSWriteableGet the contents of this object as a serialized CSS string for writing to an output.- Specified by:
getAsCSSStringin 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.
-
-