Class ClassificationValidation

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.ClassificationValidation
All Implemented Interfaces:
RegistryObjectValidator
Direct Known Subclasses:
AuthorClassificationValidation

public class ClassificationValidation extends Object implements RegistryObjectValidator
Validates a classification.
Author:
Jens Riemschneider, Mitko Kolev
  • Field Details

    • classScheme

      protected final String classScheme
  • Constructor Details

    • ClassificationValidation

      public ClassificationValidation(String classScheme, int min, int max, Vocabulary.DisplayNameUsage displayNameUsage, SlotValueValidation[] slotValidations)
      Constructs the validation for classifications with the given classScheme.
      Parameters:
      classScheme - the class scheme of the classification to check.
      min - the minimum number of classifications allowed for the given scheme.
      max - the maximum number of classifications allowed for the given scheme.
      displayNameUsage - the usage of the display name element.
      slotValidations - validations to apply to the slots of the classification.
      See Also:
    • ClassificationValidation

      public ClassificationValidation(String classScheme, int min, int max, Vocabulary.DisplayNameUsage displayNameUsage, Vocabulary.NodeRepresentationUsage nodeRepresentationUsage, SlotValueValidation[] slotValidations)
      Constructs the validation for classifications with the given classScheme.
      Parameters:
      classScheme - the class scheme of the classification to check.
      min - the minimum number of classifications allowed for the given scheme.
      max - the maximum number of classifications allowed for the given scheme.
      displayNameUsage - the usage of the display name element.
      nodeRepresentationUsage - optionality of the attribute nodeRepresentation.
      slotValidations - validations to apply to the slots of the classification.
      See Also:
  • Method Details