public void Execute(IEntityGraphBuilder builder, EntityRegexMatchInfo info)
        {
            List <IEntityList <IEntity> > bigList = AddEntitiesToList(info.GetMatch(), 0, new EntityList <IEntity>());

            for (int i = 0; i < bigList.Count; i++)
            {
                IEntityList <ITrueEntity> oneList          = bigList[i].ConvertToTrueEntityList();
                SubclassRelationship      subclassRelation = new SubclassRelationship(oneList[0] as IClassEntity, oneList[1] as IClassEntity);
                builder.Add(subclassRelation);
            }
        }
 public void Add(SubclassRelationship subclassRelationship)
 {
     Graph.Add(subclassRelationship);
 }
예제 #3
0
 bool _subclassRelationships_OnAdd(SubclassRelationship item)
 {
     return(BeforeAddNewRelationship(item));
 }
예제 #4
0
 /// <summary>
 /// Adds SubclassRelationship to the graph.
 /// </summary>
 /// <param name="subclassRelationship"></param>
 public void Add(SubclassRelationship subclassRelationship)
 {
     SubclassRelationships.Add(subclassRelationship);
 }