P
- The type of NestingBuilder
that was used to create this
builder. This is the type that will be returned by calling
NestedBuilder.finish()
on builders created by this
builder.public interface ElementTypeBuilder<P extends NestingBuilder> extends NestingBuilder
ComplexTypeBuilder
and ArrayTypeBuilder
instances to build properties and definitions uniformly. Instances of this
class can be obtained via ComplexTypeBuilder.buildProperty(String)
and ArrayTypeBuilder.buildDefinition()
. There is no contextual value
in calling multiple methods on an instance of this class. Since there is no
need to return here, instances of this class are NOT NestedBuilder
instances and, therefore, do not have a NestedBuilder.finish()
method. Calling the finish method on a builder created by an instance of this
class will return the builder that was used to create this instance.Modifier and Type | Method and Description |
---|---|
ArrayTypeBuilder<P> |
buildArray()
This method builds an array definition using the internal builder.
|
BooleanTypeBuilder<P> |
buildBoolean()
This method builds a boolean definition using the internal builder.
|
NumericTypeBuilder<P> |
buildInteger()
This methods builds an integer definition using the internal builder.
|
NullTypeBuilder<P> |
buildNull()
This method builds a null definition using the internal builder.
|
NumericTypeBuilder<P> |
buildNumber()
This method builds a number definition using the internal builder.
|
ObjectTypeBuilder<P> |
buildObject()
This method builds an object definition using the internal builder.
|
StringTypeBuilder<P> |
buildString()
This method builds a string definition using the internal builder.
|
getObjectRoot
StringTypeBuilder<P> buildString()
StringTypeBuilder
instanceBooleanTypeBuilder<P> buildBoolean()
BooleanTypeBuilder
instanceNumericTypeBuilder<P> buildInteger()
NumericTypeBuilder
instanceNumericTypeBuilder<P> buildNumber()
NumericTypeBuilder
instanceNullTypeBuilder<P> buildNull()
NullTypeBuilder
instanceObjectTypeBuilder<P> buildObject()
ObjectTypeBuilder
instanceArrayTypeBuilder<P> buildArray()
ArrayTypeBuilder
instance