Interface ITypeResolver
-
- All Known Implementing Classes:
IvmlBaseTypeResolver,IvmlTypeResolver
public interface ITypeResolverAn external type resolver forTypeRegistry. This may allow for deferred type resolution in order to save memory.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeRegistrygetTypeRegistry()Returns the type registry this resolver is registered with.TypeDescriptor<? extends IVilType>resolveInstantiator(java.lang.String name)Resolves an instantiator by its name.TypeDescriptor<?>resolveType(java.lang.String name, boolean addIfMissing)Resolves a type by its name.TypeDescriptor<?>resolveType(IDatatype type)Resolves a type by its IVML type.voidsetRegistryAccess(IDirectTypeRegistryAccess access)Set the direct access to the registry.
-
-
-
Method Detail
-
getTypeRegistry
TypeRegistry getTypeRegistry()
Returns the type registry this resolver is registered with.- Returns:
- the type registry
-
resolveType
TypeDescriptor<?> resolveType(java.lang.String name, boolean addIfMissing)
Resolves a type by its name.- Parameters:
name- the name of the type to be resolvedaddIfMissing- whether dynamically adding (a fake) type for a missing type is allowed through this call- Returns:
- the resolved type (or null if
namecannot be resolved)
-
resolveType
TypeDescriptor<?> resolveType(IDatatype type)
Resolves a type by its IVML type.- Parameters:
type- the type to be resolved- Returns:
- the resolved type (or null if
namecannot be resolved)
-
resolveInstantiator
TypeDescriptor<? extends IVilType> resolveInstantiator(java.lang.String name)
Resolves an instantiator by its name.- Parameters:
name- the name of the type to be resolved- Returns:
- the resolved instantiator type (or null if
namecannot be resolved)
-
setRegistryAccess
void setRegistryAccess(IDirectTypeRegistryAccess access)
Set the direct access to the registry.- Parameters:
access- the access instance
-
-