Package com.helger.css.decl
Enum ECSSExpressionOperator
- java.lang.Object
-
- java.lang.Enum<ECSSExpressionOperator>
-
- com.helger.css.decl.ECSSExpressionOperator
-
- All Implemented Interfaces:
com.helger.commons.lang.ICloneable<ICSSExpressionMember>
,com.helger.commons.name.IHasName
,ICSSExpressionMember
,ICSSWriteable
,Serializable
,Comparable<ECSSExpressionOperator>
public enum ECSSExpressionOperator extends Enum<ECSSExpressionOperator> implements ICSSExpressionMember, com.helger.commons.name.IHasName
Enumeration with expression operators. E.g. used inrgb(1,2,3)
- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to an output.ECSSExpressionOperator
getClone()
static ECSSExpressionOperator
getFromNameOrNull(String sName)
String
getName()
static ECSSExpressionOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECSSExpressionOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSString
-
-
-
-
Enum Constant Detail
-
SLASH
public static final ECSSExpressionOperator SLASH
-
COMMA
public static final ECSSExpressionOperator COMMA
-
EQUALS
public static final ECSSExpressionOperator EQUALS
-
-
Method Detail
-
values
public static ECSSExpressionOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ECSSExpressionOperator c : ECSSExpressionOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECSSExpressionOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
@Nonnull @Nonempty public String getName()
- Specified by:
getName
in interfacecom.helger.commons.name.IHasName
-
getAsCSSString
@Nonnull @Nonempty 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
.
-
getClone
@Nonnull public ECSSExpressionOperator getClone()
- Specified by:
getClone
in interfacecom.helger.commons.lang.ICloneable<ICSSExpressionMember>
-
getFromNameOrNull
@Nullable public static ECSSExpressionOperator getFromNameOrNull(@Nullable String sName)
-
-