public virtual void visit(StructureElement obj, bool visitSubNodes) { visit ((ReqRelated) 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 override void visit(StructureElement obj, bool visitSubNodes) { obj.setDefault(""); obj.setMode(acceptor.VariableModeEnumType.aInternal); base.visit(obj, visitSubNodes); }
public virtual void visit(StructureElement obj) { visit(obj, true); }
public void copyTo(StructureElement other) { base.copyTo(other); other.aTypeName = aTypeName; other.aDefault = aDefault; other.aMode = aMode; }
public void insertElements(int idx, StructureElement el,Lock aLock) { __setDirty(true); allElements().Insert (idx, el); NotifyControllers(aLock); }
public void appendElements(Lock aLock,StructureElement el) { __setDirty(true); el.__setDirty(true); allElements().Add(el); acceptor.connectSon (this, el); NotifyControllers(aLock); }
public override void visit(StructureElement obj, bool visitSubNodes) { Types.StructureElement element = (Types.StructureElement) obj; if (!Utils.Util.isEmpty(element.getDefault())) { checkExpression(element, element.getDefault()); } if (element.DefaultValue != null) { if (!element.DefaultValue.Type.Match(element.Type)) { element.AddError("Type of default value (" + element.DefaultValue.Type.FullName + ") does not match element type (" + element.Type.FullName + ")"); } } base.visit(obj, visitSubNodes); }