Enum SubjectRole
- java.lang.Object
-
- java.lang.Enum<SubjectRole>
-
- org.openehealth.ipf.commons.ihe.xacml20.model.SubjectRole
-
- All Implemented Interfaces:
Serializable,Comparable<SubjectRole>
public enum SubjectRole extends Enum<SubjectRole>
- Author:
- Dmytro Rud
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSISTANTDOCUMENT_ADMINPATIENTPOLICY_ADMINPROFESSIONALREPRESENTATIVETECHNICAL_USER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubjectRolefromCode(CE code)CEgetCode()static SubjectRolevalueOf(String name)Returns the enum constant of this type with the specified name.static SubjectRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PATIENT
public static final SubjectRole PATIENT
-
PROFESSIONAL
public static final SubjectRole PROFESSIONAL
-
ASSISTANT
public static final SubjectRole ASSISTANT
-
REPRESENTATIVE
public static final SubjectRole REPRESENTATIVE
-
DOCUMENT_ADMIN
public static final SubjectRole DOCUMENT_ADMIN
-
POLICY_ADMIN
public static final SubjectRole POLICY_ADMIN
-
TECHNICAL_USER
public static final SubjectRole TECHNICAL_USER
-
-
Method Detail
-
values
public static SubjectRole[] 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 (SubjectRole c : SubjectRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubjectRole 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
-
fromCode
public static SubjectRole fromCode(CE code)
-
getCode
public CE getCode()
-
-