DefaultSchemaCache.java 820 Bytes
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.xmp.schema.model.SchemaDescription
 */
package com.adobe.xmp.schema.service.defaults;

import com.adobe.xmp.schema.model.SchemaDescription;
import com.adobe.xmp.schema.service.SchemaCache;
import java.util.HashMap;
import java.util.Map;

public class DefaultSchemaCache
implements SchemaCache {
    private final Map<String, SchemaDescription> cache = new HashMap<String, SchemaDescription>();

    public SchemaDescription get(String namespaceURI) {
        return this.cache.get(namespaceURI);
    }

    public void put(String namespaceURI, SchemaDescription schemaDescription) {
        if (namespaceURI != null && namespaceURI.length() > 0) {
            this.cache.put(namespaceURI, schemaDescription);
        }
    }
}