You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Maria Jose Esteve <mj...@iest.com> on 2020/07/01 17:44:22 UTC

Know if a class implements a certain interface

Hi,
How to know if a class implements a certain interface? Do you know any direct method?

Thx.
Hiedra.

RE: Know if a class implements a certain interface

Posted by Maria Jose Esteve <mj...@iest.com>.
Right, thanks Yishay

Hiedra.

De: Yishay Weiss <yi...@hotmail.com>
Enviado el: miércoles, 1 de julio de 2020 20:01
Para: users@royale.apache.org
Asunto: RE: Know if a class implements a certain interface

It depends on what you want to check for. If you want to check that a component/strand has a certain bead, then yes, use getBeadByType(). If you want to check if myObj implements IMyInterface, then check

If (myObj is IMyInterface)

Hope that’s clear.

From: Maria Jose Esteve<ma...@iest.com>
Sent: Wednesday, July 1, 2020 8:50 PM
To: users@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Know if a class implements a certain interface

Sorry, my head is gone .. getBeadByType
😝

De: Maria Jose Esteve <mj...@iest.com>>
Enviado el: miércoles, 1 de julio de 2020 19:44
Para: users@royale.apache.org<ma...@royale.apache.org>
Asunto: Know if a class implements a certain interface

Hi,
How to know if a class implements a certain interface? Do you know any direct method?

Thx.
Hiedra.


RE: Know if a class implements a certain interface

Posted by Yishay Weiss <yi...@hotmail.com>.
It depends on what you want to check for. If you want to check that a component/strand has a certain bead, then yes, use getBeadByType(). If you want to check if myObj implements IMyInterface, then check

If (myObj is IMyInterface)

Hope that’s clear.

From: Maria Jose Esteve<ma...@iest.com>
Sent: Wednesday, July 1, 2020 8:50 PM
To: users@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Know if a class implements a certain interface

Sorry, my head is gone .. getBeadByType
😝

De: Maria Jose Esteve <mj...@iest.com>
Enviado el: miércoles, 1 de julio de 2020 19:44
Para: users@royale.apache.org
Asunto: Know if a class implements a certain interface

Hi,
How to know if a class implements a certain interface? Do you know any direct method?

Thx.
Hiedra.


RE: Know if a class implements a certain interface

Posted by Maria Jose Esteve <mj...@iest.com>.
Sorry, my head is gone .. getBeadByType
😝

De: Maria Jose Esteve <mj...@iest.com>
Enviado el: miércoles, 1 de julio de 2020 19:44
Para: users@royale.apache.org
Asunto: Know if a class implements a certain interface

Hi,
How to know if a class implements a certain interface? Do you know any direct method?

Thx.
Hiedra.