Class CalendarContentTypesEnumerator.MandatoryAttributePredicate
- java.lang.Object
-
- org.ametys.plugins.calendar.enumerators.CalendarContentTypesEnumerator.MandatoryAttributePredicate
-
- All Implemented Interfaces:
Predicate
- Enclosing class:
- CalendarContentTypesEnumerator
public class CalendarContentTypesEnumerator.MandatoryAttributePredicate extends Object implements Predicate
Predicate that test if the requested attribute is in the content type and if its type is correct.
-
-
Field Summary
Fields Modifier and Type Field Description private ContentType
_contentType
-
Constructor Summary
Constructors Modifier Constructor Description protected
MandatoryAttributePredicate(ContentType contentType)
Build aMandatoryAttributePredicate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
_isDefined(String attributeName)
private boolean
_isTypeCorrect(String attributeName)
boolean
evaluate(Object object)
-
-
-
Field Detail
-
_contentType
private ContentType _contentType
-
-
Constructor Detail
-
MandatoryAttributePredicate
protected MandatoryAttributePredicate(ContentType contentType)
Build aMandatoryAttributePredicate
- Parameters:
contentType
- The ContentType to check against.
-
-
Method Detail
-
_isDefined
private boolean _isDefined(String attributeName)
-
_isTypeCorrect
private boolean _isTypeCorrect(String attributeName)
-
-