Class IfParamEqual
- All Implemented Interfaces:
Provider<ObjectCollection>
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 -
Method Summary
Modifier and TypeMethodDescriptionget()Gets or creates an object of typeT.getKey()getValue()voidsetDictionary(DictionaryProvider dictionary) voidvoidvoidsetWhenEqual(ObjectCollectionProvider whenEqual) voidsetWhenNotEqual(ObjectCollectionProvider whenNotEqual) Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
IfParamEqual
public IfParamEqual()
-
-
Method Details
-
get
Description copied from interface:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException- if the object cannot be returned.
-
getWhenEqual
-
setWhenEqual
-
getWhenNotEqual
-
setWhenNotEqual
-
getDictionary
-
getKey
-
setKey
-
getValue
-
setValue
-