All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.steadystate.css.dom.CSSOMObjectImpl Maven / Gradle / Ivy

There is a newer version: 0.9.30
Show newest version
/*
 * Created on 05.12.2005
 *
 */
package com.steadystate.css.dom;

import java.util.Hashtable;
import java.util.Map;

/**
 * Implementation of {@link CSSOMObject}.
 * 
 * @author koch
 */
public class CSSOMObjectImpl implements CSSOMObject
{

    private Map userDataMap;

    public Map getUserDataMap()
    {
        if (this.userDataMap == null)
        {
            this.userDataMap = new Hashtable();
        }
        return this.userDataMap;
    }

    public void setUserDataMap(Map userDataMap)
    {
        this.userDataMap = userDataMap;
    }


    public CSSOMObjectImpl()
    {
        super();
    }


    public Object getUserData(String key)
    {
        return this.getUserDataMap().get(key);
    }

    public Object setUserData(String key, Object data)
    {
        return this.getUserDataMap().put(key, data);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy