Kanzi framework  3.9.1
Java API
AbstractPropertyType Class Reference

AbstractPropertyType is a homogeneous property type handle to an existing property type. More...

Inheritance diagram for AbstractPropertyType:
[legend]

Public Member Functions

 AbstractPropertyType (String name)
 Creates an AbstractPropertyType instance referring to the existing property type with the given name. More...
 
 AbstractPropertyType (PropertyType propertyType)
 Creates an AbstractPropertyType instance referring to the existing property type. 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...
 

Detailed Description

AbstractPropertyType is a homogeneous property type handle to an existing property type.

You can use AbstractPropertyType to operate on property types when a property type and its data type are unknown or irrelevant. It is usually more convenient to pass AbstractPropertyType as a function argument instead of specifying the exact property type with certain data type.

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

When data type information is known, you should use DynamicPropertyType instead.

Constructor & Destructor Documentation

◆ AbstractPropertyType() [1/2]

AbstractPropertyType ( String  name)

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

If a property type with the given name does not already exist in the Kanzi property system, the created AbstractPropertyType instance is invalid.

Parameters
nameFully qualified name of a property type.

◆ AbstractPropertyType() [2/2]

Creates an AbstractPropertyType instance referring to the existing property type.

Parameters
propertyTypeProperty type to reference.