net.simplace.sim.check.FWChecker

Class that implements different methods that are checked by FWCheckHelper Instances are controlled by the CheckHelper, too.


public abstract class FWChecker {
// Public Constructors
public FWChecker();


// Protected Instance Methods
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.
returns if limits are checked valid - if level < LAZY no check is performed (return true)
protected abstract boolean checkSource(FWSimVariable aTarget,
FWSimFieldContainer aSimFieldContainer, FWSimFieldContainer aSource)
throws SimLinkInvalidException;

Returns false if the owning container: .
returns if check is valid - if level < LAZY no check is performed (return true)
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
returns if check is valid - if level < LAZY no check is performed (return true)
protected abstract boolean checkParametersInScript(Collection aAllowedFields,
Collection aForbiddenFields, String aJexlScript);

Returns false if parameters in the Script are not in AllowedFields exclusive or they are in ForbiddenFields
returns if check is valid - if level < LAZY no check is performed (return true)


}



Extended by: DefaultChecker