Package net.simplace.sim.check
Class DefaultChecker
java.lang.Object
net.simplace.sim.check.FWChecker
net.simplace.sim.check.DefaultChecker
Default empty implementation of a check helper that does actually nothing
- Author:
- Andreas Enders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NumbercheckLimits(FWSimVariable<?> aSource, Number aValue, Number aMin, Number aMax) Returns false if aValue is NaN or outside limits.protected booleancheckParametersInScript(Collection<String> aAllowedFields, Collection<String> aForbiddenFields, String aJexlScript) Returns false if parameters in the Script are not in AllowedFields exclusive or they are in ForbiddenFieldsprotected booleancheckSource(FWSimVariable<?> aTarget, FWSimFieldContainer aSimFieldContainer, FWSimFieldContainer aSource) Returns false if the owning container: .protected booleancheckWriteProtectionOnContentType(FWSimVariable<?> aTarget, FWSimVariable.CONTENT_TYPE aContentType, FWSimFieldContainer aSource) Returns false if the content type makes the variable write protected
-
Constructor Details
-
DefaultChecker
public DefaultChecker()
-
-
Method Details
-
checkLimits
protected Number checkLimits(FWSimVariable<?> aSource, Number aValue, Number aMin, Number aMax) throws SimValueOutOfRangeException Description copied from class:FWCheckerReturns false if aValue is NaN or outside limits. Limits that are null are ignored.- Specified by:
checkLimitsin classFWChecker- Returns:
- if limits are checked valid - if level < LAZY no check is performed (return true)
- Throws:
SimValueOutOfRangeException
-
checkSource
protected boolean checkSource(FWSimVariable<?> aTarget, FWSimFieldContainer aSimFieldContainer, FWSimFieldContainer aSource) throws SimLinkInvalidException Description copied from class:FWCheckerReturns false if the owning container: .- Specified by:
checkSourcein classFWCheckeraSimFieldContainer- is same as the writing source- Returns:
- if check is valid - if level < LAZY no check is performed (return true)
- Throws:
SimLinkInvalidException
-
checkWriteProtectionOnContentType
protected boolean checkWriteProtectionOnContentType(FWSimVariable<?> aTarget, FWSimVariable.CONTENT_TYPE aContentType, FWSimFieldContainer aSource) throws SimLinkInvalidException Description copied from class:FWCheckerReturns false if the content type makes the variable write protected- Specified by:
checkWriteProtectionOnContentTypein classFWChecker- Returns:
- if check is valid - if level < LAZY no check is performed (return true)
- Throws:
SimLinkInvalidException
-
checkParametersInScript
protected boolean checkParametersInScript(Collection<String> aAllowedFields, Collection<String> aForbiddenFields, String aJexlScript) Description copied from class:FWCheckerReturns false if parameters in the Script are not in AllowedFields exclusive or they are in ForbiddenFields- Specified by:
checkParametersInScriptin classFWChecker- Returns:
- if check is valid - if level < LAZY no check is performed (return true)
-