public void Validate(FieldGroup oGroup, ASafeLog log) { if (string.IsNullOrWhiteSpace(SourcePath)) { throw new OwnException("Field source path not specified."); } Targets.ForEach(t => t.Validate(oGroup, log)); } // Validate
public void Validate(FieldGroup oGroup, ASafeLog log) { if (string.IsNullOrWhiteSpace(Name)) { throw new OwnException("Field target name not specified."); } Prefix = Prefix ?? ""; Suffix = Suffix ?? ""; if (Transformation != null) { Transformation.Validate(log); } oGroup.AddOutputFieldBuilder(this); } // Validate
public ParsedData(FieldGroup grp = null) { Data = new List <ParsedDataItem>(); MetaData = new SortedDictionary <string, string>(); m_oFieldGroup = grp; if (!ReferenceEquals(grp, null)) { GroupName = grp.Name; if (grp.MetaData != null) { foreach (KeyValuePair <string, string> pair in grp.MetaData) { MetaData[pair.Key] = pair.Value; } } } // if grp is specified } // constructor