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.
|
public NoPermission(TypePermission permission)
permission - the permission to negate or null to forbid any typepublic boolean allows(Class type)
TypePermissionallows in interface TypePermissiontype - the type to checktrue if provided type is allowed, false if permission does not handle the typeCopyright © 2004-2014 XStream. All Rights Reserved.