Class OntologyValidator
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.validation.OntologyValidator
-
public class OntologyValidator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OntologyValidator(OntologyLoader ontologyLoader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
stringExceedsMaxLuceneUtf8StorageSize(java.lang.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.
-
-
-
Constructor Detail
-
OntologyValidator
public OntologyValidator(OntologyLoader ontologyLoader)
-
-
Method Detail
-
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(java.lang.String textValue, int maxUtf8Length)
ES stores data in lucene indexes that have 32Kb max limit per token.
-
-