EN · DE · RU · FR · ES

#414: KontoStatus.java

projectforge-business/src/main/java/org/projectforge/business/fibu/KontoStatus.java Type: Java · Role: Financial Accounting · Source: projectforge-business/src/main/java/org/projectforge/business/fibu/KontoStatus.java 62 lines · 28 code · 26 comments · 8 blank
Source code file at projectforge-business/src/main/java/org/projectforge/business/fibu/KontoStatus.java containing Java code for the Financial Accounting layer.

Code Structure

Package: org.projectforge.business.fibu

Enums: KontoStatus

Implements: I18nEnum

Methods (3): getKey, getI18nKey, isIn

Fields (1): key

Imports: 1 packages

Source Code (abridged)

package org.projectforge.business.fibu;

import org.projectforge.common.i18n.I18nEnum;

public enum KontoStatus implements I18nEnum
{
  ACTIVE("active"), NONACTIVE("nonactive");

  private String key;

  /**
   * The key will be used e. g. for i18n.
   * @return
   */
  public String getKey()
  {
    return key;
  }

  public String getI18nKey()
  {
    return "fibu.konto.status." + key;
  };

  KontoStatus(final String key)
  {
    this.key = key;
  }

  public boolean isIn(final KontoStatus... status)
  {
    for (final KontoStatus st : status) {
      if (this == st) {
        return true;
      }
    }
    return false;
  }
}

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022