T - NestingBuilder implementation representing the type of the
current builder. This is the type that will be returned by calling
NestedBuilder.finish() on a builder created by a build
method of this class (e.g., buildString("name").finish()
will return a builder of type T).public interface ComplexTypeBuilder<T extends NestingBuilder> extends NestingBuilder, CommonBuilder<T>
#buildObject(String)) are considered complex.SchemaBuilder,
ObjectTypeBuilder| Modifier and Type | Method and Description |
|---|---|
FieldSpecBuilder<T> |
buildFieldSpec(String name)
Builder method to add a new "boomi_fieldSpec" annotation to the current
object.
|
ElementTypeBuilder<T> |
buildProperty(String name)
Builder method to add a new property to the document.
|
T |
withMaxProperties(int value)
This method includes the "maxProperties" attribute in the object type
definition
|
T |
withMinProperties(int value)
This method includes the "minProperties" attribute in the object type
definition
|
T |
withRequired(String... values)
This method includes the "required" attribute in the object type
definition
|
getObjectRootwithDescription, withId, withIgnoreForFilters, withIgnoreForSelection, withIgnoreForSort, withTitleElementTypeBuilder<T> buildProperty(String name)
ComplexTypeBuilder instance. The method will return an
ElementTypeBuilder instance that can be used to obtain a builder
for desired property type. A call to NestedBuilder.finish() on
the type specific builder will return the original builder instance. The
property will be replaced if this method is called multiple times with
the same name.name - the name of the propertyArrayTypeBuilder instance that can be used to continue
building on the array propertyFieldSpecBuilder<T> buildFieldSpec(String name)
name - the name of the field specFieldSpecBuilder instance that can be used to continue
building on the field specT withRequired(String... values)
values - the value array of the attributeObjectTypeBuilder instanceT withMaxProperties(int value)
values - the value array of the attributeObjectTypeBuilder instanceT withMinProperties(int value)
values - the value array of the attributeObjectTypeBuilder instance