Class MetadataValueMatchCondition
java.lang.Object
org.dspace.content.logic.condition.AbstractCondition
org.dspace.content.logic.condition.MetadataValueMatchCondition
- All Implemented Interfaces:
Condition,LogicalStatement
A condition that returns true if a pattern (regex) 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 -
Method Summary
Methods inherited from class org.dspace.content.logic.condition.AbstractCondition
getParameters, setItemService, setParameters
-
Constructor Details
-
MetadataValueMatchCondition
public MetadataValueMatchCondition()
-
-
Method Details
-
getResult
Return true if any value for a specified field in the item matches a specified regex pattern 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
-