Package com.webmethods.bpm.noodle
Interface IWorkspaceContext
public interface IWorkspaceContext
Interface for an implementation that allows manipulation of the properties that make up a workspace context
-
Method Summary
Modifier and TypeMethodDescriptionGets a string representation of the map of workspace context properties.Gets all the properties of the workspace context as a map of String/Object pairs.getProperty
(String name) Gets a property by name from the workspace context.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.
-
Method Details
-
getProperty
Gets a property by name from the workspace context.- Parameters:
name
- The name of the property to retrieve.- Returns:
- The property value object.
- Throws:
Exception
-
setProperty
Sets a property by name in the workspace context.- Parameters:
name
- The name of property to set.val
- The value of the property.- Throws:
Exception
-
getProperties
Gets all the properties of the workspace context as a map of String/Object pairs. This map is editable and can be commited back to the workspace context via the save() method.- Returns:
- Returns a map of key/object pairs representing the properties of this workspace context.
- Throws:
Exception
-
getPropertyNames
Gets a list of property names from the workspace context.- Returns:
- Returns a list of property name strings.
- Throws:
Exception
-
getAsString
Gets a string representation of the map of workspace context properties.- Returns:
- Returns a string representation of the workspace context properties.
- Throws:
Exception
-
setDirty
void setDirty(boolean val) Marks the workspace context state as dirty or clean.- Parameters:
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.
-
isDirty
boolean isDirty()Determines if the workspace context has unsaved changes.- Returns:
- Returns true if the workspace context has unsaved changes.
-