Class OntologyValidator

java.lang.Object
fr.gouv.vitam.metadata.core.validation.OntologyValidator

public class OntologyValidator extends Object
  • Constructor Details

    • OntologyValidator

      public OntologyValidator(OntologyLoader ontologyLoader)
  • Method Details

    • verifyAndReplaceFields

      public com.fasterxml.jackson.databind.node.ObjectNode verifyAndReplaceFields(com.fasterxml.jackson.databind.JsonNode jsonNode) throws MetadataValidationException
      Verify and replace fields.
      Parameters:
      jsonNode - to modify
      Returns:
      error list
      Throws:
      MetadataValidationException
    • stringExceedsMaxLuceneUtf8StorageSize

      public static boolean stringExceedsMaxLuceneUtf8StorageSize(String textValue, int maxUtf8Length)
      ES stores data in lucene indexes that have 32Kb max limit per token.