Exemple #1
0
        private RegularExpression RewriteDownClass(PSMClass psmClass)
        {
            Debug.Assert(psmClass.ParentAssociation != null);
            //Debug.Assert(!psmClass.ParentAssociation.IsNamed);

            SequenceRegularExpression sequenceRegularExpression = new SequenceRegularExpression();

            RewriteDownClassWithSR(psmClass, sequenceRegularExpression);
            //RewriteDownClassAttributes(psmClass, sequenceRegularExpression);
            //RewriteDownClassElements(psmClass, sequenceRegularExpression);

            return(sequenceRegularExpression);
        }
Exemple #2
0
 private void RewriteDownClassWithSR(PSMClass psmClass, SequenceRegularExpression regularExpression)
 {
     if (psmClass.IsStructuralRepresentative)
     {
         RewriteDownClassWithSR(psmClass.RepresentedClass, regularExpression);
     }
     foreach (PSMAttribute attribute in psmClass.PSMAttributes)
     {
         regularExpression.Compounds.Add(RewriteDownAttribute(attribute));
     }
     foreach (PSMAssociation association in psmClass.ChildPSMAssociations)
     {
         regularExpression.Compounds.Add(RewriteDownAssociation(association));
     }
 }
Exemple #3
0
        private RegularExpression RewriteDownSequenceCM(PSMContentModel contentModel)
        {
            SequenceRegularExpression result = new SequenceRegularExpression();

            return(RewriteDownCM(contentModel, result));
        }