|
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.model.contract.type.AbstractTypeHolder
org.eclipse.egf.model.contract.type.ClassTypeHolder
public abstract class ClassTypeHolder
Default class type holder.
Must be subclassed so as to provide the expected type.
The expected type is the one used to check class name value (as string representation) in the method#isValidType(String)
Constructor Summary | |
---|---|
ClassTypeHolder()
|
Method Summary | |
---|---|
abstract Class<?> |
getExpectedType()
Get the expected java type. |
Object |
getValue(String value_p)
Convert value from string to object. |
boolean |
isJava()
Is it standing for a java type (ie a class) ? |
boolean |
isValid(String value_p)
Is value string representation valid ? |
protected boolean |
isValidType(Object classInstance_p)
Is given class instance valid ? |
void |
setClassLoader(ClassLoader classLoader_p)
Set the class loader. |
void |
setPluginId(String pluginId_p)
Set the id of the plug-in responsible to deal with the given value in ITypeHolder.getValue(String) and ITypeHolder.isValid(String) . |
Methods inherited from class org.eclipse.egf.model.contract.type.AbstractTypeHolder |
---|
getSelectionDialog, getSelectionHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassTypeHolder()
Method Detail |
---|
public void setPluginId(String pluginId_p)
ITypeHolder
ITypeHolder.getValue(String)
and ITypeHolder.isValid(String)
.
pluginId_p
- must be the id of the plug-in not its name (e.g "org.eclipse.core.runtime").ITypeHolder.setPluginId(java.lang.String)
public void setClassLoader(ClassLoader classLoader_p)
classLoader_p
- the classLoader to setpublic Object getValue(String value_p)
ITypeHolder
ITypeHolder.getValue(java.lang.String)
public boolean isJava()
ITypeHolder
ITypeHolder.isJava()
public boolean isValid(String value_p)
ITypeHolder
ITypeHolder.isValid(java.lang.String)
protected boolean isValidType(Object classInstance_p)
classInstance_p
-
getExpectedType()
public abstract Class<?> getExpectedType()
isValidType(Object)
.
|
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.