Class TypeHierarchyPermission

  • All Implemented Interfaces:
    TypePermission

    public class TypeHierarchyPermission
    extends java.lang.Object
    implements TypePermission
    Permission for a type hierarchy with a name matching one in the provided list.
    Since:
    1.4.7
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class type  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean allows​(java.lang.Class type)
      Check permission for a provided type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        private java.lang.Class type
    • Constructor Detail

      • TypeHierarchyPermission

        public TypeHierarchyPermission​(java.lang.Class type)
        Since:
        1.4.7
    • Method Detail

      • allows

        public boolean allows​(java.lang.Class type)
        Description copied from interface: TypePermission
        Check permission for a provided type.
        Specified by:
        allows in interface TypePermission
        Parameters:
        type - the type to check
        Returns:
        true if provided type is allowed, false if permission does not handle the type