An instance of a PropertyType represents a single property type in the Kanzi property system. More...
Classes | |
enum | DataType |
Enumeration of data types that can be stored as properties. More... | |
class | Iterator |
Public Member Functions | |
PropertyType (Class< TDataType > clazz, TDataType defaultValue, EnumSet< PropertyTypeChangeFlag > flags, boolean inherited) | |
Construct a new property type without a name. More... | |
PropertyType (Class< TDataType > clazz, TDataType defaultValue, EnumSet< PropertyTypeChangeFlag > flags) | |
Construct a new property type without a name. More... | |
PropertyType (Class< TDataType > clazz, TDataType defaultValue) | |
Construct a new property type without a name. More... | |
PropertyType (Class< TDataType > clazz) | |
Construct a new property type without a name. More... | |
PropertyType (String name, Class< TDataType > clazz, TDataType defaultValue, EnumSet< PropertyTypeChangeFlag > flags, boolean inherited) | |
Construct a new property type. More... | |
PropertyType (String name, Class< TDataType > clazz, TDataType defaultValue, EnumSet< PropertyTypeChangeFlag > flags) | |
Construct a new property type. More... | |
PropertyType (String name, Class< TDataType > clazz, TDataType defaultValue) | |
Construct a new property type. More... | |
PropertyType (String name, Class< TDataType > clazz) | |
Construct a new property type. More... | |
boolean | equals (Object object) |
EnumSet< PropertyTypeChangeFlag > | getChangeFlags () |
Gets the change flags for a property type. More... | |
DataType | getDataType () |
Gets the data type of a property type. More... | |
TDataType | getDefaultValue () |
Gets the default value for a property type. More... | |
boolean | getIsInherited () |
Returns whether a property type is inheritable. More... | |
String | getName () |
Gets the fully qualified name of a property type in the form "Class.PropertyType". More... | |
An instance of a PropertyType represents a single property type in the Kanzi property system.
A property type exists throughout the lifetime of an application, including the property types that you create during the runtime of an application.
To work with the existing property types in the Kanzi property system, use the DynamicPropertyType and AbstractPropertyType classes.
PropertyType | ( | Class< TDataType > | clazz, |
TDataType | defaultValue, | ||
EnumSet< PropertyTypeChangeFlag > | flags, | ||
boolean | inherited | ||
) |
Construct a new property type without a name.
The name of the property is assigned according to the metaclass' name the property is being added to and the field that is holding the property. If the field's name has a "Property" suffix, it gets trimmed from the name.
clazz | Class of the datatype, for example 'Float.class'. |
defaultValue | The default value for the property type. |
flags | The flags that indicate how changes to the property type value affect the application. See PropertyTypeChangeFlag for valid options. |
inherited | Sets whether this property type is inheritable. Inheritance determines whether nodes can inherit from their ancestor nodes the value of this property type. |
PropertyType | ( | Class< TDataType > | clazz, |
TDataType | defaultValue, | ||
EnumSet< PropertyTypeChangeFlag > | flags | ||
) |
Construct a new property type without a name.
The name of the property is assigned according to the metaclass' name the property is being added to and the field that is holding the property. If the field's name has a "Property" suffix, it gets trimmed from the name.
The property is not inherited.
clazz | Class of the datatype, for example 'Float.class'. |
defaultValue | The default value for the property type. |
flags | The flags that indicate how changes to the property type value affect the application. See PropertyTypeChangeFlag for valid options. |
PropertyType | ( | Class< TDataType > | clazz, |
TDataType | defaultValue | ||
) |
Construct a new property type without a name.
The name of the property is assigned according to the metaclass' name the property is being added to and the field that is holding the property. If the field's name has a "Property" suffix, it gets trimmed from the name.
The property has no change flags set. The property is not inherited.
clazz | Class of the datatype, for example 'Float.class'. |
defaultValue | The default value for the property type. |
PropertyType | ( | Class< TDataType > | clazz | ) |
Construct a new property type without a name.
The name of the property is assigned according to the metaclass' name the property is being added to and the field that is holding the property. If the field's name has a "Property" suffix, it gets trimmed from the name.
The property has no change flags set. The property is not inherited.
clazz | Class of the datatype, for example 'Float.class'. |
PropertyType | ( | String | name, |
Class< TDataType > | clazz, | ||
TDataType | defaultValue, | ||
EnumSet< PropertyTypeChangeFlag > | flags, | ||
boolean | inherited | ||
) |
Construct a new property type.
name | Fully qualified name for the property type. |
clazz | Class of the datatype, for example 'Float.class'. |
defaultValue | The default value for the property type. |
flags | The flags that indicate how changes to the property type value affect the application. See PropertyTypeChangeFlag for valid options. |
inherited | Sets whether this property type is inheritable. Inheritance determines whether nodes can inherit from their ancestor nodes the value of this property type. |
PropertyType | ( | String | name, |
Class< TDataType > | clazz, | ||
TDataType | defaultValue, | ||
EnumSet< PropertyTypeChangeFlag > | flags | ||
) |
Construct a new property type.
The property is not inherited.
name | Fully qualified name for the property type. |
clazz | Class of the datatype, for example 'Float.class'. |
defaultValue | The default value for the property type. |
flags | The flags that indicate how changes to the property type value affect the application. See PropertyTypeChangeFlag for valid options. |
PropertyType | ( | String | name, |
Class< TDataType > | clazz, | ||
TDataType | defaultValue | ||
) |
Construct a new property type.
The property has no change flags set. The property is not inherited.
name | Fully qualified name for the property type. |
clazz | Class of the datatype, for example 'Float.class'. |
defaultValue | The default value for the property type. |
PropertyType | ( | String | name, |
Class< TDataType > | clazz | ||
) |
Construct a new property type.
The property has no change flags set. The property is not inherited.
name | Fully qualified name for the property type. |
clazz | Class of the datatype, for example 'Float.class'. |
EnumSet<PropertyTypeChangeFlag> getChangeFlags | ( | ) |
Gets the change flags for a property type.
Change flags indicate whether a modification of property value invalidates a particular aspect of a node. For example, when you change the com.rightware.kanzi.metadata.NodeMetadata#HeightProperty or com.rightware.kanzi.metadata.NodeMetadata#WidthProperty in a node Kanzi recalculates the layout.
DataType getDataType | ( | ) |
Gets the data type of a property type.
The data type of a property type defines the data representation type of each property value. For example, float.
TDataType getDefaultValue | ( | ) |
Gets the default value for a property type.
boolean getIsInherited | ( | ) |
Returns whether a property type is inheritable.
Inheritable property types provide values to all descendant nodes.
String getName | ( | ) |
Gets the fully qualified name of a property type in the form "Class.PropertyType".