Simantics/Rename module documentation
renameNode :: Resource -> String -> <WriteGraph> String
renameNode resource newName
Renames the given resource with the given newName and returns
string
Example:
> renameNode resource "NewName"
"Successfully renamed oldName to NewName"
or error if failed
renameMBNode :: Resource -> String -> <WriteGraph> String
renameMBNode entity newName
Renames the given entity with the given newName and returns
string
Example:
> renameMBNode entity "NewName"
"Successfully renamed oldName to NewName"
or error if failed
findFreshName :: String -> Resource -> <ReadGraph> String
findFreshName name container
Finds fresh and unused name with proposition name under the given container
and returns the freshName
Example:
freshName = findFreshName "Model" currentProject ()
getSafeName :: Resource -> <ReadGraph> String
getSafeName resource
Gets safe name for the given resource and returns the name
Example:
name = getSafeName (toResource model)
Undocumented entities
|