Class IfParamEqual

Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
IfParamEqual
All Implemented Interfaces:
Provider<ObjectCollection>

public class IfParamEqual extends ObjectCollectionProvider
Multiplexes between two object-collection-providers depending on whether a parameter value equals a particular string

If the parameter value doesn't exist or is null, an exception is thrown.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ObjectCollection
    get()
     
    DictionaryProvider
     
     
     
    ObjectCollectionProvider
     
    ObjectCollectionProvider
     
    void
    setDictionary(DictionaryProvider dictionary)
     
    void
     
    void
     
    void
    setWhenEqual(ObjectCollectionProvider whenEqual)
     
    void
    setWhenNotEqual(ObjectCollectionProvider whenNotEqual)
     

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • IfParamEqual

      public IfParamEqual()
  • Method Details

    • get

      public ObjectCollection get() throws ProvisionFailedException
      Throws:
      ProvisionFailedException
    • getWhenEqual

      public ObjectCollectionProvider getWhenEqual()
    • setWhenEqual

      public void setWhenEqual(ObjectCollectionProvider whenEqual)
    • getWhenNotEqual

      public ObjectCollectionProvider getWhenNotEqual()
    • setWhenNotEqual

      public void setWhenNotEqual(ObjectCollectionProvider whenNotEqual)
    • getDictionary

      public DictionaryProvider getDictionary()
    • setDictionary

      public void setDictionary(DictionaryProvider dictionary)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)