Kanzi Java API
KanziObject Class Reference

Object is the base class for Kanzi UI classes that implement association with a Domain. More...

Inheritance diagram for KanziObject:
[legend]
Collaboration diagram for KanziObject:
[legend]

Classes

class  Iterator
 

Public Member Functions

boolean equals (Object object)
 
Domain getDomain ()
 Returns the domain the object belongs to. More...
 
Metaclass getDynamicMetaclass ()
 Returns the metaclass of the dynamic type of the object. More...
 
boolean isStale ()
 Test if the object is stale i.e. More...
 
void releaseOwnership ()
 Release ownership of the backing native object from this object. More...
 
void removeLocalValue (PropertyType propertyType)
 Removes the local value associated with the property. More...
 
boolean takeOwnership ()
 Take ownership of the backing native object in this object. More...
 

Static Public Member Functions

static Metaclass getStaticMetaclass ()
 Returns the metaclass of this class. More...
 

Detailed Description

Object is the base class for Kanzi UI classes that implement association with a Domain.

Member Function Documentation

Domain getDomain ( )

Returns the domain the object belongs to.

Returns
Instance of the domain the object belongs to.
Metaclass getDynamicMetaclass ( )

Returns the metaclass of the dynamic type of the object.

Returns
Metaclass of this node instance.
static Metaclass getStaticMetaclass ( )
static

Returns the metaclass of this class.

Returns
Static instance of metaclass of this node.
boolean isStale ( )

Test if the object is stale i.e.

the backing native object has been deleted. Most usage of a stale object will throw a StaleObjectException.

Returns
True if the object is stale.
void releaseOwnership ( )

Release ownership of the backing native object from this object.

Unless other native references exist, this method may destroy the native object.

void removeLocalValue ( PropertyType  propertyType)

Removes the local value associated with the property.

Parameters
propertyTypeThe property type identifying the property to evaluate.
boolean takeOwnership ( )

Take ownership of the backing native object in this object.

This will prevent the native object from being destroyed while this java object exists.

Returns
True if the ownership was acquired, False if the object is already stale.