private void setScope(DataDictionary.Generated.acceptor.Paragraph_scope aScope) { Item.SetScope(aScope); foreach (DataDictionary.Specification.Paragraph subParagraph in Item.getSubParagraphs()) { subParagraph.SetScope(aScope); } }
public void SetScope(DataDictionary.Generated.acceptor.Paragraph_scope Scope) { setScope(Scope); Paragraph enclosingParagraph = this; while (enclosingParagraph != null) { enclosingParagraph.subParagraphsScope = Generated.acceptor.Paragraph_scope.defaultParagraph_scope; enclosingParagraph = enclosingParagraph.EnclosingParagraph; } }
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { DataDictionary.Generated.acceptor.Paragraph_scope retVal = converters[0].val; foreach (Converter converter in converters) { if (converter.display.CompareTo(value) == 0) { retVal = converter.val; break; } } return(retVal); }
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destType) { string retVal = converters[0].display; DataDictionary.Generated.acceptor.Paragraph_scope val = (DataDictionary.Generated.acceptor.Paragraph_scope)value; foreach (Converter converter in converters) { if (converter.val == val) { retVal = converter.display; break; } } return(retVal); }
/// <summary> /// Computes the scope of the sub-paragraphs /// </summary> /// <returns></returns> private DataDictionary.Generated.acceptor.Paragraph_scope computeSubParagraphsScope() { DataDictionary.Generated.acceptor.Paragraph_scope result = getScope(); foreach (Paragraph paragraph in SubParagraphs) { switch (paragraph.SubParagraphsScope) { case Generated.acceptor.Paragraph_scope.aOBU_AND_TRACK: return(Generated.acceptor.Paragraph_scope.aOBU_AND_TRACK); case Generated.acceptor.Paragraph_scope.aOBU: if (result == Generated.acceptor.Paragraph_scope.aTRACK) { return(Generated.acceptor.Paragraph_scope.aOBU_AND_TRACK); } else { result = Generated.acceptor.Paragraph_scope.aOBU; } break; case Generated.acceptor.Paragraph_scope.aTRACK: if (result == Generated.acceptor.Paragraph_scope.aOBU) { return(Generated.acceptor.Paragraph_scope.aOBU_AND_TRACK); } else { result = Generated.acceptor.Paragraph_scope.aTRACK; } break; } } return(result); }
public Converter(DataDictionary.Generated.acceptor.Paragraph_scope val, string display) { this.val = val; this.display = display; }