public static XmlAttribute toXmlAttribute(Class<?> clazz,Field field){
  JMap jMap=field.getAnnotation(JMap.class);
  SimplyAttribute[] targetAttributes=toTargetAttributes(jMap.attributes());
  String get=null, set=null;
  JMapAccessor jMapAccessor=Annotation.getFieldAccessors(clazz,field);
  if (!isNull(jMapAccessor)) {
    get=jMapAccessor.get();
    set=jMapAccessor.set();
  }
  return toXmlAttribute(field.getName(),new Value(jMap.value()),get,set,targetAttributes,jMap.classes());
}

public static XmlAttribute toXmlAttribute ( Class < ? > clazz , Field field ) { JMap jMap = field . getAnnotation ( JMap . class ) ; SimplyAttribute [ ] targetAttributes = toTargetAttributes ( jMap . attributes ( ) ) ; String get = null , set = null ; JMapAccessor jMapAccessor = Annotation . getFieldAccessors ( clazz , field ) ; if ( ! isNull ( jMapAccessor ) ) { get = jMapAccessor . get ( ) ; set = jMapAccessor . set ( ) ; } return toXmlAttribute ( field . getName ( ) , new Value ( jMap . value ( ) ) , get , set , targetAttributes , jMap . classes ( ) ) ; }
this method transforms a field given in input , into a xmlattribute .
