Skip to content

Commit

Permalink
Cleansing
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Mar 19, 2024
1 parent d4a7be5 commit da84f40
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ private ICommonsList <IValidationExecutor <IValidationSource>> _getValidationExe
}

@Nonnull
private EValidationExecutorStatusType _getRecursiveExecutorStatusType ()
public EValidationExecutorStatusType getExecutorStatusType ()
{
// Local status first, because in case of failure, this is a quicker break
final EValidationExecutorStatusType ret = m_aStatus.getDateTimeValidityNow ();
Expand All @@ -440,7 +440,7 @@ private EValidationExecutorStatusType _getRecursiveExecutorStatusType ()
return EValidationExecutorStatusType.VALID;

// Requirement present
return _getLoadedVESRequiresNotNull ()._getRecursiveExecutorStatusType ();
return _getLoadedVESRequiresNotNull ().getExecutorStatusType ();
}

public void applyValidation (@Nonnull final IValidationSource aValidationSource,
Expand All @@ -452,15 +452,19 @@ public void applyValidation (@Nonnull final IValidationSource aValidationSource,
ValueEnforcer.notNull (aLocale, "Locale");

if (!hasExecutor ())
throw new VESLoadingException ("The loaded VES has no Executor Set and can therefore not be used for validating objects");

final EValidationExecutorStatusType eStatusType = _getRecursiveExecutorStatusType ();
final ICommonsList <IValidationExecutor <IValidationSource>> aExecutors = _getValidationExecutorsRecursive ();
throw new VESLoadingException ("The loaded VES has no Executor and can therefore not be used for validating objects");

// Create status
final EValidationExecutorStatusType eStatusType = getExecutorStatusType ();
final ValidationExecutorSetStatus aVESStatus = new ValidationExecutorSetStatus (eStatusType,
m_aStatus.getValidFromOffset (),
m_aStatus.getValidToOffset (),
m_aStatus.getReplacementVESID ());

// Build executors
final ICommonsList <IValidationExecutor <IValidationSource>> aExecutors = _getValidationExecutorsRecursive ();

// Assemble VES
final IValidationExecutorSet <IValidationSource> aVES = ValidationExecutorSet.create (m_aHeader.getVESID (),
m_aHeader.getName (),
aVESStatus,
Expand Down

0 comments on commit da84f40

Please sign in to comment.