Class MetadataValuesMatchCondition
- java.lang.Object
-
- org.dspace.content.logic.condition.AbstractCondition
-
- org.dspace.content.logic.condition.MetadataValuesMatchCondition
-
- All Implemented Interfaces:
Condition,LogicalStatement
public class MetadataValuesMatchCondition extends AbstractCondition
A condition that returns true if any pattern in a list of patterns matches any value in a given metadata field- Author:
- Kim Shepherd
-
-
Field Summary
-
Fields inherited from class org.dspace.content.logic.condition.AbstractCondition
collectionService, handleService, itemService
-
-
Constructor Summary
Constructors Constructor Description MetadataValuesMatchCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetResult(Context context, Item item)Return true if any value for a specified field in the item matches any of the specified regex patterns Return false if not-
Methods inherited from class org.dspace.content.logic.condition.AbstractCondition
getParameters, setItemService, setParameters
-
-
-
-
Method Detail
-
getResult
public boolean getResult(Context context, Item item) throws LogicalStatementException
Return true if any value for a specified field in the item matches any of the specified regex patterns Return false if not- Specified by:
getResultin interfaceCondition- Specified by:
getResultin interfaceLogicalStatement- Overrides:
getResultin classAbstractCondition- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean result of evaluation
- Throws:
LogicalStatementException
-
-