Class AssignableFromAttributePredicate
java.lang.Object
de.hybris.platform.cmsfacades.types.service.predicate.AssignableFromAttributePredicate
- All Implemented Interfaces:
Predicate<AttributeDescriptorModel>
public class AssignableFromAttributePredicate
extends Object
implements Predicate<AttributeDescriptorModel>
Predicate to test if an attribute type is assignable from the input
typeCode passed from
the configuration. If matches, will return true else false.
Optionally it will check as well whether the declaring enclosing type is assignable from enclosingTypeCode passed from
the configuration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributeDescriptorModelHelperServiceprotected Stringprotected Stringprotected TypeServicevoidsetAttributeDescriptorModelHelperService(AttributeDescriptorModelHelperService attributeDescriptorModelHelperService) voidsetEnclosingTypeCode(String enclosingTypeCode) voidsetTypeCode(String typeCode) voidsetTypeService(TypeService typeService) booleantest(AttributeDescriptorModel attributeDescriptor)
-
Constructor Details
-
AssignableFromAttributePredicate
public AssignableFromAttributePredicate()
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<AttributeDescriptorModel>
-
getTypeCode
-
setTypeCode
-
getEnclosingTypeCode
-
setEnclosingTypeCode
-
getAttributeDescriptorModelHelperService
-
setAttributeDescriptorModelHelperService
public void setAttributeDescriptorModelHelperService(AttributeDescriptorModelHelperService attributeDescriptorModelHelperService) -
getTypeService
-
setTypeService
-