org.enhydra.barracuda.core.comp.renderer.html
Class NamingHelper

java.lang.Object
  |
  +--org.enhydra.barracuda.core.comp.renderer.html.NamingHelper

public class NamingHelper
extends java.lang.Object

Simple helper class to assist with determining an elements name. Created csc_100201.2


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
NamingHelper()
           
 
Method Summary
static java.lang.String getName(org.w3c.dom.Element el)
          Simple helper method to get a name for an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

NamingHelper

public NamingHelper()
Method Detail

getName

public static java.lang.String getName(org.w3c.dom.Element el)
Simple helper method to get a name for an element. If the name is not set, a unique name will be generated, and the name attribute in the element will be set accordingly. Only works for HTML elements that actually support the name attribute (otherwise just returns "")

Parameters:
el - a target element
Returns:
the String value of the name of the passed in Element


Copyright © 2001 Enhydra.org