public void SetType(acceptor.Paragraph_type type) { setType(type); switch (type) { case acceptor.Paragraph_type.aREQUIREMENT: break; default: setImplementationStatus(acceptor.SPEC_IMPLEMENTED_ENUM.Impl_NotImplementable); break; } }
/// <summary> /// Changes the type of the paragraph if the paragraph type is the original type /// </summary> /// <param name="originalType">The type of the paragraph which should be matched</param> /// <param name="targetType">When the originalType is matched, the new type to set</param> public void ChangeType(acceptor.Paragraph_type originalType, acceptor.Paragraph_type targetType) { // If the type is matched, change the type if (getType() == originalType) { setType(targetType); } // Recursively apply this procedure on sub paragraphs foreach (Paragraph paragraph in SubParagraphs) { paragraph.ChangeType(originalType, targetType); } }
public bool setType_AsString( string v) { acceptor.Paragraph_type temp = acceptor.StringTo_Enum_Paragraph_type(v); if (temp >= 0){ aType = temp; __setDirty(true); NotifyControllers(null); return true; } // If return false; }
public void setType(acceptor.Paragraph_type v) { aType = v; __setDirty(true); NotifyControllers(null); }
public Paragraph() { Paragraph obj = this; aId=(null); aType=(0); aObsoleteScope=(0); aObsoleteScopeOnBoard=(false); aObsoleteScopeTrackside=(false); aObsoleteScopeRollingStock=(false); aBl=(null); aOptional=(false); aTypeSpecs=(null); aText=(null); aVersion=(null); aReviewed=(false); aImplementationStatus=(0); aParagraphs=(null); aRevision=(null); aMessage=(null); aMoreInfoRequired=(false); aSpecIssue=(false); aObsoleteFunctionalBlock=(false); aObsoleteFunctionalBlockName=(null); aRequirementSets=(null); aObsoleteGuid=(null); aTested=(false); }
public Paragraph() { Paragraph obj = this; aId=(null); aType=(0); aScope=(0); aBl=(null); aOptional=(false); aTypeSpecs=(null); aText=(null); aVersion=(null); aReviewed=(false); aImplementationStatus=(0); aParagraphs=(null); aRevision=(null); aMessage=(null); aMoreInfoRequired=(false); aSpecIssue=(false); aFunctionalBlock=(false); aFunctionalBlockName=(null); }