Package nl.paston.apollon.model
Class Validation
- java.lang.Object
-
- nl.paston.apollon.model.Validation
-
- All Implemented Interfaces:
Serializable,Cloneable
@Entity public class Validation extends Object implements Serializable, Cloneable
- Author:
- Martijn Burger
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidation.Level
-
Constructor Summary
Constructors Constructor Description Validation()Validation(Validation.Level level, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)Validationclone()booleanequals(Object o)StringgetDescription()longgetId()Validation.LevelgetLevel()StringgetRole()static List<String>getValidationRoles()Provides a list of currently valid validation related rolesinthashCode()voidsetDescription(String description)voidsetId(long id)voidsetLevel(Validation.Level level)voidsetRole(String role)StringtoString()
-
-
-
Constructor Detail
-
Validation
public Validation(Validation.Level level, String description)
-
Validation
public Validation()
-
-
Method Detail
-
getValidationRoles
public static List<String> getValidationRoles()
Provides a list of currently valid validation related roles- Returns:
- - list of the role names
-
clone
public Validation clone()
-
getId
public long getId()
-
getLevel
public Validation.Level getLevel()
-
getDescription
public String getDescription()
-
getRole
public String getRole()
-
setId
public void setId(long id)
-
setLevel
public void setLevel(Validation.Level level)
-
setDescription
public void setDescription(String description)
-
setRole
public void setRole(String role)
-
canEqual
protected boolean canEqual(Object other)
-
-