nextapp.echo2.app.componentxml.propertypeer
Class IntegerPeer
java.lang.Object
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.
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 |
IntegerPeer
public IntegerPeer()
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 dataobjectClass
- the Class
of the object on which the
property is being setpropertyElement
- 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 introspectionobjectClass
- the Class
of object containing candidate
constant valuesvalue
- the name of the constant value
- Returns:
- an integer representing the constant value, or null if the
constant is not found.
- Throws:
InvalidPropertyException