public class ExplicitTypePermission extends Object implements TypePermission
Constructor and Description |
---|
ExplicitTypePermission(Class[] types) |
ExplicitTypePermission(String[] names) |
Modifier and Type | Method and Description |
---|---|
boolean |
allows(Class type)
Check permission for a provided type.
|
public ExplicitTypePermission(Class[] types)
public ExplicitTypePermission(String[] names)
public 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–2016 XStream. All rights reserved.