C# Class Company.OrmLanguage.OrmLanguageSerializationBehaviorMonikerResolverBase

Base moniker resolver for serialization behavior OrmLanguageSerializationBehavior.
Inheritance: DslModeling::SimpleMonikerResolver
Exibir arquivo Open project: thabart/SimpleOrm

Private Properties

Property Type Description

Public Methods

Method Description
OrmLanguageSerializationBehaviorMonikerResolverBase ( global::Microsoft.VisualStudio.Modeling store, global::Microsoft.VisualStudio.Modeling directory )

Constructor.

Protected Methods

Method Description
CalculateQualifiedName ( global::Microsoft.VisualStudio.Modeling mel ) : string

Calculate the fully qualified monikerized string of the given ModelElement.

CanBeMonikerized ( global::Microsoft.VisualStudio.Modeling domainClassInfo ) : bool

Tells if a DomainClass can be monikerized or not.

OnAmbiguousMoniker ( global::Microsoft.VisualStudio.Modeling context, string moniker, global::Microsoft.VisualStudio.Modeling element1, global::Microsoft.VisualStudio.Modeling element2 ) : void

Called when two new elements are giving the same moniker, which will cause ambiguity during moniker resolution.

OnMonikerResolvedToDuplicateLink ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void

Called when resolving a moniker causes a duplicate link to be created.

OnUnresolvedMoniker ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void

Called at the end of synchronization when they're unresolved monikers.

Method Details

CalculateQualifiedName() protected method

Calculate the fully qualified monikerized string of the given ModelElement.
protected CalculateQualifiedName ( global::Microsoft.VisualStudio.Modeling mel ) : string
mel global::Microsoft.VisualStudio.Modeling ModelElement to get moniker from.
return string

CanBeMonikerized() protected method

Tells if a DomainClass can be monikerized or not.
protected CanBeMonikerized ( global::Microsoft.VisualStudio.Modeling domainClassInfo ) : bool
domainClassInfo global::Microsoft.VisualStudio.Modeling DomainClassInfo of the DomainClass to be checked.
return bool

OnAmbiguousMoniker() protected method

Called when two new elements are giving the same moniker, which will cause ambiguity during moniker resolution.
protected OnAmbiguousMoniker ( global::Microsoft.VisualStudio.Modeling context, string moniker, global::Microsoft.VisualStudio.Modeling element1, global::Microsoft.VisualStudio.Modeling element2 ) : void
context global::Microsoft.VisualStudio.Modeling SerializationContext to store error/warning messages.
moniker string Moniker that both elements give.
element1 global::Microsoft.VisualStudio.Modeling The first element giving the moniker.
element2 global::Microsoft.VisualStudio.Modeling The second element giving the same moniker.
return void

OnMonikerResolvedToDuplicateLink() protected method

Called when resolving a moniker causes a duplicate link to be created.
protected OnMonikerResolvedToDuplicateLink ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void
serializationResult global::Microsoft.VisualStudio.Modeling SerializationResult to store error/warning messages.
moniker global::Microsoft.VisualStudio.Modeling Moniker that causes duplicate link to be created.
return void

OnUnresolvedMoniker() protected method

Called at the end of synchronization when they're unresolved monikers.
protected OnUnresolvedMoniker ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void
serializationResult global::Microsoft.VisualStudio.Modeling SerializationResult to store error/warning messages.
moniker global::Microsoft.VisualStudio.Modeling Unresolved moniker.
return void

OrmLanguageSerializationBehaviorMonikerResolverBase() public method

Constructor.
public OrmLanguageSerializationBehaviorMonikerResolverBase ( global::Microsoft.VisualStudio.Modeling store, global::Microsoft.VisualStudio.Modeling directory )
store global::Microsoft.VisualStudio.Modeling Store for this moniker resolver.
directory global::Microsoft.VisualStudio.Modeling Directory to used by this resolver to look up for serializers.