Package com.webmethods.rtl.util.obj
Interface IPropertyBag
- All Known Subinterfaces:
ICommandBean
,ICommandBeanEx
,IHandlerBean
,IPortletBean
,IPortletController
,IPortletControllerBean
public interface IPropertyBag
Properties interface. This iterface is used to load, access, modify and persist
properties.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignProperties
(Object bean) Assigns properties of the widget using properties values in this property bag.Creates copy (clone) for this property bag.Returns map of portlet propertiesgetProperty
(String name) Gets the property of the portletvoid
Loads property bag from a Reader that contains properties data.void
Loads property bag from a string that contains properties data.void
Loads property bag from a DOM element.save()
Saves property bag to string representation.void
Saves property bag to a writer.setProperties
(Map<String, ? extends Object> propMap) Sets all properties in the batch from Map This allows to speed up properties set processvoid
setProperty
(String name, Object value) Sets the property of the portlet
-
Method Details
-
setProperty
Sets the property of the portlet- Parameters:
name
- of the property to be setvalue
- of the property- Throws:
PortalException
- See Also:
-
setProperties
Sets all properties in the batch from Map This allows to speed up properties set process- Parameters:
propMap
- Map implementation containing all properties to be set- Returns:
- difference map, may be null
- Throws:
PortalException
-
getProperty
Gets the property of the portlet- Parameters:
name
- of the property to be set- Returns:
- value of the property
- Throws:
PortalException
-
getProperties
Returns map of portlet properties- Returns:
- Map with name/value pairs
- Throws:
PortalException
-
load
Loads property bag from a string that contains properties data.- Parameters:
storage
- string with all data for the property bag- Throws:
IOException
-
load
Loads property bag from a Reader that contains properties data.- Parameters:
storage
- reader with all data for the property bag- Throws:
IOException
- See Also:
-
load
Loads property bag from a DOM element. interface.- Parameters:
storage
- DOM element that contains property bag data- Throws:
IOException
-
save
Saves property bag to string representation.- Returns:
- string that contains property bag data
- Throws:
IOException
-
save
Saves property bag to a writer.- Parameters:
storage
- writer to save the property bag data- Throws:
IOException
- See Also:
-
assignProperties
Assigns properties of the widget using properties values in this property bag.- Parameters:
bean
- widget bean to assign properties- Throws:
PortalException
- See Also:
-
createCopy
IPropertyBag createCopy()Creates copy (clone) for this property bag.- Returns:
- the copy of itself
-