Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextModelFactory

An implementation of a model factory for text files.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _isDisposed

_isDisposed: any

Accessors

contentType

  • The type of the file.

    Notes

    This is a read-only property.

    Returns ContentType

fileFormat

  • The format of the file.

    This is a read-only property.

    Returns FileFormat

isDisposed

  • get isDisposed(): boolean
  • Get whether the model factory has been disposed.

    Returns boolean

name

  • get name(): string
  • The name of the model type.

    Notes

    This is a read-only property.

    Returns string

Methods

createNew

  • createNew(languagePreference?: string, modelDB?: IModelDB, isInitialized?: boolean): ICodeModel
  • Create a new model.

    Parameters

    • Optional languagePreference: string

      An optional kernel language preference.

    • Optional modelDB: IModelDB

      An optional modelDB.

    • Optional isInitialized: boolean

      An optional flag to check if the model is initialized.

    Returns ICodeModel

    A new document model.

dispose

  • dispose(): void
  • Dispose of the resources held by the model factory.

    Returns void

preferredLanguage

  • preferredLanguage(path: string): string
  • Get the preferred kernel language given a file path.

    Parameters

    • path: string

    Returns string

Generated using TypeDoc