Package fr.gouv.vitam.metadata.core.validation

# Class OntologyValidator

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

public class OntologyValidator extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OntologyValidator(OntologyLoader ontologyLoader)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `stringExceedsMaxLuceneUtf8StorageSize(String textValue, int maxUtf8Length)`
  ES stores data in lucene indexes that have 32Kb max limit per token.
  `com.fasterxml.jackson.databind.node.ObjectNode`
  `verifyAndReplaceFields(com.fasterxml.jackson.databind.JsonNode jsonNode)`
  Verify and replace fields.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.