Class Condition.PrimaryType

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

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

      • pattern

        protected final String pattern
    • Constructor Detail

      • PrimaryType

        public PrimaryType​(@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