Class ValueFilter
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.configuration.ValueFilter
-
- All Implemented Interfaces:
IConfigurationFilter
class ValueFilter extends java.lang.Object implements IConfigurationFilter
A value filter for assigned IVML configuration values.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<? extends IvmlElement>typeprivate java.lang.Objectvalue
-
Constructor Summary
Constructors Constructor Description ValueFilter(java.lang.Object value, java.lang.Class<? extends IvmlElement> type)A filter for configuration values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninclude(IvmlElement element)Returns whether a given element shall be included.
-
-
-
Field Detail
-
value
private java.lang.Object value
-
type
private java.lang.Class<? extends IvmlElement> type
-
-
Constructor Detail
-
ValueFilter
public ValueFilter(java.lang.Object value, java.lang.Class<? extends IvmlElement> type)A filter for configuration values.- Parameters:
value- the value to filter fortype- an optional type for the elements to be included, e.g., attributes only (may be null the elements shall not be filtered for a specific type)
-
-
Method Detail
-
include
public boolean include(IvmlElement element)
Description copied from interface:IConfigurationFilterReturns whether a given element shall be included.- Specified by:
includein interfaceIConfigurationFilter- Parameters:
element- the element to be tested- Returns:
trueifelementshall be included,falseelse
-
-