public abstract class IfPredicateBase extends MaskProviderUnary
Constructor and Description |
---|
IfPredicateBase() |
Modifier and Type | Method and Description |
---|---|
protected Mask |
createFromMask(Mask mask)
Creates a
Mask given the entity provided by the delegate. |
MaskProvider |
getMaskElse()
Returned instead of
mask if the predicate is not satisfied |
protected abstract boolean |
predicate(Mask mask)
If this evaluates true, the mask will be returned as-is, otherwise
maskElse is
returned |
void |
setMaskElse(MaskProvider maskElse)
Returned instead of
mask if the predicate is not satisfied |
get, getMask, setMask
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected Mask createFromMask(Mask mask) throws ProvisionFailedException
MaskProviderUnary
Mask
given the entity provided by the delegate.createFromMask
in class MaskProviderUnary
mask
- the entity provided by the delegate.Mask
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.protected abstract boolean predicate(Mask mask) throws ProvisionFailedException
maskElse
is
returnedProvisionFailedException
public MaskProvider getMaskElse()
mask
if the predicate is not satisfiedpublic void setMaskElse(MaskProvider maskElse)
mask
if the predicate is not satisfiedCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.