org.jboss.portal.core.impl.portlet.state
Class PersistentRegistration.Properties
java.lang.Object
org.jboss.portal.common.util.TypedMap
org.jboss.portal.core.impl.portlet.state.PersistentRegistration.Properties
- All Implemented Interfaces:
- java.util.Map
- Enclosing class:
- PersistentRegistration
public class PersistentRegistration.Properties
- extends TypedMap
Implement registration properties semantics, mostly validation and equality.
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
protected void |
assertKeyValidity(java.lang.Object key)
Override to check the validity of the key, the default implementation is an empty method. |
protected java.lang.Object |
getInternalValue(java.lang.Object value)
Unwrap the value to the the internal value that will be stored in the map. |
java.lang.Object |
getProperty(javax.xml.namespace.QName propertyName)
|
java.lang.Object |
getProperty(java.lang.String propertyName)
|
void |
removeProperty(javax.xml.namespace.QName propertyName)
|
void |
removeProperty(java.lang.String propertyName)
|
void |
setProperty(javax.xml.namespace.QName propertyName,
java.lang.Object value)
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
|
Methods inherited from class org.jboss.portal.common.util.TypedMap |
clear, containsKey, containsValue, convert, entrySet, equals, get, getDelegate, getExternalKey, getExternalValue, getInternalKey, internalValueEquals, isEmpty, keySet, put, putAll, remove, replace, size, toString, unwrapKey, unwrapValue, validate, values, wrapKey, wrapValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
hashCode |
PersistentRegistration.Properties
public PersistentRegistration.Properties()
assertKeyValidity
protected void assertKeyValidity(java.lang.Object key)
throws java.lang.ClassCastException
- Description copied from class:
TypedMap
- Override to check the validity of the key, the default implementation is an empty method.
- Overrides:
assertKeyValidity
in class TypedMap
- Throws:
java.lang.ClassCastException
- if the class of the specified key prevents it from being stored in this map
getInternalValue
protected java.lang.Object getInternalValue(java.lang.Object value)
throws java.lang.ClassCastException
- Description copied from class:
TypedMap
- Unwrap the value to the the internal value that will be stored in the map.
- Overrides:
getInternalValue
in class TypedMap
- Parameters:
value
- the value to unwrap
- Returns:
- the unwrapped value
- Throws:
java.lang.ClassCastException
- if the class of the specified value prevents it from being stored in this map
setProperty
public void setProperty(java.lang.String propertyName,
java.lang.Object value)
setProperty
public void setProperty(javax.xml.namespace.QName propertyName,
java.lang.Object value)
removeProperty
public void removeProperty(javax.xml.namespace.QName propertyName)
removeProperty
public void removeProperty(java.lang.String propertyName)
getProperty
public java.lang.Object getProperty(javax.xml.namespace.QName propertyName)
getProperty
public java.lang.Object getProperty(java.lang.String propertyName)