ReportOutputType.javaprojectforge-business/src/main/java/org/projectforge/business/fibu/kost/reporting/ReportOutputType.java mit Java-Code für die Finanzbuchhaltungsebene.Paket: org.projectforge.business.fibu.kost.reporting
Enums: ReportOutputType
Methoden (3): getOrdinal, getType, getKey
Felder (1): key
Importe: 1 Paket
package org.projectforge.business.fibu.kost.reporting;
import org.apache.commons.lang3.StringUtils;
public enum ReportOutputType
{
PDF("pdf");
private String key;
/**
* @see #ordinal()
*/
public int getOrdinal()
{
return ordinal();
}
/**
* @param s Schlüssel oder toString-Wert des Typs, z. B. "pdf" oder "PDF".
* @return Passender ReportOutputType.
* @throws UnsupportedOperationException wenn kein Typ übereinstimmt.
*/
public static ReportOutputType getType(String s)
{
if (StringUtils.isEmpty(s)) {
return null;
}
for (ReportOutputType type : ReportOutputType.values()) {
if (s.equals(type.toString()) || s.equals(type.getKey())) {
return type;
}
}
throw new UnsupportedOperationException("Unbekannter Berichtstyp: '" + s + "'");
}
/**
* Der Schlüssel wird z. B. für die Internationalisierung (i18n) verwendet.
*
* @return
*/
public String getKey()
{
return key;
}
ReportOutputType(String key)
{
this.key = key;
}
}
868d6abb7 2025 -> 2026 63081666f Quellcode-Dateiköpfe: 2024 -> 2025. b6092df09 Copyright 2023 -> 2024 ab45d51fa Copyright 2001-2022 -> 2001-2023. 5f7ef41b8 Copyright 2021 -> 2022