public class PropertyMap extends WcmObject implements IPropertyMap
Copyright SAP AG 2001-2004
Modifier and Type | Field and Description |
---|---|
protected Map |
exceptionMap |
protected HashMap |
map |
ORDER_TYPE_MANUAL, ORDER_TYPE_NONE
Modifier | Constructor and Description |
---|---|
|
PropertyMap()
Constructs a new empty property map.
|
protected |
PropertyMap(int initialCapacity) |
|
PropertyMap(IPropertyMap propMap)
Constructs a new property map with the same mappings as the given map.
|
protected |
PropertyMap(Map m) |
|
PropertyMap(PropertyMap propMap)
Constructs a new property map with the same mappings as the given map.
|
Modifier and Type | Method and Description |
---|---|
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. |
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.
|
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.
|
String |
toString() |
public PropertyMap()
public PropertyMap(PropertyMap propMap)
propMap
- The map whose mappings are to be copied.public PropertyMap(IPropertyMap propMap)
propMap
- The map whose mappings are to be copiedprotected PropertyMap(int initialCapacity)
protected PropertyMap(Map m)
public int size()
IPropertyMap
size
in interface IPropertyMap
public boolean isEmpty()
IPropertyMap
isEmpty
in interface IPropertyMap
public boolean containsProperty(IPropertyName propertyName)
IPropertyMap
containsProperty
in interface IPropertyMap
propertyName
- the property name to search for.public boolean containsProperty(IProperty property)
IPropertyMap
containsProperty
in interface IPropertyMap
property
- the property to search for.public IProperty get(IPropertyName propertyName)
IPropertyMap
null
if there
is no such property.get
in interface IPropertyMap
propertyName
- the property name to search for.null
if there
is no such property.public IPropertyIterator iterator()
IPropertyMap
iterator
in interface IPropertyMap
public IMutablePropertyMap getMutable()
IPropertyMap
getMutable
in interface IPropertyMap
public Map getExceptions()
IPropertyMap
getExceptions
in interface IPropertyMap
public Exception getException(IPropertyName propertyName)
IPropertyMap
getException
in interface IPropertyMap
propertyName
- name of propertynull
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice