Class RegexpStructureTypeAttributePredicate
- java.lang.Object
-
- de.hybris.platform.cmsfacades.types.service.predicate.RegexpStructureTypeAttributePredicate
-
- All Implemented Interfaces:
java.util.function.Predicate<AttributeDescriptorModel>
public class RegexpStructureTypeAttributePredicate extends java.lang.Object implements java.util.function.Predicate<AttributeDescriptorModel>
Predicate to test if the declaring enclosing typeItemModel._TYPECODEand the attribute type match with{CMS_TYPECODE}@{ATTRIBUTE_ITEMTYPE}:{ATTRIBUTE_TYPECODE}. Thepatternattribute is regular expression String that will be matched against the enclosing type' TYPECODE and the combination of the attribute's item type and type code. For example, suppose that in an instance of this Predicate, thepatternis.*@AtomicType:java.lang.String. Then this Predicate will returntruefor all any Item Type that has an attribute of thejava.lang.StringJava type.
-
-
Constructor Summary
Constructors Constructor Description RegexpStructureTypeAttributePredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetPattern()voidsetPattern(java.lang.String pattern)booleantest(AttributeDescriptorModel attributeDescriptor)
-
-
-
Method Detail
-
test
public boolean test(AttributeDescriptorModel attributeDescriptor)
- Specified by:
testin interfacejava.util.function.Predicate<AttributeDescriptorModel>
-
getPattern
protected java.lang.String getPattern()
-
setPattern
public void setPattern(java.lang.String pattern)
-
-