- java.lang.Object
-
- org.tentackle.common.ModuleInfo
-
public final class ModuleInfo extends Object
Holds information about a module.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description ModuleInfo(ModuleHook hook)Creates a module info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleHookgetHook()Gets the module hook.ModulegetModule()Gets the module.intgetOrdinal()Gets the module ordinal.
Higher values come first in module order.Set<String>getRequiredModuleNames()Gets the names of the required modules.StringgetUrlPath()Gets the URL path of the hook's module.voidsetOrdinal(int ordinal)Sets the ordinal.
Higher values come first in module order.StringtoString()
-
-
-
Constructor Detail
-
ModuleInfo
public ModuleInfo(ModuleHook hook)
Creates a module info.- Parameters:
hook- the module hook
-
-
Method Detail
-
getHook
public ModuleHook getHook()
Gets the module hook.- Returns:
- the hook
-
getUrlPath
public String getUrlPath()
Gets the URL path of the hook's module.- Returns:
- the url path
-
getModule
public Module getModule()
Gets the module.- Returns:
- the module
-
getRequiredModuleNames
public Set<String> getRequiredModuleNames()
Gets the names of the required modules.- Returns:
- the directly required names
-
getOrdinal
public int getOrdinal()
Gets the module ordinal.
Higher values come first in module order.- Returns:
- the ordinal
-
setOrdinal
public void setOrdinal(int ordinal)
Sets the ordinal.
Higher values come first in module order.- Parameters:
ordinal- the ordinal
-
-