Class RuleDefImpl

java.lang.Object
de.consist.bmu.rule.def.RuleDefImpl
All Implemented Interfaces:
RuleDef, Serializable

public class RuleDefImpl extends Object implements RuleDef
Klasse fuer die Regeldefinition. Wird mit jaxb als xml serialisiert. FIXME Macht die BMU-Version hier Sinn?
See Also:
  • Constructor Details

    • RuleDefImpl

      public RuleDefImpl()
      Konstruktor.
    • RuleDefImpl

      public RuleDefImpl(String id, String name, List<String> docTypes, boolean enabled, Date keyDate, boolean cancel, MeldungTyp meldung, String beschreibung, Date keyToDate, boolean useSignatureDate)
      Parameters:
      id - int
      name - String
      docTypes - List
      enabled - boolean
      keyDate - Date
      cancel - boolean
      meldung - MeldungTyp
      beschreibung - String
    • RuleDefImpl

      public RuleDefImpl(RuleDef source)
      Copy-Konstruktor.
      Parameters:
      source - RuleDef
  • Method Details

    • getId

      public final String getId()
      Specified by:
      getId in interface RuleDef
      Returns:
      the id
    • setId

      public final void setId(String id)
      Specified by:
      setId in interface RuleDef
      Parameters:
      id - the id to set
    • getName

      public final String getName()
      Specified by:
      getName in interface RuleDef
      Returns:
      the name
    • setName

      public final void setName(String name)
      Specified by:
      setName in interface RuleDef
      Parameters:
      name - the name to set
    • getDocTypes

      public final List<String> getDocTypes()
      Specified by:
      getDocTypes in interface RuleDef
      Returns:
      docTypes
    • setDocTypes

      public final void setDocTypes(List<String> docTypes)
      Specified by:
      setDocTypes in interface RuleDef
      Parameters:
      docTypes - the docTypes to set
    • isEnabled

      public final boolean isEnabled()
      Specified by:
      isEnabled in interface RuleDef
      Returns:
      the enabled
    • setEnabled

      public final void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface RuleDef
      Parameters:
      enabled - the enabled to set
    • getKeyDate

      public final Date getKeyDate()
      Gibt den Stichtag zurück.
      Specified by:
      getKeyDate in interface RuleDef
      Returns:
      the keyDate
    • setKeyDate

      public final void setKeyDate(Date keyDate)
      Setzt den Stichtag der Regel.
      Specified by:
      setKeyDate in interface RuleDef
      Parameters:
      keyDate - the keyDate to set
    • isAbbruch

      public final boolean isAbbruch()
      Specified by:
      isAbbruch in interface RuleDef
      Returns:
      true wenn Pruefung bei Fehler abgebrochen werden soll, sonst false
    • setAbbruch

      public final void setAbbruch(boolean cancel)
      Specified by:
      setAbbruch in interface RuleDef
      Parameters:
      cancel - boolean
    • getMeldung

      public final MeldungTyp getMeldung()
      Specified by:
      getMeldung in interface RuleDef
      Returns:
      the meldung
    • setMeldung

      public final void setMeldung(MeldungTyp meldung)
      Specified by:
      setMeldung in interface RuleDef
      Parameters:
      meldung - the meldung to set
    • getVersion

      public final BMUVersion getVersion()
      FIXME Macht das hier Sinn?
      Specified by:
      getVersion in interface RuleDef
      Returns:
      die Version
    • getBeschreibung

      public final String getBeschreibung()
      In der Konfiguration im Element <Info>.
      Specified by:
      getBeschreibung in interface RuleDef
      Returns:
      Die Beschreibung
    • setBeschreibung

      public final void setBeschreibung(String beschreibung)
      In der Konfiguration im Element <Info>.
      Specified by:
      setBeschreibung in interface RuleDef
      Parameters:
      beschreibung - Die Beschreibung
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • getKeyToDate

      public Date getKeyToDate()
      Liefert das Datum bis zu dem eine Regel angewendet werden soll.
      Specified by:
      getKeyToDate in interface RuleDef
      Returns:
      the keyToDate
    • setKeyToDate

      public void setKeyToDate(Date keyToDate)
      Setzt das Datum bis zu dem eine Regel angewendet werden soll.
      Specified by:
      setKeyToDate in interface RuleDef
      Parameters:
      keyToDate - Das Datum
    • getUseSignatureDate

      public boolean getUseSignatureDate()
      Gibt zurueck, ob das Datum der zu pruefenden Signatur (true) oder das Dokumentendatum (false) fuer die Stichtagsermittlung verwendet werden soll.
      Specified by:
      getUseSignatureDate in interface RuleDef
      Returns:
      useSignatureDate
    • setUseSignatureDate

      public void setUseSignatureDate(boolean useSignatureDate)
      Legt fest, ob das Datum der zu pruefenden Signatur oder das Dokumentendatum fuer die Stichtagsermittlung verwendet werden soll.
      Specified by:
      setUseSignatureDate in interface RuleDef
      Parameters:
      useSignatureDate - boolean