com.sap.sl.sdk.authoring.security
Enum PrincipalType

java.lang.Object
  extended by java.lang.Enum<PrincipalType>
      extended by com.sap.sl.sdk.authoring.security.PrincipalType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PrincipalType>

public enum PrincipalType
extends java.lang.Enum<PrincipalType>

A representation of the literals of the enumeration 'Principal Type', and utility methods for working with them.

See Also:
com.sap.sl.sdk.authoring.security.internal.emf.impl.SecurityPackageImpl#getPrincipalType()

Enum Constant Summary
USER
          The 'User' literal object.
USER_GROUP
          The 'User Group' literal object.
 
Field Summary
static int USER_GROUP_VALUE
          The 'User Group' literal value.
static int USER_VALUE
          The 'User' literal value.
static java.util.List<PrincipalType> VALUES
          A public read-only list of all the 'Principal Type' enumerators.
 
Method Summary
static PrincipalType get(int value)
          Returns the 'Principal Type' literal with the specified integer value.
static PrincipalType get(java.lang.String literal)
          Returns the 'Principal Type' literal with the specified literal value.
static PrincipalType getByName(java.lang.String name)
          Returns the 'Principal Type' literal with the specified name.
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static PrincipalType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PrincipalType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USER

public static final PrincipalType USER
The 'User' literal object.

See Also:
USER_VALUE

USER_GROUP

public static final PrincipalType USER_GROUP
The 'User Group' literal object.

See Also:
USER_GROUP_VALUE
Field Detail

USER_VALUE

public static final int USER_VALUE
The 'User' literal value.

If the meaning of 'User' literal object isn't clear, there really should be more of a description here...

See Also:
USER, Constant Field Values

USER_GROUP_VALUE

public static final int USER_GROUP_VALUE
The 'User Group' literal value.

If the meaning of 'User Group' literal object isn't clear, there really should be more of a description here...

See Also:
USER_GROUP, Constant Field Values

VALUES

public static final java.util.List<PrincipalType> VALUES
A public read-only list of all the 'Principal Type' enumerators.

Method Detail

values

public static PrincipalType[] 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 (PrincipalType c : PrincipalType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PrincipalType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

get

public static PrincipalType get(java.lang.String literal)
Returns the 'Principal Type' literal with the specified literal value.


getByName

public static PrincipalType getByName(java.lang.String name)
Returns the 'Principal Type' literal with the specified name.


get

public static PrincipalType get(int value)
Returns the 'Principal Type' literal with the specified integer value.


getValue

public int getValue()


getName

public java.lang.String getName()


getLiteral

public java.lang.String getLiteral()


toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<PrincipalType>


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.