private static InnerNodeVector<Arraytype> createVector(List<Builder> builders) { List<Arraytype> elems = new ArrayList<>(); for (Builder b : builders) { elems.add(new Arraytype(b)); } return new InnerNodeVector<Arraytype>(elems); } }
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); }
public Arraytype build() { return new Arraytype(this); }
public Builder(Arraytype config) { datatype(config.datatype()); }
private static void registerArrayType(DocumentTypeManager manager, int id, DocumentmanagerConfig.Datatype.Arraytype array) { DataType nestedType = manager.getDataType(array.datatype(), ""); ArrayDataType type = new ArrayDataType(nestedType, id); manager.register(type); }