org.foray.ps
Enum PsAccess

java.lang.Object
  extended by java.lang.Enum<PsAccess>
      extended by org.foray.ps.PsAccess
All Implemented Interfaces:
Serializable, Comparable<PsAccess>

public enum PsAccess
extends Enum<PsAccess>

Enumeration of possible access values for a PostScript object.

See Also:
"PostScript Language Reference Manual, 2nd ed., Section 3.3.2."

Enum Constant Summary
EXECUTE_ONLY
          Access permission of "execute only".
NONE
          Access permission of "none".
READ_ONLY
          Access permission of "read only".
UNLIMITED
          Access permission of "unlimited".
 
Method Summary
 int getPrivilege()
          Returns the relative degree of privilege of this access code.
static PsAccess valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PsAccess[] 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

NONE

public static final PsAccess NONE
Access permission of "none".


EXECUTE_ONLY

public static final PsAccess EXECUTE_ONLY
Access permission of "execute only".


READ_ONLY

public static final PsAccess READ_ONLY
Access permission of "read only".


UNLIMITED

public static final PsAccess UNLIMITED
Access permission of "unlimited".

Method Detail

values

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

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

valueOf

public static PsAccess 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

getPrivilege

public int getPrivilege()
Returns the relative degree of privilege of this access code.

Returns:
The relative degree of privilege of this access code.


Copyright © 2017. All rights reserved.