@Test public void testSetPropertyValue_PersistentProperty() { Person p = new Person(); propertyList.setPropertyValue(p, "firstName", "Joe"); assertEquals("Joe", p.getFirstName()); childPropertyList.setPropertyValue(p, "firstName", "Max"); assertEquals("Max", p.getFirstName()); }
public void setPropertyValue(T object, String propertyName, Object propertyValue) throws IllegalArgumentException, IllegalStateException { assert propertyName != null : "propertyName must not be null"; assert object != null : "object must not be null"; if (!getAllAvailablePropertyNames().contains(propertyName)) { throw new IllegalArgumentException("Illegal property name: " + propertyName); } metadata.setPropertyValue(object, propertyName, propertyValue); }
PropertyList implements Serializable { public void setPropertyValue(T object, String propertyName, Object propertyValue) throws IllegalArgumentException, IllegalStateException { assert propertyName != null : "propertyName must not be null"; assert object != null : "object must not be null"; if (!getAllAvailablePropertyNames().contains(propertyName)) { throw new IllegalArgumentException("Illegal property name: " + propertyName); } metadata.setPropertyValue(object, propertyName, propertyValue); } }
PropertyList implements Serializable { public void setPropertyValue(T object, String propertyName, Object propertyValue) throws IllegalArgumentException, IllegalStateException { assert propertyName != null : "propertyName must not be null"; assert object != null : "object must not be null"; if (!getAllAvailablePropertyNames().contains(propertyName)) { throw new IllegalArgumentException("Illegal property name: " + propertyName); } metadata.setPropertyValue(object, propertyName, propertyValue); } PropertyList(ClassMetadata<T> metadata);  PropertyList(PropertyList<T> parentList); }
PropertyList implements Serializable { public void setPropertyValue(T object, String propertyName, Object propertyValue) throws IllegalArgumentException, IllegalStateException { assert propertyName != null : "propertyName must not be null"; assert object != null : "object must not be null"; if (!getAllAvailablePropertyNames().contains(propertyName)) { throw new IllegalArgumentException("Illegal property name: " + propertyName); } metadata.setPropertyValue(object, propertyName, propertyValue); } PropertyList(ClassMetadata<T> metadata);  PropertyList(PropertyList<T> parentList); ClassMetadata<T> getClassMetadata(); PropertyList<T> getParentList(); void setSortProperty(String propertyName, String sortPropertyName); void addNestedProperty(String propertyName); boolean removeProperty(String propertyName); Set<String> getAllAvailablePropertyNames(); Set<String> getPropertyNames(); Set<String> getPersistentPropertyNames(); Map<String, String> getSortablePropertyMap(); Set<String> getNestedPropertyNames(); Class<?> getPropertyType(String propertyName); boolean isPropertyWritable(String propertyName); Object getPropertyValue(T object, String propertyName); void setPropertyValue(T object, String propertyName,
            Object propertyValue); PropertyKind getPropertyKind(String propertyName); boolean isPropertyLazyLoaded(String propertyName); }
PropertyList implements Serializable { public void setPropertyValue(T object, String propertyName, Object propertyValue) throws IllegalArgumentException, IllegalStateException { assert propertyName != null : "propertyName must not be null"; assert object != null : "object must not be null"; if (!getAllAvailablePropertyNames().contains(propertyName)) { throw new IllegalArgumentException("Illegal property name: " + propertyName); } metadata.setPropertyValue(object, propertyName, propertyValue); } PropertyList(ClassMetadata<T> metadata);  PropertyList(PropertyList<T> parentList); ClassMetadata<T> getClassMetadata(); PropertyList<T> getParentList(); void setSortProperty(String propertyName, String sortPropertyName); void addNestedProperty(String propertyName); boolean removeProperty(String propertyName); Set<String> getAllAvailablePropertyNames(); Set<String> getPropertyNames(); Set<String> getPersistentPropertyNames(); Map<String, String> getSortablePropertyMap(); Set<String> getNestedPropertyNames(); Class<?> getPropertyType(String propertyName); boolean isPropertyWritable(String propertyName); Object getPropertyValue(T object, String propertyName); void setPropertyValue(T object, String propertyName,
            Object propertyValue); PropertyKind getPropertyKind(String propertyName); boolean isPropertyLazyLoaded(String propertyName);  }