com.google.caja.reporting
Enum MarkupRenderMode

java.lang.Object
  extended by java.lang.Enum<MarkupRenderMode>
      extended by com.google.caja.reporting.MarkupRenderMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MarkupRenderMode>

public enum MarkupRenderMode
extends java.lang.Enum<MarkupRenderMode>

Explains the dialect of markup to use for output.


Enum Constant Summary
HTML
          Render as HTML, assuming that CDATA tags like <script> have raw content.
HTML4_BACKWARDS_COMPAT
          Render as HTML, but make sure to be backwards compatible with HTML4 quirks such as disallowing values on boolean attributes like the checked attribute of <input>.
XML
          Render as XML, either encoding or using CDATA sections (<![[CDATA[...]]>) for content that would be raw in HTML, and not using any entities not defined for all of XML such as &apos;.
 
Method Summary
static MarkupRenderMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MarkupRenderMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HTML

public static final MarkupRenderMode HTML
Render as HTML, assuming that CDATA tags like <script> have raw content.


XML

public static final MarkupRenderMode XML
Render as XML, either encoding or using CDATA sections (<![[CDATA[...]]>) for content that would be raw in HTML, and not using any entities not defined for all of XML such as &apos;.


HTML4_BACKWARDS_COMPAT

public static final MarkupRenderMode HTML4_BACKWARDS_COMPAT
Render as HTML, but make sure to be backwards compatible with HTML4 quirks such as disallowing values on boolean attributes like the checked attribute of <input>.

Method Detail

values

public static final MarkupRenderMode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MarkupRenderMode c : MarkupRenderMode.values())
        System.out.println(c);

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

valueOf

public static MarkupRenderMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0