|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPropertyTester
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
.
Method Summary | |
---|---|
boolean |
handles(java.lang.String namespace,
java.lang.String property)
Returns whether the property tester can handle the given property or not. |
IPropertyTester |
instantiate()
Loads the implementation class for this property tester and returns an instance of this class. |
boolean |
isDeclaringPluginActive()
Returns true if the implementation class of this property
tester can be loaded. |
boolean |
isInstantiated()
Returns whether the implementation class for this property tester is loaded or not. |
boolean |
test(java.lang.Object receiver,
java.lang.String property,
java.lang.Object[] args,
java.lang.Object expectedValue)
Executes the property test determined by the parameter property . |
Method Detail |
---|
boolean handles(java.lang.String namespace, java.lang.String property)
namespace
- the name space to be consideredproperty
- the property to test
true
if the tester provides an implementation
for the given property; otherwise false
is returnedboolean isInstantiated()
true
if the implementation class is loaded;
false
otherwiseboolean isDeclaringPluginActive()
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.
IPropertyTester instantiate() throws CoreException
CoreException
- if the implementation class cannot be loadedboolean test(java.lang.Object receiver, java.lang.String property, java.lang.Object[] args, java.lang.Object expectedValue)
property
.
receiver
- the receiver of the property testproperty
- the property to testargs
- additional arguments to evaluate the property. If no arguments
are specified in the test
expression an array of length 0
is passedexpectedValue
- the 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
true if the property is equal to the expected value;
otherwise false
is returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |