public interface IWorkspaceContext
Modifier and Type | Method and Description |
---|---|
String |
getAsString()
Gets a string representation of the map of workspace context properties.
|
Map<String,Object> |
getProperties()
Gets all the properties of the workspace context as a map of String/Object pairs.
|
Object |
getProperty(String name)
Gets a property by name from the workspace context.
|
List<String> |
getPropertyNames()
Gets a list of property names from the workspace context.
|
boolean |
isDirty()
Determines if the workspace context has unsaved changes.
|
void |
setDirty(boolean val)
Marks the workspace context state as dirty or clean.
|
void |
setProperty(String name,
Object val)
Sets a property by name in the workspace context.
|
Object getProperty(String name) throws Exception
name
- The name of the property to retrieve.Exception
void setProperty(String name, Object val) throws Exception
name
- The name of property to set.val
- The value of the property.Exception
Map<String,Object> getProperties() throws Exception
Exception
List<String> getPropertyNames() throws Exception
Exception
String getAsString() throws Exception
Exception
void setDirty(boolean val)
val
- Specifies the context state; true indicates the context is dirty and needs to be saved and false indicates that it no longer contains unsaved changes.boolean isDirty()