Ejemplo n.º 1
0
 private void findAnnotation(System.Collections.Generic.ICollection <com.arangodb.entity.DocumentFieldAttribute.Type
                                                                     > values, System.Collections.Generic.IDictionary <com.arangodb.entity.DocumentFieldAttribute.Type
                                                                                                                       , java.lang.reflect.Field> fields, java.lang.reflect.Field field)
 {
     com.arangodb.entity.DocumentFieldAttribute annotation = field.getAnnotation <com.arangodb.entity.DocumentFieldAttribute
                                                                                  >();
     if (annotation != null && !field.isSynthetic() && !java.lang.reflect.Modifier.isStatic
             (field.getModifiers()) && typeof(string).isAssignableFrom
             (field.getType()))
     {
         com.arangodb.entity.DocumentFieldAttribute.Type value = annotation.value();
         if (values.contains(value))
         {
             field.setAccessible(true);
             fields[value] = field;
             values.remove(value);
         }
     }
 }