Interface ITypeResolver

  • All Known Implementing Classes:
    IvmlBaseTypeResolver, IvmlTypeResolver

    public interface ITypeResolver
    An external type resolver for TypeRegistry. This may allow for deferred type resolution in order to save memory.
    Author:
    Holger Eichelberger
    • 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 resolved
        addIfMissing - whether dynamically adding (a fake) type for a missing type is allowed through this call
        Returns:
        the resolved type (or null if name cannot 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 name cannot 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 name cannot be resolved)
      • setRegistryAccess

        void setRegistryAccess​(IDirectTypeRegistryAccess access)
        Set the direct access to the registry.
        Parameters:
        access - the access instance