Package com.iizix.prop
Interface IModuleProjectPropProvider
- All Known Implementing Classes:
EditorModuleProjectPropCnr
,ModuleProjectPropCnr
,ModuleRootPropCnr
public interface IModuleProjectPropProvider
Provides access to the Module properties even from a runtime-style code.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptiongetProjectName
(GProp<?> requestor, String alias) Gets the project name from an alias, the alias does NOT begin with "*".getRootFromName
(GProp<?> requestor, String module) Gets the module root for a name.
Method Details
getProjectName
Gets the project name from an alias, the alias does NOT begin with "*".- Parameters:
requestor
- The requestor.alias
- The alias.- Returns:
- The project name for the alias, or null if not found.
getRootFromName
Gets the module root for a name. In the Editor, the module is the project, and that root container is returned. In the Server, the module doesn't matter, so the real root returns itself.When running with assertions, this call throws an assertion error by default, showing that the call is directed to a non-root property container.
- Parameters:
requestor
- The requestor.module
- The module name (without colon), i.e. the project name in the Designer.- Returns:
- The root property container, or null if this container is not the root, or if the module name is not found. The default implementation returns null.