Package fr.gouv.vitam.common.json
Class SchemaValidationUtils
- java.lang.Object
-
- fr.gouv.vitam.common.json.SchemaValidationUtils
-
public class SchemaValidationUtils extends java.lang.Object
SchemaValidationUtils
-
-
Constructor Summary
Constructors Constructor Description 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.
-
-
-
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
-
-