|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.common.ui.toolkit.validators.AbstractValidator
org.eclipse.egf.common.ui.toolkit.validators.NotEmptyStringValidator
org.eclipse.egf.common.ui.internal.validators.JavaClassValidator
public class JavaClassValidator
Implements a validator that checks if given fully qualified name is able to instantiated.
Constructor Summary | |
---|---|
JavaClassValidator(ClassLoader classLoader_p,
Bundle bundle_p,
Class<?> expectedClassType_p)
Constructor. |
Method Summary | |
---|---|
String |
isValid(Object value_p)
Returns a string indicating whether the given value is valid; null means valid, and non-null means invalid, with the result
being the error message to display to the end-user. |
void |
setExpectedClassType(Class<?> expectedClassType_p)
Set the expected class type to given one. |
Methods inherited from class org.eclipse.egf.common.ui.toolkit.validators.AbstractValidator |
---|
getErrorMessage, setErrorMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaClassValidator(ClassLoader classLoader_p, Bundle bundle_p, Class<?> expectedClassType_p)
errorMessage_p
- classLoader_p
- bundle_p
- expectedClassType_p
- Method Detail |
---|
public String isValid(Object value_p)
org.eclipse.egf.common.ui.toolkit.validators.IValidator
null
means valid, and non-null
means invalid, with the result
being the error message to display to the end-user.
It is the responsibility of the implementor to fully format the message before returning it.
isValid
in interface org.eclipse.egf.common.ui.toolkit.validators.IValidator
isValid
in class org.eclipse.egf.common.ui.toolkit.validators.NotEmptyStringValidator
value_p
- the value to be validated
null
indicating that the value is valid.IValidator.isValid(java.lang.Object)
public void setExpectedClassType(Class<?> expectedClassType_p)
expectedClassType_p
- the expectedClassType to set
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.