Поделиться через


StandardModelingAdapter Class

 

Represents a basic DSL based model adapter.

Namespace:   Microsoft.VisualStudio.Modeling.Integration
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
    Microsoft.VisualStudio.Modeling.Integration.ModelingAdapter
      Microsoft.VisualStudio.Modeling.Integration.StandardModelingAdapter

Syntax

[CLSCompliantAttribute(false)]
public abstract class StandardModelingAdapter : ModelingAdapter
[CLSCompliantAttribute(false)]
public ref class StandardModelingAdapter abstract : ModelingAdapter
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type StandardModelingAdapter = 
    class
        inherit ModelingAdapter
    end
<CLSCompliantAttribute(False)>
Public MustInherit Class StandardModelingAdapter
    Inherits ModelingAdapter

Constructors

Name Description
System_CAPS_protmethod StandardModelingAdapter(ModelBusReference, ModelBusAdapterManager, ModelElement)

Constructor

System_CAPS_protmethod StandardModelingAdapter(ModelBusReference, ModelBusAdapterManager, Store)

Constructor

Properties

Name Description
System_CAPS_pubproperty AdapterManager

ModelBusAdapterManager instance that creates this ModelBusAdapter instance.(Inherited from ModelBusAdapter.)

System_CAPS_protproperty AdapterModelRoot

System_CAPS_protproperty AdapterStore

System_CAPS_pubproperty DisplayName

The display name of the ModelBusAdapter(Inherited from ModelBusAdapter.)

System_CAPS_pubproperty Disposed

True if this ModelBusAdapter instance has been disposed, false otherwise.(Inherited from ModelBusAdapter.)

System_CAPS_pubproperty DocumentHandler

ModelingDocumentHandler used by this ModelingAdapter. The DocumentHandler is used by the ModelBusAdapter to configure the model wrapped by it. You can set this property only if it has not been set already.(Inherited from ModelingAdapter.)

System_CAPS_pubproperty Reference

(Inherited from ModelBusAdapter.)

Methods

Name Description
System_CAPS_pubmethod Dispose()

(Inherited from ModelBusAdapter.)

System_CAPS_protmethod Dispose(Boolean)

Clean-up this ModelBusAdapter instance. Triggers a dispose of the DocumentHandler, if it has one.(Inherited from ModelingAdapter.)

System_CAPS_pubmethod Equals(ModelBusAdapter)

True if this ModelBusAdapter is the same as the given ModelBusAdapter instance, false otherwise.(Inherited from ModelBusAdapter.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

Destructor.(Inherited from ModelBusAdapter.)

System_CAPS_pubmethod GetDefaultView()

Obtains the PrimaryView associated with this Model, if one is available.(Overrides ModelBusAdapter.GetDefaultView().)

System_CAPS_protmethod GetElementDisplayName(ModelElement)

Extension point for letting the DSL author decide the Display name for a particular model element

System_CAPS_protmethod GetElementId(ModelElement)

Get the Element Id of a ModelElement. This element Id will be used to build the modelbus reference of the model element

System_CAPS_pubmethod GetElementReference(Object)

Get the reference of a given object instance supposed to be exposed by this adapter.(Overrides ModelBusAdapter.GetElementReference(Object).)

System_CAPS_protmethod GetElementReferences(Type)

Get back all referenced objects that conform to a given data contract.(Inherited from ModelBusAdapter.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetReferences(Type)

(Inherited from ModelBusAdapter.)

System_CAPS_protmethod GetReferenceStatus()

Validates the element and the view (if applicable) and returns the status(Overrides ModelBusAdapter.GetReferenceStatus().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetView(ModelBusReference)

Gets a specific view associated with this Model based on the ModelBusView reference(Overrides ModelBusAdapter.GetView(ModelBusReference).)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ResolveElementReference(ModelBusReference)

Given an identifier for an Element, returns the actual object represented by this reference.(Overrides ModelBusAdapter.ResolveElementReference(ModelBusReference).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TrySetDocumentHandler(ModelingDocumentHandler)

If the ModelingDocumentHandler is not already set (by the constructor for e.g.), then sets it to the value passed as a parameter. Otherwise, returns false.(Inherited from ModelingAdapter.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top