public class SimpleDataContext extends java.lang.Object implements DataContext
EMPTY_CONTEXT
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
static DataContext |
getProjectContext(Project project) |
static DataContext |
getSimpleContext(java.util.Map<java.lang.String,java.lang.Object> dataId2data,
DataContext parent) |
static DataContext |
getSimpleContext(java.util.Map<java.lang.String,java.lang.Object> dataId2data,
DataContext parent,
boolean withRules)
Creates a simple data context which can apply data rules.
|
static DataContext |
getSimpleContext(java.lang.String dataId,
java.lang.Object data) |
static DataContext |
getSimpleContext(java.lang.String dataId,
java.lang.Object data,
DataContext parent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData
public java.lang.Object getData(java.lang.String dataId)
DataContext
PlatformDataKeys
class.getData
in interface DataContext
dataId
- the data identifier for which the value is requested.public static DataContext getSimpleContext(java.lang.String dataId, java.lang.Object data, DataContext parent)
public static DataContext getSimpleContext(java.util.Map<java.lang.String,java.lang.Object> dataId2data, DataContext parent)
public static DataContext getSimpleContext(java.util.Map<java.lang.String,java.lang.Object> dataId2data, DataContext parent, boolean withRules)
public static DataContext getSimpleContext(java.lang.String dataId, java.lang.Object data)
public static DataContext getProjectContext(Project project)