- java.lang.Object
-
- org.tentackle.common.ModuleInfo
-
public final class ModuleInfo extends java.lang.ObjectHolds 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.java.lang.ModulegetModule()Gets the module.intgetOrdinal()Gets the module ordinal.
Higher values come first in module order.java.util.Set<java.lang.String>getRequiredModuleNames()Gets the names of the required modules.java.lang.StringgetUrlPath()Gets the URL path of the hook's module.voidsetOrdinal(int ordinal)Sets the ordinal.
Higher values come first in module order.java.lang.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 java.lang.String getUrlPath()
Gets the URL path of the hook's module.- Returns:
- the url path
-
getModule
public java.lang.Module getModule()
Gets the module.- Returns:
- the module
-
getRequiredModuleNames
public java.util.Set<java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-