All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.swm.gwt.client.interfaces.IModelData Maven / Gradle / Ivy

The newest version!
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); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy