Class XAttributableContainsKeyWithValueXFilterImpl<T extends org.deckfour.xes.model.XAttributable>

  • Type Parameters:
    T - XAttributable object
    All Implemented Interfaces:
    java.lang.Cloneable, Filter<T>, XAttributableFilter<T>, XFilter<T>

    public class XAttributableContainsKeyWithValueXFilterImpl<T extends org.deckfour.xes.model.XAttributable>
    extends java.lang.Object
    implements XAttributableFilter<T>
    The XAttributableContainsKeyWithValueXFilterImpl class checks whether an XAttributable object contains a given pair. If the object contains the pair, the apply method will return the object (that is mirrored). If the object does not contain the pair, the apply method will return null.
    Author:
    S.J. van Zelst
    • Field Detail

      • key

        protected java.lang.String key
      • strVal

        protected java.lang.String strVal
      • boolVal

        protected java.lang.Boolean boolVal
    • Constructor Detail

      • XAttributableContainsKeyWithValueXFilterImpl

        public XAttributableContainsKeyWithValueXFilterImpl​(java.lang.String key,
                                                            java.lang.String value)
      • XAttributableContainsKeyWithValueXFilterImpl

        public XAttributableContainsKeyWithValueXFilterImpl​(java.lang.String key,
                                                            boolean value)
    • Method Detail

      • clone

        public XAttributableFilter<T> clone()
        Description copied from interface: Filter
        Create this filter's clone.
        Specified by:
        clone in interface Filter<T extends org.deckfour.xes.model.XAttributable>
        Overrides:
        clone in class java.lang.Object
        Returns:
        clone of filter.
      • apply

        public T apply​(T t)
        Apply method, will return (t) iff is contained by the given XAttributable t. Will return null if t does not contain .
        Specified by:
        apply in interface Filter<T extends org.deckfour.xes.model.XAttributable>
        Parameters:
        t - input object of type T
        Returns:
        return object of type T