Beispiel #1
0
        /// <summary>
        /// This method is used to process the field an annotation given.
        /// This will check to determine if the field is accessible, if it
        /// is not accessible then it is made accessible so that private
        /// member fields can be used during the serialization process.
        /// </summary>
        /// <param name="field">
        /// this is the field to be added as a contact
        /// </param>
        /// <param name="label">
        /// this is the XML annotation used by the field
        /// </param>
        public void Process(Field field, Annotation label)
        {
            Contact contact = new FieldContact(field, label);

            if (!field.isAccessible())
            {
                field.setAccessible(true);
            }
            done.put(field, contact);
        }
Beispiel #2
0
 /// <summary>
 /// This method is used to process the field an annotation given.
 /// This will check to determine if the field is accessible, if it
 /// is not accessible then it is made accessible so that private
 /// member fields can be used during the serialization process.
 /// </summary>
 /// <param name="field">
 /// this is the field to be added as a contact
 /// </param>
 /// <param name="label">
 /// this is the XML annotation used by the field
 /// </param>
 public void Process(Field field, Annotation label) {
    Contact contact = new FieldContact(field, label);
    if(!field.isAccessible()) {
       field.setAccessible(true);
    }
    done.put(field, contact);
 }