站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

Properties - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.server.util
Class Properties

java.lang.Object
  extended byorg.jboss.portal.server.util.Properties

public class Properties
extends java.lang.Object

A set of multi valued properties produced by a response.


Constructor Summary
Properties()
           
 
Method Summary
 void addProperty(java.lang.String name, java.lang.String value)
           
 void clear()
          Clear the properties.
 java.util.List getProperties(java.lang.String name)
           
 java.lang.String getProperty(java.lang.String name)
           
 java.util.Set getPropertyNames()
           
 void setProperty(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Properties

public Properties()
Method Detail

addProperty

public void addProperty(java.lang.String name,
                        java.lang.String value)
Parameters:
name - the property name
value - the property value
Throws:
java.lang.IllegalArgumentException - if name or value is null

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Parameters:
name - the property name
value - the property value
Throws:
java.lang.IllegalArgumentException - if name or value is null

clear

public void clear()
Clear the properties.


getProperty

public java.lang.String getProperty(java.lang.String name)

getProperties

public java.util.List getProperties(java.lang.String name)
Parameters:
name - the property name
Returns:
the list of properties for the specified name or null if it does not exist
Throws:
java.lang.IllegalArgumentException - if name is null

getPropertyNames

public java.util.Set getPropertyNames()