com.semarchy.mdm.runtime.model.logical
Enum AttributeAccessType

java.lang.Object
  extended by java.lang.Enum<AttributeAccessType>
      extended by com.semarchy.mdm.runtime.model.logical.AttributeAccessType
All Implemented Interfaces:
Serializable, Comparable<AttributeAccessType>

public enum AttributeAccessType
extends Enum<AttributeAccessType>

AttributeAccessType enumeration:

Access Types that can be granted for an IEntityAttribute

Author:
sarod

Enum Constant Summary
DENIED
          Denied: Access to attribute is denied (attribute won't be visible)
READ
          Read Only: Attribute can be read but not modified
READ_WRITE
          Read Write: Attribute can be read and can be modified
 
Method Summary
static AttributeAccessType maxPriv(AttributeAccessType pAccessType1, AttributeAccessType pAccessType2)
          Return the most privileged access type
static AttributeAccessType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AttributeAccessType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DENIED

public static final AttributeAccessType DENIED
Denied: Access to attribute is denied (attribute won't be visible)


READ

public static final AttributeAccessType READ
Read Only: Attribute can be read but not modified


READ_WRITE

public static final AttributeAccessType READ_WRITE
Read Write: Attribute can be read and can be modified

Method Detail

values

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

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

valueOf

public static AttributeAccessType 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 name
NullPointerException - if the argument is null

maxPriv

public static AttributeAccessType maxPriv(AttributeAccessType pAccessType1,
                                          AttributeAccessType pAccessType2)
Return the most privileged access type

Parameters:
pAccessType1 -
pAccessType2 -
Returns:


Copyright © 2015. All Rights Reserved.