Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
berry::IPropertyTester Struct Referenceabstract

#include <berryIPropertyTester.h>

Inheritance diagram for berry::IPropertyTester:
Collaboration diagram for berry::IPropertyTester:

Public Member Functions

 berryObjectMacro (berry::IPropertyTester)
 
 ~IPropertyTester () override
 
virtual bool Handles (const QString &namespaze, const QString &property)=0
 
virtual bool IsInstantiated ()=0
 
virtual bool IsDeclaringPluginActive ()=0
 
virtual IPropertyTesterInstantiate ()=0
 
virtual bool Test (Object::ConstPointer receiver, const QString &property, const QList< Object::Pointer > &args, Object::Pointer expectedValue)=0
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () const
 
virtual void Delete ()
 
QDebug Print (QDebug os, Indent Indent=0) const
 
virtual QString ToString () const
 
virtual uint HashCode () const
 
virtual bool operator< (const Object *) const
 
void Register () const
 
void UnRegister (bool del=true) const
 
int GetReferenceCount () const
 
void SetReferenceCount (int)
 
void AddDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
void RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
virtual bool operator== (const Object *) const
 

Additional Inherited Members

- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- Protected Member Functions inherited from berry::Object
 Object ()
 
virtual ~Object ()
 
virtual QDebug PrintSelf (QDebug os, Indent indent) const
 
virtual QDebug PrintHeader (QDebug os, Indent indent) const
 
virtual QDebug PrintTrailer (QDebug os, Indent indent) const
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Detailed Description

A property tester can be used to add additional properties to test to an existing type.

This interface is not intended to be implemented by clients. Clients should subclass type PropertyTester.

Definition at line 38 of file berryIPropertyTester.h.

Constructor & Destructor Documentation

◆ ~IPropertyTester()

berry::IPropertyTester::~IPropertyTester ( )
override

Member Function Documentation

◆ berryObjectMacro()

berry::IPropertyTester::berryObjectMacro ( berry::IPropertyTester  )

◆ Handles()

virtual bool berry::IPropertyTester::Handles ( const QString &  namespaze,
const QString &  property 
)
pure virtual

Returns whether the property tester can handle the given property or not.

Parameters
namespazethe name space to be considered
propertythe property to test
Returns
true if the tester provides an implementation for the given property; otherwise false is returned

Implemented in berry::PropertyTester.

◆ Instantiate()

virtual IPropertyTester* berry::IPropertyTester::Instantiate ( )
pure virtual

Loads the implementation class for this property tester and returns an instance of this class.

Returns
an instance of the implementation class for this property tester
Exceptions
CoreExceptionif the implementation class cannot be loaded

Implemented in berry::PropertyTester.

◆ IsDeclaringPluginActive()

virtual bool berry::IPropertyTester::IsDeclaringPluginActive ( )
pure virtual

Returns true if the implementation class of this property tester can be loaded. This is the case if the plug-in providing the implementation class is active. Returns false otherwise.

Returns
whether the implementation class can be loaded or not

Implemented in berry::PropertyTester.

◆ IsInstantiated()

virtual bool berry::IPropertyTester::IsInstantiated ( )
pure virtual

Returns whether the implementation class for this property tester is loaded or not.

Returns
trueif the implementation class is loaded; false otherwise

Implemented in berry::PropertyTester.

◆ Test()

virtual bool berry::IPropertyTester::Test ( Object::ConstPointer  receiver,
const QString &  property,
const QList< Object::Pointer > &  args,
Object::Pointer  expectedValue 
)
pure virtual

Executes the property test determined by the parameter property.

Parameters
receiverthe receiver of the property test
propertythe property to test
argsadditional arguments to evaluate the property. If no arguments are specified in the test expression an array of length 0 is passed
expectedValuethe expected value of the property. The value is either of type java.lang.String or a boxed base type. If no value was specified in the test expressions then null is passed
Returns
returns true if the property is equal to the expected value; otherwise false is returned

The documentation for this struct was generated from the following file: