/// <summary> /// Visits the document. /// </summary> /// <param name="document">The document to visit.</param> public override void VisitDocument(Gx.Conclusion.Document document) { if (document.Id != null) { this.dictionary.Add(document.Id, document); } base.VisitDocument(document); }
public virtual void VisitDocument(Document document) { this.contextStack.Push(document); VisitConclusion(document); this.contextStack.Pop(); }
/** * Build this out with a document. * @param document The document. * @return this. */ public Gedcomx SetDocument(Document document) { AddDocument(document); return this; }
/// <summary> /// Add a document to the data set. /// </summary> /// <param name="document">The document to be added.</param> public void AddDocument(Document document) { if (document != null) { if (Documents == null) Documents = new List<Document>(); Documents.Add(document); } }
public override void VisitDocument(Document document) { BindIfNeeded(document); base.VisitDocument(document); }
/** * Add a reference to the analysis for this conclusion. * * @param analysis The analysis. * @return this. */ public Conclusion SetAnalysis(Document analysis) { if (analysis.Id == null) { throw new ArgumentException("Cannot reference analysis: no id."); } return SetAnalysis(new ResourceReference("#" + analysis.Id)); }