Class Context.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Context.Builder
-
- Direct Known Subclasses:
SpecialContext.Builder
- Enclosing class:
- Context
public static class Context.Builder extends java.lang.ObjectClass implements builder to create a new instance of classContext.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseContext.builder()instead of private constructor to create new builder.protectedBuilder(Context pObject)UseContext.builder(Context)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contextbuild()Method creates a new instance of class Context.ContextbuildValidated()Method creates a new validated instance of class Context.Context.BuildersetAccessToken(java.lang.String pAccessToken)Method sets attributeaccessToken.Context.BuildersetLanguage(java.util.Locale pLanguage)Method sets attributelanguage.Context.BuildersetPathParam(long pPathParam)Method sets attributepathParam.Context.BuildersetQueryParam(java.lang.String pQueryParam)Method sets attributequeryParam.Context.BuildersetResellerID(long pResellerID)Method sets attributeresellerID.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseContext.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(Context pObject)
UseContext.builder(Context)instead of private constructor to create new builder.
-
-
Method Detail
-
setAccessToken
public Context.Builder setAccessToken(java.lang.String pAccessToken)
Method sets attributeaccessToken.- Parameters:
pAccessToken- Value to whichaccessTokenshould be set.- Returns:
Context.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLanguage
public Context.Builder setLanguage(java.util.Locale pLanguage)
Method sets attributelanguage.- Parameters:
pLanguage- Value to whichlanguageshould be set.- Returns:
Context.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setResellerID
public Context.Builder setResellerID(long pResellerID)
Method sets attributeresellerID.- Parameters:
pResellerID- Value to whichresellerIDshould be set.- Returns:
Context.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setPathParam
public Context.Builder setPathParam(long pPathParam)
Method sets attributepathParam.- Parameters:
pPathParam- Value to whichpathParamshould be set.- Returns:
Context.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setQueryParam
public Context.Builder setQueryParam(java.lang.String pQueryParam)
Method sets attributequeryParam.- Parameters:
pQueryParam- Value to whichqueryParamshould be set.- Returns:
Context.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public Context build()
Method creates a new instance of class Context. The object will be initialized with the values of the builder.- Returns:
- Context Created object. The method never returns null.
-
buildValidated
public Context buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class Context. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- Context 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.
-
-