ModelBusEnabledTextTransformation Class

Definition

ModelBus flavor of the TextTransformation base class This class provides the SModelBus and SComponentModel services in the template's ServiceProvider

public abstract class ModelBusEnabledTextTransformation : Microsoft.VisualStudio.TextTemplating.VSHost.ModelingTextTransformation
type ModelBusEnabledTextTransformation = class
    inherit ModelingTextTransformation
Public MustInherit Class ModelBusEnabledTextTransformation
Inherits ModelingTextTransformation
Inheritance
ModelBusEnabledTextTransformation

Constructors

ModelBusEnabledTextTransformation()

Properties

CurrentIndent

Gets the current indent we use when adding lines to the output

(Inherited from TextTransformation)
Errors

The error collection for the generation process

(Inherited from TextTransformation)
GenerationEnvironment

The string builder that generation-time code is using to assemble generated output

(Inherited from TextTransformation)
ModelBus

Get the ModelBus service that this base class provides.

ServiceProvider

Provide a service provider containing the modelbus and other local

Session

User's session (can only be set via an instance)

(Inherited from ModelingTextTransformation)
SkipValidation

Causes the ValidateStore method to become a no-op

(Inherited from ModelingTextTransformation)
Store

Gets the modeling Store.

(Inherited from ModelingTextTransformation)

Methods

AddDomainModel(Type)

Add a domain model type to be loaded by the Store.

(Inherited from ModelingTextTransformation)
ClearIndent()

Remove any indentation

(Inherited from TextTransformation)
Dispose()

Disposes the state of this object.

(Inherited from TextTransformation)
Dispose(Boolean) (Inherited from ModelingTextTransformation)
Error(String)

Raise an error

(Inherited from TextTransformation)
Initialize()

Initialize this transformation by loading the Store with domain models and loading the model data

(Inherited from ModelingTextTransformation)
OnSessionChanged(ITextTemplatingSession, ITextTemplatingSession)

Fires whenever a session is provided that isn't the same as the last remembered session. Clears the static modelbus instance to prepare for a new snapshot of model files to be read.

PopIndent()

Remove the last indent that was added with PushIndent

(Inherited from TextTransformation)
PushIndent(String)

Increase the indent

(Inherited from TextTransformation)
ReportError(ErrorCategory, String)

Simple handler to convert ModelBus errors to T4 errors.

TransformText()

Generate the output text of the transformation

(Inherited from TextTransformation)
ValidateStore(String, CompilerErrorCollection)

Validates the store with the given validation categories in string form

(Inherited from ModelingTextTransformation)
Warning(String)

Raise a warning

(Inherited from TextTransformation)
Write(String)

Write text directly into the generated output

(Inherited from TextTransformation)
Write(String, Object[])

Write formatted text directly into the generated output

(Inherited from TextTransformation)
WriteLine(String)

Write text directly into the generated output

(Inherited from TextTransformation)
WriteLine(String, Object[])

Write formatted text directly into the generated output

(Inherited from TextTransformation)

Applies to