ch.codeblock.qrinvoice.rest.model.FontFamily Maven / Gradle / Ivy
/*-
* #%L
* QR Invoice Solutions
* %%
* Copyright (C) 2017 - 2019 Codeblock GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* -
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* -
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
* -
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses are available for this software. These replace the above
* AGPLv3 terms and offer support, maintenance and allow the use in commercial /
* proprietary products.
* -
* More information on commercial licenses are available at the following page:
* https://www.qr-invoice.ch/licenses/
* #L%
*/
package ch.codeblock.qrinvoice.rest.model;
@javax.annotation.Generated(value = "ch.codeblock.qrinvoice.tools.ch.codeblock.qrinvoice.tools.generator.RestModelGenerator", date = "2018-03-17T21:32:56.057")
public enum FontFamily {
HELVETICA("HELVETICA"),
ARIAL("ARIAL");
private final String code;
FontFamily(final String code) {
this.code = code;
}
public String getCode() {
return code;
}
@Override
@com.fasterxml.jackson.annotation.JsonValue
public String toString() {
return String.valueOf(code);
}
@com.fasterxml.jackson.annotation.JsonCreator
public static FontFamily fromValue(String text) {
for (FontFamily b : FontFamily.values()) {
if (String.valueOf(b.code).equals(text)) {
return b;
}
}
return null;
}
}