public static class StructuralTemplate.STBuilder extends Object
StructuralTemplates.| Constructor and Description |
|---|
STBuilder() |
| Modifier and Type | Method and Description |
|---|---|
StructuralTemplate |
build()
Builds the template.
|
StructuralTemplate.STBuilder |
deep(int depth)
Sets the depth on the template.
|
StructuralTemplate.STBuilder |
inSource(String id)
Sets a source identifier on the template.
|
StructuralTemplate |
totalling(int size)
Sets an approximate size in kilobyte for the tree
|
StructuralTemplate.STBuilder |
wide(int w)
Sets the width on the template.
|
StructuralTemplate.STBuilder |
withAttributes(int max)
Sets the maximum number of attributes on the template.
|
StructuralTemplate.STBuilder |
withIds()
Sets the generation of node identifiers on the template.
|
StructuralTemplate.STBuilder |
withValuesOf(int max)
Sets the maximum size of leaf values on the template.
|
public StructuralTemplate.STBuilder inSource(String id)
id - the source identifierpublic StructuralTemplate.STBuilder wide(int w)
w - the widthpublic StructuralTemplate.STBuilder deep(int depth)
depth - the depthpublic StructuralTemplate totalling(int size)
size - the sizepublic StructuralTemplate.STBuilder withAttributes(int max)
max - the maximum number of attributespublic StructuralTemplate.STBuilder withValuesOf(int max)
max - the maximum size of leaf valuespublic StructuralTemplate.STBuilder withIds()
public StructuralTemplate build()
Copyright © 2018. All Rights Reserved.