@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; }
@Override public GrepModelOutputV3 fillFromImpl(GrepModel.GrepOutput impl) { PojoUtils.copyProperties(this, impl, PojoUtils.FieldNaming.ORIGIN_HAS_UNDERSCORES); return this; }
@Override public GrepModel.GrepOutput createImpl() { GrepModel.GrepOutput impl = new GrepModel.GrepOutput(null); PojoUtils.copyProperties(impl, this, PojoUtils.FieldNaming.DEST_HAS_UNDERSCORES); return impl; }