Class Condition.MergedResource

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

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

      • MergedResource

        public MergedResource()
    • Method Detail

      • accept

        public boolean accept​(@NotNull
                              @NotNull com.composum.sling.core.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