Class Condition.ResourceType

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

    public static class Condition.ResourceType
    extends Object
    implements Condition
    checks that the resources primary type matches the pattern
    • Field Detail

      • pattern

        protected final String pattern
    • Constructor Detail

      • ResourceType

        public ResourceType​(@NotNull
                            @NotNull String pattern)
    • Method Detail

      • accept

        public boolean accept​(@NotNull
                              @NotNull BeanContext context,
                              @NotNull
                              @NotNull org.apache.sling.api.resource.Resource resource)
        Description copied from interface: Condition
        check the configured condition for the given resource
        Specified by:
        accept in interface Condition