Kanzi Framework  3.9.0
Java API
Metaclass Class Reference

Metaclass provides type inspection mechanism for Kanzi classes. More...

Inheritance diagram for Metaclass:
[legend]

Classes

class  Iterator
 

Public Member Functions

 Metaclass (String name, Class clazz)
 Creates a new metaclass. More...
 
void addMessageType (MessageType messageType)
 Adds a message type. More...
 
void addNestedMetaclass (Metaclass nestedMetaclass)
 Adds a nested metaclass. More...
 
void addPropertyType (PropertyType propertyType)
 Adds a property type. More...
 
boolean equals (Object object)
 
Metaclass getBase ()
 Returns the metaclass of the base class. More...
 
String getName ()
 Returns the fully qualified name of this metaclass. More...
 
Iterable< MessageTypeiterateMessageTypes ()
 Gets an Iterable object used to iterate the message types of the metaclass. More...
 
Iterable< MetaclassiterateNestedMetaclass ()
 Gets an Iterable object used to iterate the nested metaclasses of the metaclass. More...
 
Iterable< PropertyTypeiteratePropertyTypes ()
 Gets an Iterable object used to iterate the property types of the metaclass. More...
 

Detailed Description

Metaclass provides type inspection mechanism for Kanzi classes.

Classes deriving from Object can register information about their type, properties, methods, messages by using Metaclass and accompanying macros. Such information is used by serialization, scripting and to display friendly type information in Kanzi Studio.

Constructor & Destructor Documentation

◆ Metaclass()

Metaclass ( String  name,
Class  clazz 
)

Creates a new metaclass.

Parameters
nameFully qualified name of the metaclass.
clazzJava class to associate this metaclass with.

Member Function Documentation

◆ addMessageType()

void addMessageType ( MessageType  messageType)

Adds a message type.

Parameters
messageTypeMessage type to be added.

◆ addNestedMetaclass()

void addNestedMetaclass ( Metaclass  nestedMetaclass)

Adds a nested metaclass.

Parameters
nestedMetaclassNested metaclass to be added.

◆ addPropertyType()

void addPropertyType ( PropertyType  propertyType)

Adds a property type.

Parameters
propertyTypeProperty type to be added.

◆ getBase()

Metaclass getBase ( )

Returns the metaclass of the base class.

Returns
Metaclass of the base class.

◆ getName()

String getName ( )

Returns the fully qualified name of this metaclass.

Returns
Fully qualified name of this metaclass.

◆ iterateMessageTypes()

Iterable<MessageType> iterateMessageTypes ( )

Gets an Iterable object used to iterate the message types of the metaclass.

Returns
An iterable of message types of the metaclass.

◆ iterateNestedMetaclass()

Iterable<Metaclass> iterateNestedMetaclass ( )

Gets an Iterable object used to iterate the nested metaclasses of the metaclass.

Returns
An iterable of nested metaclasses of the metaclass.

◆ iteratePropertyTypes()

Iterable<PropertyType> iteratePropertyTypes ( )

Gets an Iterable object used to iterate the property types of the metaclass.

Returns
An iterable of property types of the metaclass.