Class SchemaValidationUtils


  • public class SchemaValidationUtils
    extends java.lang.Object
    SchemaValidationUtils
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> extractFieldsFromSchema​(java.lang.String schemaJsonAsString)
      Get fields list declared in schema.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchemaValidationUtils

        public SchemaValidationUtils()
    • Method Detail

      • extractFieldsFromSchema

        public static java.util.List<java.lang.String> extractFieldsFromSchema​(java.lang.String schemaJsonAsString)
                                                                        throws InvalidParseOperationException
        Get fields list declared in schema. Only leaf nodes are selected (Vitam Ontology only references leaf nodes. Eg for a complex structure X.Y.Z, only "Z" is returned)
        Parameters:
        schemaJsonAsString - schemaJsonAsString
        Returns:
        a the list of fields declared in the schema
        Throws:
        InvalidParseOperationException