public Builder(DocumentmanagerConfig config) { enablecompression(config.enablecompression()); for (Datatype d : config.datatype()) { datatype(new Datatype.Builder(d)); } for (Annotationtype a : config.annotationtype()) { annotationtype(new Annotationtype.Builder(a)); } }
public Builder(Field config) { name(config.name()); for (Id i : config.id()) { id(new Id.Builder(i)); } datatype(config.datatype()); detailedtype(config.detailedtype()); }
public Builder(Structtype config) { name(config.name()); version(config.version()); compresstype(config.compresstype()); compresslevel(config.compresslevel()); compressthreshold(config.compressthreshold()); compressminsize(config.compressminsize()); for (Field f : config.field()) { field(new Field.Builder(f)); } for (Inherits i : config.inherits()) { inherits(new Inherits.Builder(i)); } }
public Builder(Documenttype config) { name(config.name()); version(config.version()); for (Inherits i : config.inherits()) { inherits(new Inherits.Builder(i)); } headerstruct(config.headerstruct()); bodystruct(config.bodystruct()); for (Map.Entry<String, Fieldsets> __entry : config.fieldsets().entrySet()) { fieldsets(__entry.getKey(), new Fieldsets.Builder(__entry.getValue())); } }
public Builder(Weightedsettype config) { datatype(config.datatype()); createifnonexistant(config.createifnonexistant()); removeifzero(config.removeifzero()); }
private Datatype(Builder builder, boolean throwIfUninitialized) { if (throwIfUninitialized && ! builder.__uninitialized.isEmpty()) throw new IllegalArgumentException("The following builder parameters for " + "documentmanager.datatype[] must be initialized: " + builder.__uninitialized); id = (builder.id == null) ? new IntegerNode() : new IntegerNode(builder.id); arraytype = Arraytype.createVector(builder.arraytype); maptype = Maptype.createVector(builder.maptype); weightedsettype = Weightedsettype.createVector(builder.weightedsettype); structtype = Structtype.createVector(builder.structtype); annotationreftype = Annotationreftype.createVector(builder.annotationreftype); documenttype = Documenttype.createVector(builder.documenttype); referencetype = Referencetype.createVector(builder.referencetype); }
private Builder compresstype(String __value) { return compresstype(Compresstype.Enum.valueOf(__value)); }
public Builder(Referencetype config) { target_type_id(config.target_type_id()); }
public Builder(Annotationreftype config) { annotation(config.annotation()); }
private Builder override(Builder __superior) { if (__superior.id != null) id(__superior.id); return this; }
private Builder override(Builder __superior) { if (__superior.target_type_id != null) target_type_id(__superior.target_type_id); return this; }
private Builder override(Builder __superior) { if (__superior.id != null) id(__superior.id); return this; }
@java.lang.Override public final boolean dispatchGetConfig(ConfigInstance.Producer producer) { if (producer instanceof Producer) { ((Producer)producer).getConfig(this); return true; } return false; }
/** * @return documentmanager.datatype[].structtype[].compresstype */ public Compresstype.Enum compresstype() { return compresstype.value(); }