Package org.ehrbase.webtemplate.model
Enum ProportionType
- java.lang.Object
-
- java.lang.Enum<ProportionType>
-
- org.ehrbase.webtemplate.model.ProportionType
-
- All Implemented Interfaces:
Serializable,Comparable<ProportionType>
public enum ProportionType extends Enum<ProportionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FRACTIONINTEGER_FRACTIONPERCENTRATIOUNITARY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProportionTypefindById(int id)Optional<WebTemplateValidation>getDenominatorValidator()intgetId()StringgetWebTemplateName()static ProportionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ProportionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RATIO
public static final ProportionType RATIO
-
UNITARY
public static final ProportionType UNITARY
-
PERCENT
public static final ProportionType PERCENT
-
FRACTION
public static final ProportionType FRACTION
-
INTEGER_FRACTION
public static final ProportionType INTEGER_FRACTION
-
-
Method Detail
-
values
public static ProportionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProportionType c : ProportionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProportionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()
-
getWebTemplateName
public String getWebTemplateName()
-
getDenominatorValidator
public Optional<WebTemplateValidation> getDenominatorValidator()
-
findById
public static ProportionType findById(int id)
-
-