Package com.helger.css.propertyvalue
Class CSSValueMultiProperty
java.lang.Object
com.helger.css.propertyvalue.CSSValueMultiProperty
- All Implemented Interfaces:
ICSSWriteable,ICSSMultiValue,ICSSValue
Represents a CSS value that has several property names, but only one value.
This is e.g. if the property
For consistency issues,
border-radius is used, as in this
case also -moz-border-radius should be emitted (with the same
value).For consistency issues,
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCSSValueMultiProperty(ECSSProperty eProperty, ICSSProperty[] aProperties, String sValue, boolean bIsImportant) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.helger.commons.collection.impl.ICommonsList<CSSValue> getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel) Get the contents of this object as a serialized CSS string for writing to an output.getProp()inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSString
-
Constructor Details
-
CSSValueMultiProperty
public CSSValueMultiProperty(@Nonnull ECSSProperty eProperty, @Nonnull ICSSProperty[] aProperties, @Nonnull @Nonempty String sValue, boolean bIsImportant)
-
-
Method Details
-
getAllContainedValues
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<CSSValue> getAllContainedValues()- Specified by:
getAllContainedValuesin interfaceICSSMultiValue- Returns:
- The contained CSS values. Never
null.
-
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.
-
equals
-
hashCode
public int hashCode() -
toString
-