Class OceanusResourceLoader
java.lang.Object
io.github.tonywasher.joceanus.oceanus.resource.OceanusResourceLoader
Resource Loader.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetErrorNoResource(Enum<?> pId) Error for missing resource.static <E extends Enum<E>,I>
IgetIconForEnum(Map<E, I> pMap, E pValue) Obtain Icon for enum.static StringLoad resource file to String.
-
Method Details
-
getErrorNoResource
Error for missing resource.- Parameters:
pId- the missing id- Returns:
- the error message
-
getIconForEnum
Obtain Icon for enum.- Type Parameters:
E- the enum typeI- the icon type- Parameters:
pMap- the mappValue- the enum value- Returns:
- the icon
-
loadResourceToString
Load resource file to String.- Parameters:
pKey- the resource Key- Returns:
- the loaded resource
- Throws:
OceanusException- on error
-