/** * Validates the given transformation. * * @param object the object to validate, or {@code null}. */ public void validate(final Transformation object) { if (object == null) { return; } validateOperation(object); mandatory("Transformation: operationVersion is a mandatory attribute.", object.getOperationVersion()); mandatory("Transformation: sourceCRS is a mandatory attribute.", object.getSourceCRS()); mandatory("Transformation: targetCRS is a mandatory attribute.", object.getTargetCRS()); mandatory("Transformation: MathTransform is a mandatory attribute.", object.getMathTransform()); }
/** * Validates the given transformation. * * @param object The object to validate, or {@code null}. */ public void validate(final Transformation object) { if (object == null) { return; } validateOperation(object); mandatory("Transformation: operationVersion is a mandatory attribute.", object.getOperationVersion()); mandatory("Transformation: sourceCRS is a mandatory attribute.", object.getSourceCRS()); mandatory("Transformation: targetCRS is a mandatory attribute.", object.getTargetCRS()); mandatory("Transformation: MathTransform is a mandatory attribute.", object.getMathTransform()); }