public class Resources extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_ICON |
static String |
APPLICATION_NAME |
static boolean |
OPTIONAL |
Constructor and Description |
---|
Resources() |
Modifier and Type | Method and Description |
---|---|
static void |
addMimeType(String postfix,
String contentType) |
static Integer |
getInteger(String resourceName,
boolean reportIfMissing) |
static String |
getMimeType(String postfix) |
static String |
getPropertyName(PropertyInterface property) |
static String |
getPropertyName(PropertyInterface property,
String postfix) |
static String |
getResourceName(Class<?> clazz) |
static String |
getString(Class<?> clazz) |
static String |
getString(String resourceName) |
static String |
getString(String resourceName,
boolean reportIfMissing) |
static String |
getStringOrNull(Class<?> clazz) |
static boolean |
isAvailable(String resourceName) |
static void |
printMissing() |
public static final boolean OPTIONAL
public static final String APPLICATION_NAME
public static final String APPLICATION_ICON
public static boolean isAvailable(String resourceName)
public static String getString(String resourceName, boolean reportIfMissing)
resourceName
- the name of the resource. No further prefixes or postfixes are appliedreportIfMissing
- Use the constant OPTIONAL if its not an application error when the resource is not availablepublic static String getPropertyName(PropertyInterface property)
public static String getPropertyName(PropertyInterface property, String postfix)
public static void printMissing()
Copyright © 2019. All rights reserved.