de.swm.gwt.client.interfaces.IModelData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swm-gwt-client Show documentation
Show all versions of swm-gwt-client Show documentation
Plain GWT Swm erweiterungen, auch zur benutzung in mobilen Geraeten
package de.swm.gwt.client.interfaces;
import java.util.Collection;
import java.util.Map;
/**
* Models support a form of "introspection" as property names and values can be retrieved at runtime.
*
* @author wiese.daniel
* copyright (C) 2011, SWM Services GmbH
*
*/
public interface IModelData {
/**
* Returns the named property from this model instance.
*
* @param property
* the property name
* @param
* der typ der property
* @return the value
*/
X get(String property);
/**
* Returns the model's properties and values as a map.
*
*
* Changes to the returned collection should not mutate this model instance.
*
* @return the properties and values
*/
Map getProperties();
/**
* Returns an collection of the model's property names.
*
*
* The collection should be a snapshot of the property names that the model represents.
*
*
* Changes to the returned collection should not mutate this model instance.
* @return die liste der Properties.
*/
Collection getPropertyNames();
/**
* Removes the named property from this model instance.
*
* @param property
* the property name
* @return the old value for the property
* @param
* der typ der property
*/
X remove(String property);
/**
* Sets a property.
*
* @param property
* the property name
* @param value
* property value
* @return the old value for the property
* @param
* der typ der property
*/
X set(String property, X value);
}