Package net.simplace.sim.check
Klasse FWChecker
java.lang.Object
net.simplace.sim.check.FWChecker
- Bekannte direkte Unterklassen:
DefaultChecker
Class that implements different methods that are checked by
FWCheckHelper
Instances are controlled by the CheckHelper, too.- Autor:
- Andreas Enders
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract NumbercheckLimits(FWSimVariable<?> aSource, Number aValue, Number aMin, Number aMax) Returns false if aValue is NaN or outside limits.protected abstract 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 abstract booleancheckSource(FWSimVariable<?> aTarget, FWSimFieldContainer aSimFieldContainer, FWSimFieldContainer aSource) Returns false if the owning container: .protected abstract booleancheckWriteProtectionOnContentType(FWSimVariable<?> aTarget, FWSimVariable.CONTENT_TYPE aContentType, FWSimFieldContainer aSource) Returns false if the content type makes the variable write protected
-
Konstruktordetails
-
FWChecker
public FWChecker()
-
-
Methodendetails
-
checkLimits
protected abstract Number checkLimits(FWSimVariable<?> aSource, Number aValue, Number aMin, Number aMax) throws SimValueOutOfRangeException Returns false if aValue is NaN or outside limits. Limits that are null are ignored.- Parameter:
aSource-aValue-aMin-aMax-- Gibt zurück:
- if limits are checked valid - if level Ungültige Eingabe: "<" LAZY no check is performed (return true)
- Löst aus:
SimValueOutOfRangeException
-
checkSource
protected abstract boolean checkSource(FWSimVariable<?> aTarget, FWSimFieldContainer aSimFieldContainer, FWSimFieldContainer aSource) throws SimLinkInvalidException Returns false if the owning container: .- Parameter:
aTarget-aSimFieldContainer- is same as the writing sourceaSource-- Gibt zurück:
- if check is valid - if level Ungültige Eingabe: "<" LAZY no check is performed (return true)
- Löst aus:
SimLinkInvalidException
-
checkWriteProtectionOnContentType
protected abstract boolean checkWriteProtectionOnContentType(FWSimVariable<?> aTarget, FWSimVariable.CONTENT_TYPE aContentType, FWSimFieldContainer aSource) throws SimLinkInvalidException Returns false if the content type makes the variable write protected- Parameter:
aTarget-aContentType-aSource-- Gibt zurück:
- if check is valid - if level Ungültige Eingabe: "<" LAZY no check is performed (return true)
- Löst aus:
SimLinkInvalidException
-
checkParametersInScript
protected abstract boolean checkParametersInScript(Collection<String> aAllowedFields, Collection<String> aForbiddenFields, String aJexlScript) Returns false if parameters in the Script are not in AllowedFields exclusive or they are in ForbiddenFields- Parameter:
aAllowedFields-aForbiddenFields-aJexlScript-- Gibt zurück:
- if check is valid - if level Ungültige Eingabe: "<" LAZY no check is performed (return true)
-