Package org.apache.ofbiz.entity.util
Class EntityUtilProperties
- java.lang.Object
-
- org.apache.ofbiz.entity.util.EntityUtilProperties
-
- All Implemented Interfaces:
java.io.Serializable
public final class EntityUtilProperties extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String
createResourceName(java.lang.String resource, java.util.Locale locale, boolean removeExtension)
static java.util.List<java.util.Locale>
getCandidateLocales(java.util.Locale locale)
Deprecated.static java.util.Set<java.util.Locale>
getDefaultCandidateLocales()
static java.util.Locale
getFallbackLocale()
Deprecated.static java.lang.String
getMessage(java.lang.String resource, java.lang.String name, java.lang.Object[] arguments, java.util.Locale locale)
static <E> java.lang.String
getMessage(java.lang.String resource, java.lang.String name, java.util.List<E> arguments, java.util.Locale locale)
static java.lang.String
getMessage(java.lang.String resource, java.lang.String name, java.util.Locale locale, Delegator delegator)
static java.lang.String
getMessage(java.lang.String resource, java.lang.String name, java.util.Map<java.lang.String,? extends java.lang.Object> context, java.util.Locale locale)
static java.lang.String
getMessageList(java.lang.String resource, java.lang.String name, java.util.Locale locale, java.lang.Object... arguments)
static java.lang.String
getMessageMap(java.lang.String resource, java.lang.String name, java.util.Locale locale, java.lang.Object... context)
static java.util.Properties
getProperties(java.lang.String resource)
static java.util.Properties
getProperties(java.lang.String resource, java.util.Locale locale)
static java.util.Properties
getProperties(java.net.URL url)
static java.util.Properties
getProperties(Delegator delegator, java.lang.String resourceName)
static java.math.BigDecimal
getPropertyAsBigDecimal(java.lang.String resource, java.lang.String name, java.math.BigDecimal defaultNumber)
static java.math.BigInteger
getPropertyAsBigInteger(java.lang.String resource, java.lang.String name, java.math.BigInteger defaultNumber)
static java.lang.Boolean
getPropertyAsBoolean(java.lang.String resource, java.lang.String name, boolean defaultValue)
static java.lang.Double
getPropertyAsDouble(java.lang.String resource, java.lang.String name, double defaultNumber)
static java.lang.Float
getPropertyAsFloat(java.lang.String resource, java.lang.String name, float defaultNumber)
static java.lang.Integer
getPropertyAsInteger(java.lang.String resource, java.lang.String name, int defaultNumber)
static java.lang.Long
getPropertyAsLong(java.lang.String resource, java.lang.String name, long defaultNumber)
static double
getPropertyNumber(java.lang.String resource, java.lang.String name)
static double
getPropertyNumber(java.lang.String resource, java.lang.String name, double defaultValue)
static double
getPropertyNumber(java.net.URL url, java.lang.String name)
static double
getPropertyNumber(java.net.URL url, java.lang.String name, double defaultValue)
static java.lang.String
getPropertyValue(java.lang.String resource, java.lang.String name, java.lang.String defaultValue, Delegator delegator)
static java.lang.String
getPropertyValue(java.lang.String resource, java.lang.String name, Delegator delegator)
static java.lang.String
getPropertyValue(java.net.URL url, java.lang.String name)
static java.lang.String
getPropertyValue(java.net.URL url, java.lang.String name, java.lang.String defaultValue)
static java.lang.String
getPropertyValueFromDelegatorName(java.lang.String resource, java.lang.String name, java.lang.String delegatorName)
static java.lang.String
getPropertyValueFromDelegatorName(java.lang.String resource, java.lang.String name, java.lang.String defaultValue, java.lang.String delegatorName)
static java.util.ResourceBundle
getResourceBundle(java.lang.String resource, java.util.Locale locale)
static ResourceBundleMapWrapper
getResourceBundleMap(java.lang.String resource, java.util.Locale locale)
static ResourceBundleMapWrapper
getResourceBundleMap(java.lang.String resource, java.util.Locale locale, java.util.Map<java.lang.String,java.lang.Object> context)
static java.lang.String
getSplitPropertyValue(java.net.URL url, java.lang.String name)
static boolean
isPropertiesResourceNotFound(java.lang.String resource, java.util.Locale locale, boolean removeExtension)
static java.util.List<java.util.Locale>
localeToCandidateList(java.util.Locale locale)
static boolean
propertyValueEquals(java.lang.String resource, java.lang.String name, java.lang.String compareString)
static boolean
propertyValueEquals(java.net.URL url, java.lang.String name, java.lang.String compareString)
static boolean
propertyValueEqualsIgnoreCase(java.lang.String resource, java.lang.String name, java.lang.String compareString, Delegator delegator)
static boolean
propertyValueEqualsIgnoreCase(java.net.URL url, java.lang.String name, java.lang.String compareString)
static java.net.URL
resolvePropertiesUrl(java.lang.String resource, java.util.Locale locale)
static void
setPropertyValue(java.lang.String resource, java.lang.String name, java.lang.String value)
static java.lang.String
setPropertyValue(Delegator delegator, java.lang.String resourceName, java.lang.String name, java.lang.String value)
static void
setPropertyValueInMemory(java.lang.String resource, java.lang.String name, java.lang.String value)
static java.util.Properties
xmlToProperties(java.io.InputStream in, java.util.Locale locale, java.util.Properties properties)
-
-
-
Method Detail
-
propertyValueEquals
public static boolean propertyValueEquals(java.lang.String resource, java.lang.String name, java.lang.String compareString)
-
propertyValueEqualsIgnoreCase
public static boolean propertyValueEqualsIgnoreCase(java.lang.String resource, java.lang.String name, java.lang.String compareString, Delegator delegator)
-
getPropertyValue
public static java.lang.String getPropertyValue(java.lang.String resource, java.lang.String name, java.lang.String defaultValue, Delegator delegator)
-
getPropertyValueFromDelegatorName
public static java.lang.String getPropertyValueFromDelegatorName(java.lang.String resource, java.lang.String name, java.lang.String defaultValue, java.lang.String delegatorName)
-
getPropertyNumber
public static double getPropertyNumber(java.lang.String resource, java.lang.String name, double defaultValue)
-
getPropertyNumber
public static double getPropertyNumber(java.lang.String resource, java.lang.String name)
-
getPropertyAsBoolean
public static java.lang.Boolean getPropertyAsBoolean(java.lang.String resource, java.lang.String name, boolean defaultValue)
-
getPropertyAsInteger
public static java.lang.Integer getPropertyAsInteger(java.lang.String resource, java.lang.String name, int defaultNumber)
-
getPropertyAsLong
public static java.lang.Long getPropertyAsLong(java.lang.String resource, java.lang.String name, long defaultNumber)
-
getPropertyAsFloat
public static java.lang.Float getPropertyAsFloat(java.lang.String resource, java.lang.String name, float defaultNumber)
-
getPropertyAsDouble
public static java.lang.Double getPropertyAsDouble(java.lang.String resource, java.lang.String name, double defaultNumber)
-
getPropertyAsBigInteger
public static java.math.BigInteger getPropertyAsBigInteger(java.lang.String resource, java.lang.String name, java.math.BigInteger defaultNumber)
-
getPropertyAsBigDecimal
public static java.math.BigDecimal getPropertyAsBigDecimal(java.lang.String resource, java.lang.String name, java.math.BigDecimal defaultNumber)
-
getPropertyValue
public static java.lang.String getPropertyValue(java.lang.String resource, java.lang.String name, Delegator delegator)
-
getPropertyValueFromDelegatorName
public static java.lang.String getPropertyValueFromDelegatorName(java.lang.String resource, java.lang.String name, java.lang.String delegatorName)
-
getProperties
public static java.util.Properties getProperties(java.lang.String resource)
-
getProperties
public static java.util.Properties getProperties(java.net.URL url)
-
getProperties
public static java.util.Properties getProperties(Delegator delegator, java.lang.String resourceName)
-
propertyValueEquals
public static boolean propertyValueEquals(java.net.URL url, java.lang.String name, java.lang.String compareString)
-
propertyValueEqualsIgnoreCase
public static boolean propertyValueEqualsIgnoreCase(java.net.URL url, java.lang.String name, java.lang.String compareString)
-
getPropertyValue
public static java.lang.String getPropertyValue(java.net.URL url, java.lang.String name, java.lang.String defaultValue)
-
getPropertyNumber
public static double getPropertyNumber(java.net.URL url, java.lang.String name, double defaultValue)
-
getPropertyNumber
public static double getPropertyNumber(java.net.URL url, java.lang.String name)
-
getPropertyValue
public static java.lang.String getPropertyValue(java.net.URL url, java.lang.String name)
-
getSplitPropertyValue
public static java.lang.String getSplitPropertyValue(java.net.URL url, java.lang.String name)
-
setPropertyValue
public static void setPropertyValue(java.lang.String resource, java.lang.String name, java.lang.String value)
-
setPropertyValueInMemory
public static void setPropertyValueInMemory(java.lang.String resource, java.lang.String name, java.lang.String value)
-
setPropertyValue
public static java.lang.String setPropertyValue(Delegator delegator, java.lang.String resourceName, java.lang.String name, java.lang.String value)
-
getMessage
public static java.lang.String getMessage(java.lang.String resource, java.lang.String name, java.util.Locale locale, Delegator delegator)
-
getMessage
public static java.lang.String getMessage(java.lang.String resource, java.lang.String name, java.lang.Object[] arguments, java.util.Locale locale)
-
getMessage
public static <E> java.lang.String getMessage(java.lang.String resource, java.lang.String name, java.util.List<E> arguments, java.util.Locale locale)
-
getMessageList
public static java.lang.String getMessageList(java.lang.String resource, java.lang.String name, java.util.Locale locale, java.lang.Object... arguments)
-
getMessage
public static java.lang.String getMessage(java.lang.String resource, java.lang.String name, java.util.Map<java.lang.String,? extends java.lang.Object> context, java.util.Locale locale)
-
getMessageMap
public static java.lang.String getMessageMap(java.lang.String resource, java.lang.String name, java.util.Locale locale, java.lang.Object... context)
-
getResourceBundle
public static java.util.ResourceBundle getResourceBundle(java.lang.String resource, java.util.Locale locale)
-
getResourceBundleMap
public static ResourceBundleMapWrapper getResourceBundleMap(java.lang.String resource, java.util.Locale locale)
-
getResourceBundleMap
public static ResourceBundleMapWrapper getResourceBundleMap(java.lang.String resource, java.util.Locale locale, java.util.Map<java.lang.String,java.lang.Object> context)
-
getProperties
public static java.util.Properties getProperties(java.lang.String resource, java.util.Locale locale)
-
getFallbackLocale
@Deprecated public static java.util.Locale getFallbackLocale()
Deprecated.
-
localeToCandidateList
public static java.util.List<java.util.Locale> localeToCandidateList(java.util.Locale locale)
-
getDefaultCandidateLocales
public static java.util.Set<java.util.Locale> getDefaultCandidateLocales()
-
getCandidateLocales
@Deprecated public static java.util.List<java.util.Locale> getCandidateLocales(java.util.Locale locale)
Deprecated.
-
createResourceName
public static java.lang.String createResourceName(java.lang.String resource, java.util.Locale locale, boolean removeExtension)
-
isPropertiesResourceNotFound
public static boolean isPropertiesResourceNotFound(java.lang.String resource, java.util.Locale locale, boolean removeExtension)
-
resolvePropertiesUrl
public static java.net.URL resolvePropertiesUrl(java.lang.String resource, java.util.Locale locale)
-
xmlToProperties
public static java.util.Properties xmlToProperties(java.io.InputStream in, java.util.Locale locale, java.util.Properties properties) throws java.io.IOException, java.util.InvalidPropertiesFormatException
- Throws:
java.io.IOException
java.util.InvalidPropertiesFormatException
-
-