Compartilhar via


ElementGroupPrototype Class

Definition

ElementGroupPrototype contains the information necessary to recreate an ElementGroup in any store.

public ref class ElementGroupPrototype sealed : System::Runtime::Serialization::IDeserializationCallback, System::Runtime::Serialization::ISerializable
[System.Serializable]
public sealed class ElementGroupPrototype : System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type ElementGroupPrototype = class
    interface ISerializable
    interface IDeserializationCallback
Public NotInheritable Class ElementGroupPrototype
Implements IDeserializationCallback, ISerializable
Inheritance
ElementGroupPrototype
Attributes
Implements

Constructors

ElementGroupPrototype(ElementGroup, IEnumerable<ModelElement>)

Constructor

ElementGroupPrototype(Partition, Guid)

Constructor for taking a rool domain class Id. This is used to determine whether an element can be merged under an parent element.

ElementGroupPrototype(Partition, ICollection<ModelElement>, ElementGroup)

Constructor

Fields

CreatingKey

Key for context info search

DefaultDataFormatName

The default data format name for the ElementGroupPrototype.

ElementGroupIdDictionary

Key used in the TargetContext ElementGroupContext for the Element Id dictionary and root element (Id) lists.

RootElementIdList

Key used in the Source and Target Context ElementGroupContext for the RootElement Id list and root element (Id) lists.

RootElementList

Key used in the Source and Target Context ElementGroupContext for the RootElement list and root element lists.

Properties

ProtoElementLinks

Gets collection of all ProtoElementLinks contained in the ElementGroupPrototype.

ProtoElements

Gets collection of all ProtoElements contained in the ElementGroupPrototype.

RootProtoElements

Gets collection of all root ProtoElements contained in the ElementGroupPrototype.

SourceContext

Returns this ElementGroupPrototype's source ElementGroupContext object

SourceRootElementIds

returns a read-only list of root element ids from the source context

TargetContext

Returns this ElementGroupPrototype's target ElementGroupContext object

TargetRootElementIds

returns a read-only list of root element ids from the target context

TopLevelProtoGroup

Prototype for the group this ElementGroupPrototype represents

UserData

The user-defined data object from the outer-most element group

Methods

CanCreateElementGroup(Partition, IElementPartitionMapper)

Can this prototype element group create a clone of the progenitor element group in the indicated partition?

CanCreateElementGroup(Partition)

Can this prototype element group create a clone of the progenitor element group in the indicated partition?

CanCreateElementGroup(Store)

Can this prototype element group create a clone of the progenitor element group in the indicated store?

CreateElementGroup(Partition, IElementPartitionMapper)

Create a clone of the progenitor element group

CreateElementGroup(Partition)

Create a clone of the progenitor element group

CreateElementGroup(Store)

Create a clone of the progenitor element group

GetObjectData(SerializationInfo, StreamingContext)

Populate the serialization info with the data necessary to serialize this object.

GetProtoElement(Guid)

Get the ProtoElement corresponding to the specified id.

GetProtoLink(Guid)

Get the ProtoLink corresponding to the specified id.

GetProtoLinks(ProtoElementBase, Guid)

Returns an IList of ProtoLink objects that contain the passed ProtoElementBase playing in the passed DomainRoleId.

GetReconstitutedElement(Transaction, Guid)

Returns the reconstituted ModelElement given the guid of the source ModelElement.

GetSourceRootElementId(Guid)

Gets the id of the source root ModelElement that corresponds to the specified target root ModelElement id. If it was not found, Guid.Empty is returned.

IsInRole(ProtoElementBase, Guid)

Returns true if the passed ProtoElementBase plays in the passed role in this ElementGroupPrototype.

ResolveProtoLinks(Collection<ProtoLink>, Guid)

Resolves the passed IList of ProtoLinks into the ProtoElements that play in the passed DomainRoleId.

ToString(Partition)

Dumps out the names of the Elements and ElementLinks in this ElementGroupPrototype, given the DomainClass definitions in the provided partition.

Explicit Interface Implementations

IDeserializationCallback.OnDeserialization(Object)

Deserialize the object when the graph is fully loaded

Applies to