예제 #1
0
 @Override
 public SchemaMetadataV3 fillFromImpl(SchemaMetadata impl) {
   PojoUtils.copyProperties(this, impl, PojoUtils.FieldNaming.CONSISTENT, new String[] {"fields"});
   this.fields = new FieldMetadataV3[impl.fields.size()];
   this.label = impl.name;
   int i = 0;
   for (SchemaMetadata.FieldMetadata f : impl.fields)
     this.fields[i++] = new FieldMetadataV3().fillFromImpl(f); // TODO: version!
   return this;
 }
예제 #2
0
 @Override
 public GrepModelOutputV3 fillFromImpl(GrepModel.GrepOutput impl) {
   PojoUtils.copyProperties(this, impl, PojoUtils.FieldNaming.ORIGIN_HAS_UNDERSCORES);
   return this;
 }
예제 #3
0
 @Override
 public GrepModel.GrepOutput createImpl() {
   GrepModel.GrepOutput impl = new GrepModel.GrepOutput(null);
   PojoUtils.copyProperties(impl, this, PojoUtils.FieldNaming.DEST_HAS_UNDERSCORES);
   return impl;
 }