public static final class ConstantValue.Builder
extends java.lang.Object
ConstantValue
.Constructor and Description |
---|
ConstantValue.Builder(ConstantValue.Category category)
Constructor with parameters for the required properties of
ConstantValue . |
Modifier and Type | Method and Description |
---|---|
ConstantValue |
build() |
ConstantValue.Builder |
setListValue(java.util.List<PrimitiveValue> listValue)
List value of the constant element.
|
ConstantValue.Builder |
setPrimitiveValue(PrimitiveValue primitiveValue)
Primitive value of the constant element.
|
public ConstantValue.Builder(ConstantValue.Category category)
ConstantValue
.public ConstantValue.Builder setPrimitiveValue(PrimitiveValue primitiveValue)
getCategory()
is ConstantValue.Category.PRIMITIVE
.primitiveValue
- New value for the property.public ConstantValue.Builder setListValue(java.util.List<PrimitiveValue> listValue)
getCategory()
is ConstantValue.Category.LIST
.listValue
- New value for the property.public ConstantValue build()