Package net.simplace.sim.check
Klasse 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
- Autor:
- Andreas Enders
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected 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
-
Konstruktordetails
-
DefaultChecker
public DefaultChecker()
-
-
Methodendetails
-
checkLimits
protected Number checkLimits(FWSimVariable<?> aSource, Number aValue, Number aMin, Number aMax) throws SimValueOutOfRangeException Beschreibung aus Klasse kopiert:FWCheckerReturns false if aValue is NaN or outside limits. Limits that are null are ignored.- Angegeben von:
checkLimitsin KlasseFWChecker- 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 boolean checkSource(FWSimVariable<?> aTarget, FWSimFieldContainer aSimFieldContainer, FWSimFieldContainer aSource) throws SimLinkInvalidException Beschreibung aus Klasse kopiert:FWCheckerReturns false if the owning container: .- Angegeben von:
checkSourcein KlasseFWChecker- 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 boolean checkWriteProtectionOnContentType(FWSimVariable<?> aTarget, FWSimVariable.CONTENT_TYPE aContentType, FWSimFieldContainer aSource) throws SimLinkInvalidException Beschreibung aus Klasse kopiert:FWCheckerReturns false if the content type makes the variable write protected- Angegeben von:
checkWriteProtectionOnContentTypein KlasseFWChecker- 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 boolean checkParametersInScript(Collection<String> aAllowedFields, Collection<String> aForbiddenFields, String aJexlScript) Beschreibung aus Klasse kopiert:FWCheckerReturns false if parameters in the Script are not in AllowedFields exclusive or they are in ForbiddenFields- Angegeben von:
checkParametersInScriptin KlasseFWChecker- Parameter:
aAllowedFields-aForbiddenFields-aJexlScript-- Gibt zurück:
- if check is valid - if level Ungültige Eingabe: "<" LAZY no check is performed (return true)
-