Package com.helger.css.decl
Enum ECSSAttributeOperator
- java.lang.Object
-
- java.lang.Enum<ECSSAttributeOperator>
-
- com.helger.css.decl.ECSSAttributeOperator
-
- All Implemented Interfaces:
com.helger.commons.name.IHasName
,ICSSVersionAware
,ICSSWriteable
,Serializable
,Comparable<ECSSAttributeOperator>
public enum ECSSAttributeOperator extends Enum<ECSSAttributeOperator> implements ICSSVersionAware, ICSSWriteable, com.helger.commons.name.IHasName
Enumeration with selector attribute operations as in[foo^="bar"]
- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEGINMATCH
CONTAINSMATCH
DASHMATCH
ENDMATCH
EQUALS
INCLUDES
-
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.static ECSSAttributeOperator
getFromNameOrNull(String sName)
ECSSVersion
getMinimumCSSVersion()
String
getName()
static ECSSAttributeOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECSSAttributeOperator[]
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
-
EQUALS
public static final ECSSAttributeOperator EQUALS
-
INCLUDES
public static final ECSSAttributeOperator INCLUDES
-
DASHMATCH
public static final ECSSAttributeOperator DASHMATCH
-
BEGINMATCH
public static final ECSSAttributeOperator BEGINMATCH
-
ENDMATCH
public static final ECSSAttributeOperator ENDMATCH
-
CONTAINSMATCH
public static final ECSSAttributeOperator CONTAINSMATCH
-
-
Method Detail
-
values
public static ECSSAttributeOperator[] 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 (ECSSAttributeOperator c : ECSSAttributeOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECSSAttributeOperator 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
-
getMinimumCSSVersion
@Nonnull public ECSSVersion getMinimumCSSVersion()
- Specified by:
getMinimumCSSVersion
in interfaceICSSVersionAware
- Returns:
- The minimum CSS version that is required to read or write this
artifact. May not be
null
.
-
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
.
-
getFromNameOrNull
@Nullable public static ECSSAttributeOperator getFromNameOrNull(@Nullable String sName)
-
-