private void buildConfig(MapDataType type, DocumenttypesConfig.Documenttype.Datatype.Builder dataTypeBuilder, DocumenttypesConfig.Documenttype.Builder documentBuilder, Set<Integer> built) { dataTypeBuilder. type(DocumenttypesConfig.Documenttype.Datatype.Type.Enum.MAP). map(new DocumenttypesConfig.Documenttype.Datatype.Map.Builder(). key(new DocumenttypesConfig.Documenttype.Datatype.Map.Key.Builder(). id(type.getKeyType().getId())). value(new DocumenttypesConfig.Documenttype.Datatype.Map.Value.Builder(). id(type.getValueType().getId()))); buildConfig(type.getKeyType(), documentBuilder, built); buildConfig(type.getValueType(), documentBuilder, built); }
public Builder(Datatype config) { id(config.id()); type(config.type()); array(new Array.Builder(config.array())); map(new Map.Builder(config.map())); wset(new Wset.Builder(config.wset())); annotationref(new Annotationref.Builder(config.annotationref())); sstruct(new Sstruct.Builder(config.sstruct())); }
private Builder override(Builder __superior) { if (__superior.id != null) id(__superior.id); if (__superior.type != null) type(__superior.type); array(array.override(__superior.array)); map(map.override(__superior.map)); wset(wset.override(__superior.wset)); annotationref(annotationref.override(__superior.annotationref)); sstruct(sstruct.override(__superior.sstruct)); return this; }