Class BeanParameter.Builder

  • Enclosing class:
    BeanParameter

    public static class BeanParameter.Builder
    extends java.lang.Object
    Class implements builder to create a new instance of class BeanParameter.
    • Method Detail

      • setLanguage

        public BeanParameter.Builder setLanguage​(java.util.Locale pLanguage)
        Method sets attribute language.
        Parameters:
        pLanguage - Value to which language should be set.
        Returns:
        BeanParameter.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setOldStyle

        @Deprecated
        public BeanParameter.Builder setOldStyle​(java.lang.String pOldStyle)
        Deprecated.
        Method sets attribute oldStyle.
        Parameters:
        pOldStyle - Value to which oldStyle should be set.
        Returns:
        BeanParameter.Builder Instance of this builder to support chaining setters. Method never returns null.
      • build

        public BeanParameter build()
        Method creates a new instance of class BeanParameter. The object will be initialized with the values of the builder.
        Returns:
        BeanParameter Created object. The method never returns null.
      • buildValidated

        public BeanParameter buildValidated()
                                     throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class BeanParameter. The object will be initialized with the values of the builder and validated afterwards.
        Returns:
        BeanParameter 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.