当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
MockPortletPreferences (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.mock.web.portlet
Class MockPortletPreferences
java.lang.Object
org.springframework.mock.web.portlet.MockPortletPreferences
- All Implemented Interfaces:
- PortletPreferences
public class MockPortletPreferences
- extends Object
- implements PortletPreferences
Mock implementation of the PortletPreferences
interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockPortletPreferences
public MockPortletPreferences()
setReadOnly
public void setReadOnly(String key,
boolean readOnly)
isReadOnly
public boolean isReadOnly(String key)
- Specified by:
isReadOnly
in interface PortletPreferences
getValue
public String getValue(String key,
String def)
- Specified by:
getValue
in interface PortletPreferences
getValues
public String[] getValues(String key,
String[] def)
- Specified by:
getValues
in interface PortletPreferences
setValue
public void setValue(String key,
String value)
throws ReadOnlyException
- Specified by:
setValue
in interface PortletPreferences
- Throws:
ReadOnlyException
setValues
public void setValues(String key,
String[] values)
throws ReadOnlyException
- Specified by:
setValues
in interface PortletPreferences
- Throws:
ReadOnlyException
getNames
public Enumeration getNames()
- Specified by:
getNames
in interface PortletPreferences
getMap
public Map getMap()
- Specified by:
getMap
in interface PortletPreferences
reset
public void reset(String key)
throws ReadOnlyException
- Specified by:
reset
in interface PortletPreferences
- Throws:
ReadOnlyException
setPreferencesValidator
public void setPreferencesValidator(PreferencesValidator preferencesValidator)
store
public void store()
throws IOException,
ValidatorException
- Specified by:
store
in interface PortletPreferences
- Throws:
IOException
ValidatorException
Copyright © 2002-2007 The Spring Framework.