21 lines
406 B
Java
21 lines
406 B
Java
package Classes.css.core;
|
|
|
|
import java.util.HashMap;
|
|
|
|
public class Context{
|
|
|
|
/* Context data (associative array) */
|
|
private static HashMap<String, Object> attr = new HashMap<String, Object>();
|
|
|
|
/* Add data */
|
|
public static void bind(String index, Object data){
|
|
Context.attr.put(index, data);
|
|
}
|
|
|
|
/* Fetch data */
|
|
public static Object get(String index){
|
|
return Context.attr.get(index);
|
|
}
|
|
|
|
}
|