Example #1
0
 public override void VisitField(Field field)
 {
     _fields.Add(field);
 }
Example #2
0
            public override void VisitField(Field field)
            {
                Person person = null;
                foreach (object item in contextStack)
                {
                    if (item is Person)
                    {
                        person = item as Person;
                        break;
                    }
                }

                if (person == null)
                {
                    _commonFields.Add(field);
                }
                else
                {
                    List<Field> personFields;
                    if (_fieldsByPerson.ContainsKey(person))
                    {
                        personFields = _fieldsByPerson[person];
                    }
                    else
                    {
                        personFields = new List<Field>();
                        _fieldsByPerson.Add(person, personFields);
                    }

                    personFields.Add(field);
                }
            }
 /**
  * Build this out with a field.
  * @param field The field.
  * @return this.
  */
 public SourceDescription SetField(Field field)
 {
     AddField(field);
     return this;
 }
 /**
  * Add a field to the source description.
  *
  * @param field The field to be added.
  */
 public void AddField(Field field)
 {
     if (field != null)
     {
         if (_fields == null)
             _fields = new List<Field>();
         _fields.Add(field);
     }
 }
        /// <summary>
        /// Visits the field.
        /// </summary>
        /// <param name="field">The field to visit.</param>
        public virtual void VisitField(Field field)
        {
            this.contextStack.Push(field);

            if (field.Values != null)
            {
                foreach (FieldValue v in field.Values)
                {
                    VisitFieldValue(v);
                }
            }

            this.contextStack.Pop();
        }
Example #6
0
 /**
  * Build this out with a field.
  * @param field The field.
  * @return this.
  */
 public Gedcomx SetField(Field field)
 {
     AddField(field);
     return this;
 }
Example #7
0
 /**
  * Build up this fact with a field.
  *
  * @param field The field.
  * @return this.
  */
 public Fact SetField(Field field)
 {
     AddField(field);
     return this;
 }
 /**
  * Build out this place reference with a field.
  *
  * @param field The field.
  * @return this.
  */
 public PlaceReference SetField(Field field)
 {
     AddField(field);
     return this;
 }
Example #9
0
 /**
  * Build out this relationship with a field.
  *
  * @param field The field.
  * @return this.
  */
 public Relationship SetField(Field field)
 {
     AddField(field);
     return this;
 }
Example #10
0
 /**
  * Build up this name form with a field.
  *
  * @param field The field.
  * @return this.
  */
 public NameForm SetField(Field field)
 {
     AddField(field);
     return this;
 }
 public void visitField(Field field)
 {
     BindIfNeeded(field);
     base.VisitField(field);
 }
Example #12
0
 /**
  * Build out this person with a field.
  * @param field The field.
  * @return this.
  */
 public Person SetField(Field field)
 {
     AddField(field);
     return this;
 }
Example #13
0
 /**
  * Build up this date with a field.
  *
  * @param field The field.
  * @return this.
  */
 public DateInfo SetField(Field field)
 {
     AddField(field);
     return this;
 }
 /// <summary>
 /// Visits the field.
 /// </summary>
 /// <param name="field">The field to visit.</param>
 public override void VisitField(Field field)
 {
     if (field.Id != null)
     {
         this.dictionary.Add(field.Id, field);
     }
     base.VisitField(field);
 }
Example #15
0
 /**
  * Build out this name part with a field.
  * @param field The field.
  * @return this.
  */
 public NamePart SetField(Field field)
 {
     AddField(field);
     return this;
 }
        public virtual void VisitField(Field field)
        {
            this.contextStack.Push(field);

            List<FieldValue> values = field.Values;
            if (values != null)
            {
                foreach (FieldValue value in values)
                {
                    value.Accept(this);
                }
            }

            this.contextStack.Pop();
        }
 public override void VisitField(Field field)
 {
     BindIfNeeded(field);
     base.VisitField(field);
 }