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

PropertyMapImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model20.impl.user
Class PropertyMapImpl

java.lang.Object
  extended byorg.jboss.portal.migration.model20.impl.user.PropertyMapImpl
All Implemented Interfaces:
java.util.Map, PropertyMap

public class PropertyMapImpl
extends java.lang.Object
implements PropertyMap

A mutable map that expose user properties.

Version:
$Revision: 5449 $
Author:
Julien Viet

Nested Class Summary
private static class PropertyMapImpl.Property
          A property of the user object.
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
private static PropertyMapImpl.Property[] props
           
private  User20Impl user
           
 
Constructor Summary
PropertyMapImpl(User20Impl user)
           
 
Method Summary
 void clear()
          Clear only dynamic properties.
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value1)
           
 java.util.Set entrySet()
          Returns an immutable collection of entries.
 java.lang.Object get(java.lang.Object key)
           
private  java.util.Map getDynamic()
           
private  PropertyMapImpl.Property getProperty(java.lang.String key)
           
private static PropertyMapImpl.Property[] initialize()
           
 boolean isEmpty()
           
 boolean isReadOnly(java.lang.Object key)
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object newValue)
           
 void putAll(java.util.Map map)
           
 java.lang.Object remove(java.lang.Object key)
          Only affect dynamic properties, otherwise it throws an IllegalArgumentException.
 int size()
           
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

props

private static final PropertyMapImpl.Property[] props

user

private User20Impl user
Constructor Detail

PropertyMapImpl

public PropertyMapImpl(User20Impl user)
Method Detail

initialize

private static PropertyMapImpl.Property[] initialize()

getDynamic

private java.util.Map getDynamic()

isReadOnly

public boolean isReadOnly(java.lang.Object key)
Specified by:
isReadOnly in interface PropertyMap

size

public int size()
Specified by:
size in interface java.util.Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map

containsValue

public boolean containsValue(java.lang.Object value1)
Specified by:
containsValue in interface java.util.Map

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object newValue)
                     throws java.lang.IllegalArgumentException
Specified by:
put in interface java.util.Map
Throws:
java.lang.IllegalArgumentException - if the key is not modifiable

remove

public java.lang.Object remove(java.lang.Object key)
                        throws java.lang.IllegalArgumentException
Only affect dynamic properties, otherwise it throws an IllegalArgumentException.

Specified by:
remove in interface java.util.Map
Throws:
java.lang.IllegalArgumentException - if the key is a not removable user property

clear

public void clear()
Clear only dynamic properties.

Specified by:
clear in interface java.util.Map

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map

entrySet

public java.util.Set entrySet()
Returns an immutable collection of entries.

Specified by:
entrySet in interface java.util.Map

putAll

public void putAll(java.util.Map map)
Specified by:
putAll in interface java.util.Map

getProperty

private PropertyMapImpl.Property getProperty(java.lang.String key)