Class GenericTypePredicate<T extends ItemModel>

java.lang.Object
de.hybris.platform.cms2.common.predicates.GenericTypePredicate<T>
All Implemented Interfaces:
Predicate<T>
Direct Known Subclasses:
AbstractPageTypePredicate, CategoryPageTypePredicate, CMSComponentTypePredicate, CMSItemTypePredicate, CMSWorkflowCommentPredicate, ContentPageTypePredicate, ContentSlotForPagePredicate, ContentSlotPredicate, ProductCarouselComponentTypePredicate, ProductPageTypePredicate, RestrictionPredicate, SimpleCMSComponentTypePredicate

public class GenericTypePredicate<T extends ItemModel> extends Object implements Predicate<T>
Generic predicate to identify if the provided item model is an instance of provided type code.
  • Constructor Details

    • GenericTypePredicate

      public GenericTypePredicate()
  • Method Details

    • test

      public boolean test(T itemModel)
      Specified by:
      test in interface Predicate<T extends ItemModel>
    • getTypeService

      protected TypeService getTypeService()
    • setTypeService

      public void setTypeService(TypeService typeService)
    • getTypeCode

      protected String getTypeCode()
    • setTypeCode

      public void setTypeCode(String typeCode)