Class SchemaReader


  • public class SchemaReader
    extends Object
    • Constructor Detail

      • SchemaReader

        public SchemaReader()
    • Method Detail

      • getSchema

        public Schema getSchema​(String id)
        Gets the schema from the cache
        Parameters:
        id - the id of the schema
        Returns:
        the schema with the given id
      • getSchemaByResourceType

        public Schema getSchemaByResourceType​(String resourceType)
      • validate

        public Map<String,​Object> validate​(Schema schema,
                                                 Map<String,​Object> map,
                                                 boolean checkRequired,
                                                 String operation)
                                          throws SchemaException
        Validates
        Parameters:
        schema - the schema to validate
        map - the map to be validated
        checkRequired - boolean indicating if the required attributes have to be checked
        Returns:
        the same map
        Throws:
        SchemaException - exception containing the errors