Exemplo n.º 1
0
 @SuppressWarnings("unchecked")
 public static void parseCopyFields(Object propNode, AbstractFieldMapper.Builder builder) {
   AbstractFieldMapper.CopyTo.Builder copyToBuilder = new AbstractFieldMapper.CopyTo.Builder();
   if (isArray(propNode)) {
     for (Object node : (List<Object>) propNode) {
       copyToBuilder.add(nodeStringValue(node, null));
     }
   } else {
     copyToBuilder.add(nodeStringValue(propNode, null));
   }
   builder.copyTo(copyToBuilder.build());
 }