コード例 #1
0
ファイル: DomainModel.VS2010.cs プロジェクト: ozialien/NORMA
 /// <summary>
 /// Called to ask the filter if a particular role player should be Visited during traversal
 /// </summary>
 /// <param name="walker">ElementWalker that is traversing the model</param>
 /// <param name="sourceElement">Model Element playing the source role</param>
 /// <param name="elementLink">Element Link that forms the relationship to the role player in question</param>
 /// <param name="targetDomainRole">DomainRoleInfo of the target role</param>
 /// <param name="targetRolePlayer">Model Element that plays the target role in the relationship</param>
 /// <returns></returns>
 public virtual DslModeling::VisitorFilterResult ShouldVisitRolePlayer(DslModeling::ElementWalker walker, DslModeling::ModelElement sourceElement, DslModeling::ElementLink elementLink, DslModeling::DomainRoleInfo targetDomainRole, DslModeling::ModelElement targetRolePlayer)
 {
     if (targetDomainRole == null)
     {
         throw new global::System.ArgumentNullException("targetDomainRole");
     }
     return(this.DomainRoles.Contains(targetDomainRole.Id) ? DslModeling::VisitorFilterResult.Yes : DslModeling::VisitorFilterResult.DoNotCare);
 }
コード例 #2
0
ファイル: DomainModel.cs プロジェクト: Br3nda/sfdocsamples
 /// <summary>
 /// Called to ask the filter if a particular relationship from a source element should be included in the traversal
 /// </summary>
 /// <param name="walker">ElementWalker traversing the model</param>
 /// <param name="sourceElement">Model Element playing the source role</param>
 /// <param name="sourceRoleInfo">DomainRoleInfo of the role that the source element is playing in the relationship</param>
 /// <param name="domainRelationshipInfo">DomainRelationshipInfo for the ElementLink in question</param>
 /// <param name="targetRelationship">Relationship in question</param>
 /// <returns>Yes if the relationship should be traversed</returns>
 public virtual DslModeling::VisitorFilterResult ShouldVisitRelationship(DslModeling::ElementWalker walker, DslModeling::ModelElement sourceElement, DslModeling::DomainRoleInfo sourceRoleInfo, DslModeling::DomainRelationshipInfo domainRelationshipInfo, DslModeling::ElementLink targetRelationship)
 {
     if (sourceRoleInfo == null)
     {
         throw new global::System.ArgumentNullException("sourceRoleInfo");
     }
     return(this.DomainRoles.Contains(sourceRoleInfo.Id) ? DslModeling::VisitorFilterResult.Yes : DslModeling::VisitorFilterResult.DoNotCare);
 }
コード例 #3
0
ファイル: DomainModel.cs プロジェクト: kevinmiles/NORMA
 /// <summary>
 /// Called to ask the filter if a particular role player should be Visited during traversal
 /// </summary>
 /// <param name="walker">ElementWalker traversing the model</param>
 /// <param name="sourceElement">Model Element playing the source role</param>
 /// <param name="elementLink">Element Link that forms the relationship to the role player in question</param>
 /// <param name="targetDomainRole">DomainRoleInfo of the target role</param>
 /// <param name="targetRolePlayer">Model Element that plays the target role in the relationship</param>
 /// <returns></returns>
 public virtual DslModeling::VisitorFilterResult ShouldVisitRolePlayer(DslModeling::ElementWalker walker, DslModeling::ModelElement sourceElement, DslModeling::ElementLink elementLink, DslModeling::DomainRoleInfo targetDomainRole, DslModeling::ModelElement targetRolePlayer)
 {
     return(this.DomainRoles.ContainsKey(targetDomainRole.Id) ? DslModeling::VisitorFilterResult.Yes : DslModeling::VisitorFilterResult.DoNotCare);
 }
コード例 #4
0
ファイル: DomainModel.cs プロジェクト: kevinmiles/NORMA
 /// <summary>
 /// Called to ask the filter if a particular relationship from a source element should be included in the traversal
 /// </summary>
 /// <param name="walker">ElementWalker traversing the model</param>
 /// <param name="sourceElement">Model Element playing the source role</param>
 /// <param name="sourceRoleInfo">DomainRoleInfo of the role that the source element is playing in the relationship</param>
 /// <param name="domainRelationshipInfo">DomainRelationshipInfo for the ElementLink in question</param>
 /// <param name="targetRelationship">Relationship in question</param>
 /// <returns>Yes if the relationship should be traversed</returns>
 public virtual DslModeling::VisitorFilterResult ShouldVisitRelationship(DslModeling::ElementWalker walker, DslModeling::ModelElement sourceElement, DslModeling::DomainRoleInfo sourceRoleInfo, DslModeling::DomainRelationshipInfo domainRelationshipInfo, DslModeling::ElementLink targetRelationship)
 {
     return(this.DomainRoles.ContainsKey(sourceRoleInfo.Id) ? DslModeling::VisitorFilterResult.Yes : DslModeling::VisitorFilterResult.DoNotCare);
 }
コード例 #5
0
ファイル: DomainModel.cs プロジェクト: kevinmiles/NORMA
 /// <summary>
 /// Called to ask the filter if a particular relationship from a source element should be included in the traversal
 /// </summary>
 /// <param name="walker">ElementWalker that is traversing the model</param>
 /// <param name="sourceElement">Model Element playing the source role</param>
 /// <param name="sourceRoleInfo">DomainRoleInfo of the role that the source element is playing in the relationship</param>
 /// <param name="domainRelationshipInfo">DomainRelationshipInfo for the ElementLink in question</param>
 /// <param name="targetRelationship">Relationship in question</param>
 /// <returns>Yes if the relationship should be traversed</returns>
 public virtual DslModeling::VisitorFilterResult ShouldVisitRelationship(DslModeling::ElementWalker walker, DslModeling::ModelElement sourceElement, DslModeling::DomainRoleInfo sourceRoleInfo, DslModeling::DomainRelationshipInfo domainRelationshipInfo, DslModeling::ElementLink targetRelationship)
 {
     return(DslModeling::VisitorFilterResult.Yes);
 }