C# 클래스 CompartmentMapping.CompartmentMappingUtil

Some static utility methods to use with compartment mappings
파일 보기 프로젝트 열기: thabart/SimpleOrm 1 사용 예제들

공개 메소드들

메소드 설명
AllCompartmentMappingRules ( DomainModel model ) : System.Type[]

Gets all rules defined by the compartment mappings to register them by the dsl framework.

You should override the GetCustomDomainModelTypes() method in a partial class of your DomainModel.

AllCompartmentMappingRules ( DomainModel model, Type baseElementsForList ) : System.Type[]

Gets all rules defined by the compartment mappings to register them by the dsl framework.

You should override the GetCustomDomainModelTypes() method in a partial class of your DomainModel.

RemoveRerouteCommand ( IList baseList ) : IList
RerouteCompartmentMappings ( BinaryLinkShape link ) : void

Reroutes a compartment connection link shape.

The start and endpoints of the link will recalculated.

RerouteCompartmentMappings ( Diagram diagram ) : void

Reroutes all compartment connection link shape of a given diagram.

The start and endpoints of the link will recalculated.

RerouteCompartmentMappings ( NodeShape shape ) : void

Reroutes all compartment connection link shape connected to a given NodeShape.

The start and endpoints of the link will recalculated.

비공개 메소드들

메소드 설명
DoRerouteCompartmentMappings ( BinaryLinkShape link ) : void

Reroutes a compartment connection link shape.

To call this method you have to fill the cache and start a transaction!

FindAllCompartmentMappingRouter ( Assembly assembly ) : void

Search for all classes based on CompartmentMappingRouterBase

Only direct subclasses of CompartmentMappingRouterBase will be found, but since the code generator creates this classes it is not a problem. The generated code must be live in the Dsl Porject or the rules may be not found.

FindAllCompartmentRules ( Assembly assembly ) : System.Type[]

Search for all Rules based on CompartmentMappingAddRuleBase or CompartmentEntryDeletingRuleBase

Only direct subclasses of CompartmentEntryDeletingRuleBase will be found, but since the code generator creates this classes it is not a problem. The generated code must be live in the Dsl Porject or the rules may be not found.

메소드 상세

AllCompartmentMappingRules() 공개 정적인 메소드

Gets all rules defined by the compartment mappings to register them by the dsl framework.
You should override the GetCustomDomainModelTypes() method in a partial class of your DomainModel.
public static AllCompartmentMappingRules ( DomainModel model ) : System.Type[]
model DomainModel The model to get the rules for.
리턴 System.Type[]

AllCompartmentMappingRules() 공개 정적인 메소드

Gets all rules defined by the compartment mappings to register them by the dsl framework.
You should override the GetCustomDomainModelTypes() method in a partial class of your DomainModel.
public static AllCompartmentMappingRules ( DomainModel model, Type baseElementsForList ) : System.Type[]
model DomainModel The model to get the rules for.
baseElementsForList System.Type Some other rules to add to the result list.
리턴 System.Type[]

RemoveRerouteCommand() 공개 정적인 메소드

public static RemoveRerouteCommand ( IList baseList ) : IList
baseList IList
리턴 IList

RerouteCompartmentMappings() 공개 정적인 메소드

Reroutes a compartment connection link shape.
The start and endpoints of the link will recalculated.
public static RerouteCompartmentMappings ( BinaryLinkShape link ) : void
link BinaryLinkShape The BinaryLinkShape
리턴 void

RerouteCompartmentMappings() 공개 정적인 메소드

Reroutes all compartment connection link shape of a given diagram.
The start and endpoints of the link will recalculated.
public static RerouteCompartmentMappings ( Diagram diagram ) : void
diagram Diagram The Diagram
리턴 void

RerouteCompartmentMappings() 공개 정적인 메소드

Reroutes all compartment connection link shape connected to a given NodeShape.
The start and endpoints of the link will recalculated.
public static RerouteCompartmentMappings ( NodeShape shape ) : void
shape NodeShape The NodeShape
리턴 void