Class 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> type  
      private java.lang.Object value  
    • 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
      boolean include​(IvmlElement element)
      Returns whether a given element shall be included.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 for
        type - 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: IConfigurationFilter
        Returns whether a given element shall be included.
        Specified by:
        include in interface IConfigurationFilter
        Parameters:
        element - the element to be tested
        Returns:
        true if element shall be included, false else