Kanzi  3.9.4
Java API
DynamicPropertyType< TDataType > Class Template Reference

DynamicPropertyType is a handle to an existing property type of known data type. More...

Inheritance diagram for DynamicPropertyType< TDataType >:
[legend]

Public Member Functions

 DynamicPropertyType (String name, Class< TDataType > clazz)
 Creates a DynamicPropertyType instance referring to an existing property type with the given name. More...
 
 DynamicPropertyType (PropertyType< TDataType > propertyType)
 Creates a DynamicPropertyType instance that refers to the same existing property type as the given AbstractPropertyType instance does. More...
 
- Public Member Functions inherited from PropertyType< TDataType >
 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< PropertyTypeChangeFlaggetChangeFlags ()
 Gets the change flags for a property type. More...
 
PropertyDataType 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...
 
long getNative ()
 Gets a pointer to the backing C++ instance. More...
 
int hashCode ()
 

Detailed Description

DynamicPropertyType is a handle to an existing property type of known data type.

You can pass DynamicPropertyType directly to functions taking PropertyType argument. You can also query all property type info directly from DynamicPropertyType.

You can use it to set or get from a node a property type value with a specific data type.

When you do not have a fully qualified name or data type of a property type, or they are irrelevant, to access property types, use AbstractPropertyType instead.

Constructor & Destructor Documentation

◆ DynamicPropertyType() [1/2]

DynamicPropertyType ( String  name,
Class< TDataType >  clazz 
)

Creates a DynamicPropertyType instance referring to an existing property type with the given name.

Parameters
nameFully qualified name of an existing property type in the Kanzi property system.
clazzClass of the datatype, for example 'Float.class'.

◆ DynamicPropertyType() [2/2]

DynamicPropertyType ( PropertyType< TDataType >  propertyType)

Creates a DynamicPropertyType instance that refers to the same existing property type as the given AbstractPropertyType instance does.

Parameters
propertyTypeAbstractPropertyType instance that refers to the existing property type in the Kanzi property system.