|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.wcm.WcmObject
|
+--com.sapportals.wcm.repository.PropertyMap
Holds a read-only map of Property objects.
Copyright SAP AG 2001-2004
| Field Summary | |
protected java.util.Map |
exceptionMap
|
protected java.util.HashMap |
map
|
| Fields inherited from class com.sapportals.wcm.WcmObject |
ORDER_TYPE_MANUAL, ORDER_TYPE_NONE |
| Constructor Summary | |
|
PropertyMap()
Constructs a new empty property map |
protected |
PropertyMap(int initialCapacity)
|
protected |
PropertyMap(java.util.Map m)
|
|
PropertyMap(PropertyMap propMap)
Constructs a new property map with the same mappings as the given map |
| Method Summary | |
boolean |
containsProperty(IProperty property)
Returns true if the map contains the specified property. |
boolean |
containsProperty(IPropertyName propertyName)
Returns true if the map contains a property with the specified name. |
IProperty |
get(IPropertyName propertyName)
Returns the property with the specified name or null if there
is no such property. |
java.lang.Exception |
getException(IPropertyName propertyName)
Given a property that does not appear in the property map, query for a possible exception that occured internally when computing it. |
java.util.Map |
getExceptions()
Returns a map from IPropertyNames to Exceptions for every property for which an internal error occured during retrieval (not being defined is not an error condition). |
IMutablePropertyMap |
getMutable()
Returns a copy of the map that can be modified. |
boolean |
isEmpty()
Returns true if the map is empty. |
IPropertyIterator |
iterator()
Returns an iterator for the property map. |
int |
size()
Returns the number of properties in the map. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.HashMap map
protected java.util.Map exceptionMap
| Constructor Detail |
public PropertyMap()
public PropertyMap(PropertyMap propMap)
propMap - The map whose mappings are to be places in this mapprotected PropertyMap(int initialCapacity)
protected PropertyMap(java.util.Map m)
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic int size()
IPropertyMapsize in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMappublic boolean isEmpty()
IPropertyMapisEmpty in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMappublic boolean containsProperty(IPropertyName propertyName)
IPropertyMapcontainsProperty in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMappropertyName - the property name to search for.public boolean containsProperty(IProperty property)
IPropertyMapcontainsProperty in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMapproperty - the property to search for.public IProperty get(IPropertyName propertyName)
IPropertyMapnull if there
is no such property.get in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMappropertyName - the property name to search for.null if there
is no such property.public IPropertyIterator iterator()
IPropertyMapiterator in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMappublic IMutablePropertyMap getMutable()
IPropertyMapgetMutable in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMappublic java.util.Map getExceptions()
IPropertyMapgetExceptions in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMappublic java.lang.Exception getException(IPropertyName propertyName)
IPropertyMapgetException in interface IPropertyMapcom.sapportals.wcm.repository.IPropertyMappropertyName - name of propertynull
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||