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>, java.lang.constant.Constable

public enum ECSSExpressionOperator extends Enum<ECSSExpressionOperator> implements ICSSExpressionMember, com.helger.commons.name.IHasName
Enumeration with expression operators. E.g. used in rgb(1,2,3)
Author:
Philip Helger
  • Enum Constant Details

  • Method Details

    • values

      public static ECSSExpressionOperator[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null
    • getName

      @Nonnull @Nonempty public String getName()
      Specified by:
      getName in interface com.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 interface ICSSWriteable
      Parameters:
      aSettings - The settings to be used to format the output. May not be null.
      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 interface com.helger.commons.lang.ICloneable<ICSSExpressionMember>
    • getFromNameOrNull

      @Nullable public static ECSSExpressionOperator getFromNameOrNull(@Nullable String sName)