model
Class Exam

java.lang.Object
  extended by model.Exam
All Implemented Interfaces:
Listable

public class Exam
extends java.lang.Object
implements Listable

Repräsentiert eine Klausur.

Author:
Thorsten Berger

Field Summary
static int ActiveFieldID
           
static int DateFieldID
           
static int IDFieldID
           
static int LocationFieldID
           
static int NameFieldID
           
static int RestriciontFieldID
           
 
Constructor Summary
Exam(int id, java.lang.String name, java.lang.String description, java.lang.String date, java.lang.String location, boolean active, java.util.Properties subscriptionRestrictionProperties)
           
 
Method Summary
static java.lang.String emptyToHyphen(java.lang.String s)
           
 java.lang.String getDate()
           
 java.lang.String getDescription()
           
 java.lang.String[] getFieldDescriptions()
          Enthält die Namen der Felder, die in der Kopfzeile stehen.
 java.lang.String getFieldValue(int i)
          Akt.
 int getId()
           
 java.lang.String getLocation()
           
 java.lang.String getName()
           
static SubscriptionRestriction[] getRestrictionClasses()
           
 java.lang.String getRestrictionMethod()
           
static SubscriptionRestriction getRestrictionObjectByMethod(java.lang.String method)
           
 SubscriptionRestriction getSubscriptionRestriction()
           
 java.util.Properties getSubscriptionRestrictionProperties()
           
 boolean isActive()
           
 boolean RadioButtonSelectable()
          Falls RadioButton gesetzt, ist der auch auswählbar?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NameFieldID

public static final int NameFieldID
See Also:
Constant Field Values

DateFieldID

public static final int DateFieldID
See Also:
Constant Field Values

LocationFieldID

public static final int LocationFieldID
See Also:
Constant Field Values

ActiveFieldID

public static final int ActiveFieldID
See Also:
Constant Field Values

RestriciontFieldID

public static final int RestriciontFieldID
See Also:
Constant Field Values

IDFieldID

public static final int IDFieldID
See Also:
Constant Field Values
Constructor Detail

Exam

public Exam(int id,
            java.lang.String name,
            java.lang.String description,
            java.lang.String date,
            java.lang.String location,
            boolean active,
            java.util.Properties subscriptionRestrictionProperties)
Method Detail

getFieldDescriptions

public java.lang.String[] getFieldDescriptions()
Description copied from interface: Listable
Enthält die Namen der Felder, die in der Kopfzeile stehen. Länge des Arrays bestimmt Anzahl Spalten.

Specified by:
getFieldDescriptions in interface Listable
Returns:

getFieldValue

public java.lang.String getFieldValue(int i)
Description copied from interface: Listable
Akt. Wert der Spalte zurückgeben

Specified by:
getFieldValue in interface Listable
Returns:

RadioButtonSelectable

public boolean RadioButtonSelectable()
Description copied from interface: Listable
Falls RadioButton gesetzt, ist der auch auswählbar?

Specified by:
RadioButtonSelectable in interface Listable
Returns:

getSubscriptionRestriction

public SubscriptionRestriction getSubscriptionRestriction()

getRestrictionMethod

public java.lang.String getRestrictionMethod()

getRestrictionObjectByMethod

public static SubscriptionRestriction getRestrictionObjectByMethod(java.lang.String method)

getDate

public java.lang.String getDate()
Returns:

getDescription

public java.lang.String getDescription()
Returns:

getId

public int getId()
Returns:

getLocation

public java.lang.String getLocation()
Returns:

getName

public java.lang.String getName()
Returns:

isActive

public boolean isActive()
Returns:

getSubscriptionRestrictionProperties

public java.util.Properties getSubscriptionRestrictionProperties()
Returns:

getRestrictionClasses

public static SubscriptionRestriction[] getRestrictionClasses()
Returns:

emptyToHyphen

public static java.lang.String emptyToHyphen(java.lang.String s)