34 | * Note: This might be replaced by utility method from commons-lang or guava someday 35 | * if one of those libraries is added as dependency. 36 | *
37 | * 38 | * @param array The array of strings 39 | * @param separator The separator 40 | * @return the resulting string 41 | */ 42 | public static String join(String[] array, String separator) { 43 | int len = array.length; 44 | if (len == 0) { 45 | return ""; 46 | } 47 | 48 | StringBuilder out = new StringBuilder(); 49 | out.append(array[0]); 50 | for (int i = 1; i < len; i++) { 51 | out.append(separator).append(array[i]); 52 | } 53 | return out.toString(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/webforms/model/WebFormAdmType.java: -------------------------------------------------------------------------------- 1 | package com.docusign.webforms.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | 10 | /** 11 | * Type used at ADM model as ComponentType decorator. \"String\", \"Boolean\", \"Double\", \"DateTime\", ArrayOfString\" are deprecated. 12 | */ 13 | public enum WebFormAdmType { 14 | 15 | STRING("String"), 16 | 17 | BOOLEAN("Boolean"), 18 | 19 | DOUBLE("Double"), 20 | 21 | DATETIME("DateTime"), 22 | 23 | ARRAYOFSTRING("ArrayOfString"), 24 | 25 | CHECKBOXGROUP("CheckboxGroup"), 26 | 27 | DATE("Date"), 28 | 29 | EMAIL("Email"), 30 | 31 | NUMBER("Number"), 32 | 33 | RADIOBUTTONGROUP("RadioButtonGroup"), 34 | 35 | SELECT("Select"), 36 | 37 | TEXTBOX("TextBox"); 38 | 39 | private String value; 40 | 41 | WebFormAdmType(String value) { 42 | this.value = value; 43 | } 44 | 45 | @JsonValue 46 | public String getValue() { 47 | return value; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return String.valueOf(value); 53 | } 54 | 55 | @JsonCreator 56 | public static WebFormAdmType fromValue(String value) { 57 | for (WebFormAdmType b : WebFormAdmType.values()) { 58 | if (b.value.equals(value)) { 59 | return b; 60 | } 61 | } 62 | return null; 63 | } 64 | } 65 | 66 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/webforms/model/Tags.java: -------------------------------------------------------------------------------- 1 | package com.docusign.webforms.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import io.swagger.v3.oas.annotations.media.Schema; 6 | 7 | /** 8 | * List of tags provided by the user with each request. This field is optional.. 9 | * 10 | */ 11 | @Schema(description = "List of tags provided by the user with each request. This field is optional.") 12 | 13 | public class Tags extends java.util.ArrayList
38 | * Note: If you make changes to the object mapper, remember to set it back via
39 | * setObjectMapper in order to trigger HTTP client rebuilding.
40 | *