NextApp Echo2
v2.1.0

nextapp.echo2.app.componentxml.propertypeer
Class IntegerPeer

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

public class IntegerPeer
extends java.lang.Object
implements PropertyXmlPeer

PropertyXmlPeer implementation for java.lang.Integer properties.


Constructor Summary
IntegerPeer()
           
 
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.
 java.lang.Integer introspectConstantValue(java.lang.ClassLoader classLoader, java.lang.Class objectClass, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerPeer

public IntegerPeer()
Method Detail

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)

introspectConstantValue

public java.lang.Integer introspectConstantValue(java.lang.ClassLoader classLoader,
                                                 java.lang.Class objectClass,
                                                 java.lang.String value)
                                          throws InvalidPropertyException
Parameters:
classLoader - the ClassLoader to use for introspection
objectClass - the Class of object containing candidate constant values
value - the name of the constant value
Returns:
an integer representing the constant value, or null if the constant is not found.
Throws:
InvalidPropertyException

NextApp Echo2
v2.1.0