com.arsdigita.formbuilder.util
Class AttributeHelper

java.lang.Object
  extended bycom.arsdigita.formbuilder.util.AttributeHelper

public class AttributeHelper
extends Object

This class is used by the PersistentComponent to convert HTML attributes back and forth between an XML attribute format - one String, stored in the database - and a Java Map key-value format.

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/util/AttributeHelper.java#9 $
Author:
Peter Marklund

Field Summary
static String versionId
           
 
Constructor Summary
AttributeHelper()
           
 
Method Summary
 Attributes getAttributesMap(String attributeString)
          Takes a String on XML attribute format and copies the attributes in this String to a Attribute object
static String getAttributeString(Attributes attributes)
          Takes a Bebop Attribute object with the attributes of the Bebop Component and returns those attributes in a String on XML attribute format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

AttributeHelper

public AttributeHelper()
Method Detail

getAttributeString

public static String getAttributeString(Attributes attributes)
Takes a Bebop Attribute object with the attributes of the Bebop Component and returns those attributes in a String on XML attribute format.

Returns:
All attributes on the XML attribute format key1="value1" key2="value2" ... keyN="valueN"

getAttributesMap

public Attributes getAttributesMap(String attributeString)
Takes a String on XML attribute format and copies the attributes in this String to a Attribute object

Parameters:
attributeString - The String with the XML attributes that we are copying from.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC