public class ExplicitTypePermission extends java.lang.Object implements TypePermission
Constructor and Description |
---|
ExplicitTypePermission(java.lang.String... names) |
Modifier and Type | Method and Description |
---|---|
boolean |
allows(java.lang.Class<?> type)
Check permission for a provided type.
|
public ExplicitTypePermission(java.lang.String... names)
public boolean allows(java.lang.Class<?> type)
TypePermission
allows
in interface TypePermission
type
- the type to checktrue
if provided type is allowed, false
if permission does not handle the typeJoe Walnes, http://xstream.codehaus.org/