Class FWPropertyContainer
java.lang.Object
net.simplace.core.property.FWPropertyContainer
A named property set (key to value), stored as XML element
properties.- Author:
- Andreas Enders
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty container.FWPropertyContainer(String aID, Map<String, Object> aParameterMap) FWPropertyContainer(String aID, org.jdom2.Element aPropertiesJDOMElement) FWPropertyContainer(FWObservable aObservable) Creates the container from the parameters of an observable; the name is its system id. -
Method Summary
Modifier and TypeMethodDescriptiongetID()Note:SYSTEM_IDis added to the properties.getParameter(String aKey) org.jdom2.ElementvoidsetParameterMap(Map<String, Object> aKeyValueMap) Sets all properties of a map, seesetParameterValue(String, Object).voidsetParameterValue(String aKey, Object aValue) Sets a property.toString()
-
Constructor Details
-
FWPropertyContainer
-
FWPropertyContainer
Creates the container from the parameters of an observable; the name is its system id.- Parameters:
aObservable- the observable (its parameter map is used directly)
-
FWPropertyContainer
- Parameters:
aID- name of the property setaPropertiesJDOMElement- the XML element with the properties
-
FWPropertyContainer
Creates an empty container.- Parameters:
aID- name of the property set
-
-
Method Details
-
serialize
public org.jdom2.Element serialize()- Returns:
- the properties as XML element
properties
-
toString
-
getObservable
Note:SYSTEM_IDis added to the properties.- Returns:
- a new observable working on the live property map, with the name as
SYSTEM_ID
-
getStringParameterValue
-
getParameter
- Parameters:
aKey- the property key, seeFWFrameworkHelper.getParameterFromMap(Map, String, Object)- Returns:
- the property value, or
null
-
setParameterValue
-
setParameterMap
Sets all properties of a map, seesetParameterValue(String, Object).- Parameters:
aKeyValueMap- the properties to set
-
getID
- Returns:
- the name of the property set
-