model
Class Exam
java.lang.Object
model.Exam
- All Implemented Interfaces:
- Listable
public class Exam
- extends java.lang.Object
- implements Listable
Repräsentiert eine Klausur.
- Author:
- Thorsten Berger
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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)