Package thing
Class PropertyManager
java.lang.Object
thing.PropertyManager
An instance of this class maintains the properties of the components
contained in a given Thinlet.
- Author:
- Dirk Moebius
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDefaultValueString(ThinletDTD.Property property) static ThinletDTD.PropertygetProperty(Object component, String propName) getValue(Object component, ThinletDTD.Property property) getValueString(Object component, String propName) getValueString(Object component, ThinletDTD.Property property) voidremoveComponent(Object component) voidvoidsetValue(Object component, ThinletDTD.Property property, String value) Set a property value for the specified component.
-
Constructor Details
-
PropertyManager
public PropertyManager(thinlet.Thinlet thinlet)
-
-
Method Details
-
getValue
-
getValue
-
getValueString
-
getValueString
-
setValue
-
setValue
Set a property value for the specified component.Note: The implementation of this method is similar to the private method
Thinlet.addAttribute().- Throws:
IllegalArgumentException- if the string value cannot be cast into a property value of appropiate type.
-
removeComponent
-
getDefaultValueString
-
getProperty
-