public override void visit(Generated.ReqRelated obj, bool visitSubNodes) { ReqRelated init = obj as ReqRelated; ReqRelated reqRelated = obj as ReqRelated; if (init != null && init.NeedsRequirement) // the object must be associated to a requirement { bool noReq = true; // no requirement found for this object while (noReq && reqRelated != null) { for (int i = 0; i < reqRelated.Requirements.Count; i++) { ReqRef reqRef = reqRelated.Requirements[i] as ReqRef; if (reqRef.Paragraph == null) { reqRef.AddError("Cannot find paragraph corresponding to " + reqRef.getId()); } else if (reqRef.Paragraph.getType() == Generated.acceptor.Paragraph_type.aREQUIREMENT) { noReq = false; // found a requirement } } if (noReq) // if no requirement found, we explore the requirements of the enclosing element { reqRelated = Utils.EnclosingFinder <DataDictionary.ReqRelated> .find(reqRelated); } } if (noReq) { init.AddInfo("No requirement found for element"); } } base.visit(obj, visitSubNodes); }
public override void visit(Generated.ReqRelated obj, bool visitSubNodes) { obj.setImplemented(false); obj.setVerified(false); obj.setNeedsRequirement(true); base.visit(obj, visitSubNodes); }
public override void visit(Generated.ReqRelated obj, bool visitSubNodes) { DataDictionary.ReqRelated reqRelated = (DataDictionary.ReqRelated)obj; if (!reqRelated.getImplemented()) { reqRelated.AddInfo("Implementation not complete"); } base.visit(obj, visitSubNodes); }
public override void visit(Generated.ReqRelated obj, bool visitSubNodes) { currentSet.Add((ReqRelated)obj); base.visit(obj, visitSubNodes); }
/// <summary> /// Cleans all text fields in this element /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Generated.ReqRelated obj, bool visitSubNodes) { base.visit(obj, visitSubNodes); }