lumis.portal.presentation
Enum PageDocType

Package class diagram package PageDocType
java.lang.Object
  extended by java.lang.Enum<PageDocType>
      extended by lumis.portal.presentation.PageDocType
All Implemented Interfaces:
Serializable, Comparable<PageDocType>

public enum PageDocType
extends Enum<PageDocType>

Enumeration of the possible page doc types.

Since:
4.1.0

Enum Constant Summary
HTML20_DTD
          HTML 2.0 DTD DOCTYPE
HTML32_DTD
          HTML 3.2 DTD DOCTYPE
HTML401_FRAMESET
          HTML 4.01 Frameset DOCTYPE
HTML401_STRICT
          HTML 4.01 Strict DOCTYPE
HTML401_TRANSITIONAL
          HTML 4.01 Transitional DOCTYPE
NONE
          Do not specify a Doctype
XHTML10_FRAMESET
          XHTML 1.0 Frameset DOCTYPE
XHTML10_STRICT
          XHTML 1.0 Strict DOCTYPE
XHTML10_TRANSITIONAL
          XHTML 1.0 Transitional DOCTYPE
XHTML11_DTD
          XHTML 1.1 DTD DOCTYPE
XHTMLBASIC10_DTD
          XHTML Basic 1.0 DTD DOCTYPE
XHTMLBASIC11_DTD
          XHTML Basic 1.1 DTD DOCTYPE
 
Method Summary
 String formatW3CClosedTag(String tagValue)
          Depending on the DOCType, the closing xml tags may be in different formats.
 String getDocTypeDeclaration()
           
static PageDocType getPageDocTypeByName(String pageDocTypeName)
           
 String getW3CHtmlTagAttributes(String locale)
           
static PageDocType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PageDocType[] 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 class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

XHTML10_STRICT

public static final PageDocType XHTML10_STRICT
XHTML 1.0 Strict DOCTYPE


XHTML10_TRANSITIONAL

public static final PageDocType XHTML10_TRANSITIONAL
XHTML 1.0 Transitional DOCTYPE


XHTML10_FRAMESET

public static final PageDocType XHTML10_FRAMESET
XHTML 1.0 Frameset DOCTYPE


XHTML11_DTD

public static final PageDocType XHTML11_DTD
XHTML 1.1 DTD DOCTYPE


XHTMLBASIC10_DTD

public static final PageDocType XHTMLBASIC10_DTD
XHTML Basic 1.0 DTD DOCTYPE


XHTMLBASIC11_DTD

public static final PageDocType XHTMLBASIC11_DTD
XHTML Basic 1.1 DTD DOCTYPE


HTML401_STRICT

public static final PageDocType HTML401_STRICT
HTML 4.01 Strict DOCTYPE


HTML401_TRANSITIONAL

public static final PageDocType HTML401_TRANSITIONAL
HTML 4.01 Transitional DOCTYPE


HTML401_FRAMESET

public static final PageDocType HTML401_FRAMESET
HTML 4.01 Frameset DOCTYPE


HTML20_DTD

public static final PageDocType HTML20_DTD
HTML 2.0 DTD DOCTYPE


HTML32_DTD

public static final PageDocType HTML32_DTD
HTML 3.2 DTD DOCTYPE


NONE

public static final PageDocType NONE
Do not specify a Doctype

Method Detail

values

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

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

valueOf

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

getDocTypeDeclaration

public String getDocTypeDeclaration()

getPageDocTypeByName

public static PageDocType getPageDocTypeByName(String pageDocTypeName)

formatW3CClosedTag

public String formatW3CClosedTag(String tagValue)
Depending on the DOCType, the closing xml tags may be in different formats.

Parameters:
tagValue -
Returns:
Since:
4.1.0

getW3CHtmlTagAttributes

public String getW3CHtmlTagAttributes(String locale)


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.