/// <summary> /// Remove obsolete fields from XML file /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Paragraph obj, bool visitSubNodes) { Specification.Paragraph paragraph = (Specification.Paragraph)obj; if (paragraph.getObsoleteFunctionalBlockName() == "") { paragraph.setObsoleteFunctionalBlockName(null); } if (paragraph.getObsoleteGuid() == "") { paragraph.setObsoleteGuid(null); } base.visit(obj, visitSubNodes); }
public override void visit(Paragraph obj, bool visitSubNodes) { obj.setGuid(""); obj.setType(acceptor.Paragraph_type.aREQUIREMENT); obj.setObsoleteScope(acceptor.Paragraph_scope.aFLAGS); obj.setObsoleteScopeOnBoard(false); obj.setObsoleteScopeTrackside(false); obj.setObsoleteScopeRollingStock(false); obj.setBl(""); obj.setOptional(true); obj.setName(""); obj.setReviewed(false); obj.setImplementationStatus(acceptor.SPEC_IMPLEMENTED_ENUM.Impl_NA); obj.setTested(false); obj.setVersion("3.0.0"); obj.setMoreInfoRequired(false); obj.setSpecIssue(false); obj.setObsoleteFunctionalBlock(false); obj.setObsoleteFunctionalBlockName(""); base.visit(obj, visitSubNodes); }
public override void visit(Paragraph obj, bool visitSubNodes) { obj.setGuid(""); obj.setType(acceptor.Paragraph_type.aREQUIREMENT); obj.setObsoleteScope(acceptor.Paragraph_scope.aFLAGS); obj.setObsoleteScopeOnBoard(false); obj.setObsoleteScopeTrackside(false); obj.setObsoleteScopeRollingStock(false); obj.setBl(""); obj.setOptional(true); obj.setName(""); obj.setReviewed(false); obj.setImplementationStatus(acceptor.SPEC_IMPLEMENTED_ENUM.Impl_NA); obj.setTested(false); obj.setVersion("3.0.0"); obj.setMoreInfoRequired(false); obj.setSpecIssue(false); obj.setObsoleteFunctionalBlock(false); obj.setObsoleteFunctionalBlockName(""); base.visit(obj, visitSubNodes); }
public virtual void visit(Paragraph obj, bool visitSubNodes) { visit ((ReferencesParagraph) obj, false); if (visitSubNodes){ IXmlBBase[] Subs = acceptor.subElements((IXmlBBase)obj); if (Subs != null){ for (int i=0; i<Subs.Length; i++) { dispatch(Subs[i], true); } // If } // If } }
public virtual void visit(Paragraph obj) { visit(obj, true); }
public void insertParagraphs(int idx, Paragraph el,Lock aLock) { __setDirty(true); allParagraphs().Insert (idx, el); NotifyControllers(aLock); }
public void copyTo(Paragraph other) { base.copyTo(other); other.aId = aId; other.aType = aType; other.aObsoleteScope = aObsoleteScope; other.aObsoleteScopeOnBoard = aObsoleteScopeOnBoard; other.aObsoleteScopeTrackside = aObsoleteScopeTrackside; other.aObsoleteScopeRollingStock = aObsoleteScopeRollingStock; other.aBl = aBl; other.aOptional = aOptional; other.aTypeSpecs = aTypeSpecs; other.aText = aText; other.aVersion = aVersion; other.aReviewed = aReviewed; other.aImplementationStatus = aImplementationStatus; other.aParagraphs = aParagraphs; other.aRevision = aRevision; other.aMessage = aMessage; other.aMoreInfoRequired = aMoreInfoRequired; other.aSpecIssue = aSpecIssue; other.aObsoleteFunctionalBlock = aObsoleteFunctionalBlock; other.aObsoleteFunctionalBlockName = aObsoleteFunctionalBlockName; other.aRequirementSets = aRequirementSets; other.aObsoleteGuid = aObsoleteGuid; other.aTested = aTested; }
public void appendParagraphs(Lock aLock,Paragraph el) { __setDirty(true); el.__setDirty(true); allParagraphs().Add(el); acceptor.connectSon (this, el); NotifyControllers(aLock); }
public void copyTo(Paragraph other) { base.copyTo(other); other.aId = aId; other.aType = aType; other.aScope = aScope; other.aBl = aBl; other.aOptional = aOptional; other.aTypeSpecs = aTypeSpecs; other.aText = aText; other.aVersion = aVersion; other.aReviewed = aReviewed; other.aImplementationStatus = aImplementationStatus; other.aParagraphs = aParagraphs; other.aRevision = aRevision; other.aMessage = aMessage; other.aMoreInfoRequired = aMoreInfoRequired; other.aSpecIssue = aSpecIssue; other.aFunctionalBlock = aFunctionalBlock; other.aFunctionalBlockName = aFunctionalBlockName; }
/// <summary> /// Remove obsolete fields from XML file /// </summary> /// <param name="obj"></param> /// <param name="visitSubNodes"></param> public override void visit(Paragraph obj, bool visitSubNodes) { Specification.Paragraph paragraph = (Specification.Paragraph) obj; if (paragraph.getObsoleteFunctionalBlockName() == "") { paragraph.setObsoleteFunctionalBlockName(null); } if (paragraph.getObsoleteGuid() == "") { paragraph.setObsoleteGuid(null); } base.visit(obj, visitSubNodes); }