Esempio n. 1
0
 static {
   sdkValues = new HashMap<String, SignatureStyle>();
   sdkValues.put(ACCEPTANCE.name(), ACCEPTANCE);
   sdkValues.put(HAND_DRAWN.name(), HAND_DRAWN);
   sdkValues.put(FULL_NAME.name(), FULL_NAME);
   sdkValues.put(INITIALS.name(), INITIALS);
   sdkValues.put(MOBILE_CAPTURE.name(), MOBILE_CAPTURE);
 }
Esempio n. 2
0
  public static SignatureStyle fromAPIFieldSubType(String subtype) {
    if (subtype == null) {
      return null;
    }

    for (SignatureStyle signatureStyle : values()) {
      if (subtype.equals(signatureStyle.getApiValue())) {
        return signatureStyle;
      }
    }
    return SignatureStyle.UNRECOGNIZED(subtype);
  }