Interface ITypeRepository
-
public interface ITypeRepositoryThe external representation of the repository of Java types, which gives access to the application's classes.Important:
IType.UNRESOLVABLE_TYPEhas to be handled by the implementer, which has to be done ingetType(String). It indicates the type is unresolvable or simply unknown.Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
- Version:
- 2.3
- Author:
- Pascal Filion
- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITypegetEnumType(java.lang.String enumTypeName)Returns theITyperepresenting the possible given enum constant.ITypegetType(java.lang.Class<?> type)Retrieves the external type for the given Java type.ITypegetType(java.lang.String typeName)Retrieves the external class for the given fully qualified class name.TypeHelpergetTypeHelper()Returns a helper that gives access to the most commontypes.
-
-
-
Method Detail
-
getEnumType
IType getEnumType(java.lang.String enumTypeName)
Returns theITyperepresenting the possible given enum constant. If the given value does not represent an enum constant, thennullis returned.- Parameters:
enumTypeName- The fully qualified enum type with the constant- Returns:
- The external form for the given Enum type or
nullif none exists
-
getType
IType getType(java.lang.Class<?> type)
Retrieves the external type for the given Java type.- Parameters:
type- The Java type to wrap with an external form- Returns:
- The external form of the given type
-
getType
IType getType(java.lang.String typeName)
Retrieves the external class for the given fully qualified class name.- Parameters:
typeName- The fully qualified class name of the class to retrieve- Returns:
- The external form of the class to retrieve
-
getTypeHelper
TypeHelper getTypeHelper()
Returns a helper that gives access to the most commontypes.- Returns:
- A helper containing a collection of methods related to
IType
-
-