org.unbescape.css
Enum CssIdentifierEscapeType

Object
  extended by Enum<CssIdentifierEscapeType>
      extended by org.unbescape.css.CssIdentifierEscapeType
All Implemented Interfaces:
Serializable, Comparable<CssIdentifierEscapeType>

public enum CssIdentifierEscapeType
extends Enum<CssIdentifierEscapeType>

Types of escape operations to be performed on CSS identifiers:

For further information, see the Glossary and the References sections at the documentation for the CssEscape class.

Since:
1.0
Author:
Daniel Fernández

Enum Constant Summary
BACKSLASH_ESCAPES_DEFAULT_TO_COMPACT_HEXA
          Use backslash escapes if possible, default to \FF* variable-length hexadecimal escapes.
BACKSLASH_ESCAPES_DEFAULT_TO_SIX_DIGIT_HEXA
          Use backslash escapes if possible, default to \FFFFFF 6-digit hexadecimal escapes.
COMPACT_HEXA
          Always use \FF* variable-length hexadecimal escapes.
SIX_DIGIT_HEXA
          Always use \FFFFFF 6-digit hexadecimal escapes.
 
Method Summary
 boolean getUseBackslashEscapes()
           
 boolean getUseCompactHexa()
           
static CssIdentifierEscapeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CssIdentifierEscapeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BACKSLASH_ESCAPES_DEFAULT_TO_COMPACT_HEXA

public static final CssIdentifierEscapeType BACKSLASH_ESCAPES_DEFAULT_TO_COMPACT_HEXA
Use backslash escapes if possible, default to \FF* variable-length hexadecimal escapes.


BACKSLASH_ESCAPES_DEFAULT_TO_SIX_DIGIT_HEXA

public static final CssIdentifierEscapeType BACKSLASH_ESCAPES_DEFAULT_TO_SIX_DIGIT_HEXA
Use backslash escapes if possible, default to \FFFFFF 6-digit hexadecimal escapes.


COMPACT_HEXA

public static final CssIdentifierEscapeType COMPACT_HEXA
Always use \FF* variable-length hexadecimal escapes.


SIX_DIGIT_HEXA

public static final CssIdentifierEscapeType SIX_DIGIT_HEXA
Always use \FFFFFF 6-digit hexadecimal escapes.

Method Detail

values

public static CssIdentifierEscapeType[] 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 (CssIdentifierEscapeType c : CssIdentifierEscapeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CssIdentifierEscapeType 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

getUseBackslashEscapes

public boolean getUseBackslashEscapes()

getUseCompactHexa

public boolean getUseCompactHexa()


Copyright © 2014 The UNBESCAPE team. All rights reserved.