NextApp Echo2
v2.1.0

nextapp.echo2.app.componentxml.propertypeer
Class ColorPeer

java.lang.Object
  extended by nextapp.echo2.app.componentxml.propertypeer.ColorPeer
All Implemented Interfaces:
PropertyXmlPeer

public class ColorPeer
extends java.lang.Object
implements PropertyXmlPeer

PropertyXmlPeer implementation for nextapp.echo2.app.Color properties.


Constructor Summary
ColorPeer()
           
 
Method Summary
 java.lang.Object getValue(java.lang.ClassLoader classLoader, java.lang.Class objectClass, org.w3c.dom.Element propertyElement)
          Translates an property represented as an DOM Element into a property value.
static Color toColor(java.lang.String value)
          Converts the given string value to a Color equivalent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorPeer

public ColorPeer()
Method Detail

toColor

public static Color toColor(java.lang.String value)
                     throws InvalidPropertyException
Converts the given string value to a Color equivalent.

Parameters:
value - a string representation of an Color
Returns:
the Color
Throws:
InvalidPropertyException

getValue

public java.lang.Object getValue(java.lang.ClassLoader classLoader,
                                 java.lang.Class objectClass,
                                 org.w3c.dom.Element propertyElement)
                          throws InvalidPropertyException
Description copied from interface: PropertyXmlPeer
Translates an property represented as an DOM Element into a property value.

Specified by:
getValue in interface PropertyXmlPeer
Parameters:
classLoader - the ClassLoader to use for analyzing component/property data
objectClass - the Class of the object on which the property is being set
propertyElement - the <property> Element
Returns:
the property value
Throws:
InvalidPropertyException
See Also:
PropertyXmlPeer.getValue(java.lang.ClassLoader, java.lang.Class, org.w3c.dom.Element)

NextApp Echo2
v2.1.0