net.sourceforge.pebble.web.model
Class Model

java.lang.Object
  extended by net.sourceforge.pebble.web.model.Model

public class Model
extends java.lang.Object

Represents the model in web MVC.

Author:
Simon Brown

Constructor Summary
Model()
           
 
Method Summary
 boolean contains(java.lang.String key)
          Determines whether the model contains an element with the specified key.
 java.lang.Object get(java.lang.String name)
          Gets data from the model.
 java.util.Set keySet()
          Gets the set of all keys.
 void put(java.lang.String name, java.lang.Object value)
          Puts data into the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model()
Method Detail

put

public void put(java.lang.String name,
                java.lang.Object value)
Puts data into the model.

Parameters:
name - the name of the data
value - the value

get

public java.lang.Object get(java.lang.String name)
Gets data from the model.

Parameters:
name - the name of the data
Returns:
the value

keySet

public java.util.Set keySet()
Gets the set of all keys.

Returns:
a Set of String instances

contains

public boolean contains(java.lang.String key)
Determines whether the model contains an element with the specified key.

Parameters:
key - a String
Returns:
true if an element with the key exists, false otherwise


Copyright © 2003-2006, Simon Brown. All Rights Reserved.