public class NoPermission extends Object implements TypePermission
If the wrapped TypePermission
allows the type, this instance will throw a ForbiddenClassException
instead. An instance of this permission cannot be used to allow a type.
Constructor and Description |
---|
NoPermission(TypePermission permission)
Construct a NoPermission.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allows(Class type)
Check permission for a provided type.
|
public NoPermission(TypePermission permission)
permission
- the permission to negate or null
to forbid any typepublic boolean allows(Class type)
TypePermission
allows
in interface TypePermission
type
- the type to checktrue
if provided type is allowed, false
if permission does not handle the typeCopyright © 2004–2017 XStream. All rights reserved.