org.openxava.web.layout
Enum LayoutJspUtils

java.lang.Object
  extended by java.lang.Enum<LayoutJspUtils>
      extended by org.openxava.web.layout.LayoutJspUtils
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LayoutJspUtils>

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

Helper for html / jsp rendering.

Author:
Federico Alcantara

Enum Constant Summary
INSTANCE
           
 
Method Summary
 java.lang.String endTag(java.lang.String tagName)
          Creates a end tag for the given tag name
 java.lang.String startTag(java.lang.String tagName)
          Creates a html tag.
 java.lang.String startTag(java.lang.String tagName, java.util.Map<java.lang.String,java.lang.String> attributes)
          Creates a html tag.
static LayoutJspUtils valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LayoutJspUtils[] 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

INSTANCE

public static final LayoutJspUtils INSTANCE
Method Detail

values

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

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

valueOf

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

startTag

public java.lang.String startTag(java.lang.String tagName,
                                 java.util.Map<java.lang.String,java.lang.String> attributes)
Creates a html tag.

Parameters:
tagName - Tag name to create.
attributes - List of attributes.
Returns:
A string properly formed.

startTag

public java.lang.String startTag(java.lang.String tagName)
Creates a html tag.

Parameters:
tagName - Tag name to create.
Returns:
A string properly formed.

endTag

public java.lang.String endTag(java.lang.String tagName)
Creates a end tag for the given tag name

Parameters:
tagName - Tag name to create
Returns: