@NotThreadSafe public class CSSUnknownRule extends Object implements ICSSTopLevelRule, ICSSSourceLocationAware
@ rule that is non-standard and/or unknown.| Constructor and Description |
|---|
CSSUnknownRule(String sDeclaration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
String |
getBody() |
String |
getDeclaration() |
String |
getParameterList() |
CSSSourceLocation |
getSourceLocation() |
int |
hashCode() |
static boolean |
isValidDeclaration(String sDeclaration) |
CSSUnknownRule |
setBody(String sBody) |
CSSUnknownRule |
setParameterList(String sParameterList) |
void |
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSString@Nonnull @Nonempty public String getDeclaration()
null nor empty. Always starting with @.@Nonnull public CSSUnknownRule setParameterList(@Nullable String sParameterList)
@Nullable public String getParameterList()
@Nonnull public CSSUnknownRule setBody(@Nullable String sBody)
@Nullable public String getBody()
@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
ICSSWriteablegetAsCSSString in interface ICSSWriteableaSettings - The settings to be used to format the output. May not be
null.nIndentLevel - The current indentation levelnull.public void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
ICSSSourceLocationAwaresetSourceLocation in interface ICSSSourceLocationAwareaSourceLocation - The source location to use. May be null.@Nullable public CSSSourceLocation getSourceLocation()
getSourceLocation in interface ICSSSourceLocationAwarenull if an object was not read but manually
created.Copyright © 2014–2018 Philip Helger. All rights reserved.