Class AssignableFromAttributePredicate
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.service.predicate.AssignableFromAttributePredicate
-
- All Implemented Interfaces:
java.util.function.Predicate<AttributeDescriptorModel>
public class AssignableFromAttributePredicate extends java.lang.Object implements java.util.function.Predicate<AttributeDescriptorModel>
Predicate to test if an attribute type is assignable from the inputtypeCodepassed from the configuration. If matches, will return true else false. Optionally it will check as well whether the declaring enclosing type is assignable fromenclosingTypeCodepassed from the configuration
-
-
Constructor Summary
Constructors Constructor Description AssignableFromAttributePredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttributeDescriptorModelHelperServicegetAttributeDescriptorModelHelperService()protected java.lang.StringgetEnclosingTypeCode()protected java.lang.StringgetTypeCode()protected TypeServicegetTypeService()voidsetAttributeDescriptorModelHelperService(AttributeDescriptorModelHelperService attributeDescriptorModelHelperService)voidsetEnclosingTypeCode(java.lang.String enclosingTypeCode)voidsetTypeCode(java.lang.String typeCode)voidsetTypeService(TypeService typeService)booleantest(AttributeDescriptorModel attributeDescriptor)
-
-
-
Method Detail
-
test
public boolean test(AttributeDescriptorModel attributeDescriptor)
- Specified by:
testin interfacejava.util.function.Predicate<AttributeDescriptorModel>
-
getTypeCode
protected java.lang.String getTypeCode()
-
setTypeCode
public void setTypeCode(java.lang.String typeCode)
-
getEnclosingTypeCode
protected java.lang.String getEnclosingTypeCode()
-
setEnclosingTypeCode
public void setEnclosingTypeCode(java.lang.String enclosingTypeCode)
-
getAttributeDescriptorModelHelperService
protected AttributeDescriptorModelHelperService getAttributeDescriptorModelHelperService()
-
setAttributeDescriptorModelHelperService
public void setAttributeDescriptorModelHelperService(AttributeDescriptorModelHelperService attributeDescriptorModelHelperService)
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-