package hep.aida.ref.plotter.style.registry;

import hep.aida.IPlotterStyle;
import hep.aida.ref.plotter.Style;

import java.util.ArrayList;
import java.util.List;
import java.util.Properties;

/**
 * This abstract class as "In-Memory" copy of persistent Store
 * and implements transient style/rule manipulations.
 * Exact "commit" operations are left to concrete
 * implementations, like XMLStyleStore, DBStyleSTore, etc.
 */

public abstract class BaseStyleStore implements IStyleStore {
    protected String storeName;
    protected String storeType;
    protected boolean isReadOnly;
    protected Object lock = new Object();
    protected List entries;
    protected Properties props = new Properties();
    
    public BaseStyleStore(String storeName) {
        this.storeName = storeName;
        entries = new ArrayList(10);
    }
    
    
    // Service methods
    
    
    // Can use properties to store all needed extra information  about the Style Store
    public Properties getProperties() {
        return props;
    }
    
    public StyleStoreEntry getStoreEntry(String styleName) {
        StyleStoreEntry entry = null;
        for (int i=0; i 

Ads help maintain this website.