@DoNotObfuscate public enum ComparePermission extends java.lang.Enum<ComparePermission>
This enumeration implements an interface through which other classes operate with the members.
Enum Constant and Description |
---|
ALLOW_ASSEMBLE_DOCUMENTS |
ALLOW_COPY |
ALLOW_DEGRADED_PRINTING |
ALLOW_EXTRACT_CONTENT |
ALLOW_FILL_IN |
ALLOW_MODIFY_ANNOTATIONS |
ALLOW_MODIFY_CONTENT |
ALLOW_PRINTING |
ALLOW_SCREENREADERS |
Modifier and Type | Method and Description |
---|---|
int |
getPermissionFlag()
Returns the numeric value of the instance of this enumeration.
|
boolean |
hasPermission(com.pdfunit.internal.spi.IPermissions permissions)
Returns true when the permission represented by the parameter,
is the same as the permission represented by the instance of
this enumeration.
|
static ComparePermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ComparePermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparePermission ALLOW_DEGRADED_PRINTING
public static final ComparePermission ALLOW_SCREENREADERS
public static final ComparePermission ALLOW_ASSEMBLE_DOCUMENTS
public static final ComparePermission ALLOW_COPY
public static final ComparePermission ALLOW_EXTRACT_CONTENT
public static final ComparePermission ALLOW_FILL_IN
public static final ComparePermission ALLOW_MODIFY_CONTENT
public static final ComparePermission ALLOW_MODIFY_ANNOTATIONS
public static final ComparePermission ALLOW_PRINTING
public static ComparePermission[] values()
for (ComparePermission c : ComparePermission.values()) System.out.println(c);
public static ComparePermission valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean hasPermission(com.pdfunit.internal.spi.IPermissions permissions)
public int getPermissionFlag()
Copyright (C) PDFUnit.com. See here for license.