Class PropertyMatcherCondition
- java.lang.Object
-
- com.norconex.commons.lang.xml.flow.impl.PropertyMatcherCondition
-
- All Implemented Interfaces:
IXMLConfigurable,Predicate<Properties>
public class PropertyMatcherCondition extends Object implements Predicate<Properties>, IXMLConfigurable
A simple XML condition matchingPropertieskeys and values.- Since:
- 2.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description PropertyMatcherCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)inthashCode()voidloadFromXML(XML xml)Load XML configuration values and initialized this object with them.voidsaveToXML(XML xml)Saves this object as XML.booleantest(Properties props)StringtoString()
-
-
-
Method Detail
-
test
public boolean test(Properties props)
- Specified by:
testin interfacePredicate<Properties>
-
loadFromXML
public void loadFromXML(XML xml)
Description copied from interface:IXMLConfigurableLoad XML configuration values and initialized this object with them.- Specified by:
loadFromXMLin interfaceIXMLConfigurable- Parameters:
xml- the XML to load into this object
-
saveToXML
public void saveToXML(XML xml)
Description copied from interface:IXMLConfigurableSaves this object as XML.- Specified by:
saveToXMLin interfaceIXMLConfigurable- Parameters:
xml- the XML that will representing this object
-
-