Errai 3.0.1-SNAPSHOT

org.jboss.errai.databinding.client
Interface HasProperties

All Known Subinterfaces:
BindableProxy<T>

public interface HasProperties

Implementations of this interface allow for dynamic access of their JavaBean properties by name. Since this is a GWT client-side interface, all implementations must be code generated in the absence of Java reflection.

Author:
Christian Sadilek

Method Summary
 Object get(String propertyName)
          Returns the value of the JavaBean property with the given name.
 void set(String propertyName, Object value)
          Sets the value of the JavaBean property with the given name.
 

Method Detail

get

Object get(String propertyName)
Returns the value of the JavaBean property with the given name.

Parameters:
propertyName - the name of the JavaBean property, must not be null.
Returns:
the current value of the corresponding property.
Throws:
NonExistingPropertyException - if the implementing bean does not have a property with the given name.

set

void set(String propertyName,
         Object value)
Sets the value of the JavaBean property with the given name.

Parameters:
propertyName - the name of the JavaBean property, must not be null.
value - the value to set.
Throws:
NonExistingPropertyException - if the implementing bean does not have a property with the given name.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.