Class MultiValuedDataType.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.MultiValuedDataType.Builder
-
- Enclosing class:
- MultiValuedDataType
public static class MultiValuedDataType.Builder extends java.lang.ObjectClass implements builder to create a new instance of classMultiValuedDataType.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseMultiValuedDataType.builder()instead of private constructor to create new builder.protectedBuilder(MultiValuedDataType pObject)UseMultiValuedDataType.builder(MultiValuedDataType)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiValuedDataTypebuild()Method creates a new instance of class MultiValuedDataType.MultiValuedDataTypebuildValidated()Method creates a new validated instance of class MultiValuedDataType.MultiValuedDataType.BuildersetLiterals(BooleanLiteralsEnum... pLiterals)Method sets associationliterals.MultiValuedDataType.BuildersetLiterals(java.util.List<BooleanLiteralsEnum> pLiterals)Method sets associationliterals.MultiValuedDataType.BuildersetLongCodeQueryParam(java.util.List<LongCode> pLongCodeQueryParam)Method sets associationlongCodeQueryParam.MultiValuedDataType.BuildersetLongValues(long pLongValues)Method sets attributelongValues.MultiValuedDataType.BuildersetStringCodeHeader(java.util.List<StringCode> pStringCodeHeader)Method sets associationstringCodeHeader.MultiValuedDataType.BuildersetStringProperty(java.lang.String pStringProperty)Method sets attributestringProperty.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseMultiValuedDataType.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(MultiValuedDataType pObject)
UseMultiValuedDataType.builder(MultiValuedDataType)instead of private constructor to create new builder.
-
-
Method Detail
-
setStringCodeHeader
public MultiValuedDataType.Builder setStringCodeHeader(java.util.List<StringCode> pStringCodeHeader)
Method sets associationstringCodeHeader.- Parameters:
pStringCodeHeader- Collection to whichstringCodeHeadershould be set.- Returns:
MultiValuedDataType.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLongCodeQueryParam
public MultiValuedDataType.Builder setLongCodeQueryParam(java.util.List<LongCode> pLongCodeQueryParam)
Method sets associationlongCodeQueryParam.- Parameters:
pLongCodeQueryParam- Collection to whichlongCodeQueryParamshould be set.- Returns:
MultiValuedDataType.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLiterals
public MultiValuedDataType.Builder setLiterals(java.util.List<BooleanLiteralsEnum> pLiterals)
Method sets associationliterals.- Parameters:
pLiterals- Collection to whichliteralsshould be set.- Returns:
MultiValuedDataType.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLiterals
public MultiValuedDataType.Builder setLiterals(BooleanLiteralsEnum... pLiterals)
Method sets associationliterals.- Parameters:
pLiterals- Array with objects to whichliteralsshould be set.- Returns:
MultiValuedDataType.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setStringProperty
public MultiValuedDataType.Builder setStringProperty(java.lang.String pStringProperty)
Method sets attributestringProperty.- Parameters:
pStringProperty- Value to whichstringPropertyshould be set.- Returns:
MultiValuedDataType.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLongValues
public MultiValuedDataType.Builder setLongValues(long pLongValues)
Method sets attributelongValues.- Parameters:
pLongValues- Value to whichlongValuesshould be set.- Returns:
MultiValuedDataType.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public MultiValuedDataType build()
Method creates a new instance of class MultiValuedDataType. The object will be initialized with the values of the builder.- Returns:
- MultiValuedDataType Created object. The method never returns null.
-
buildValidated
public MultiValuedDataType buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class MultiValuedDataType. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- MultiValuedDataType Created and validated object. The method never returns null.
- Throws:
javax.validation.ConstraintViolationException- in case that one or more validations for the created object failed.
-
-