Class GwtProperties
- java.lang.Object
-
- com.google.javascript.jscomp.resources.GwtProperties
-
public class GwtProperties extends java.lang.ObjectGWT-compatible helper for dealing with Java .properties files. The format is probably not fully parsed by this code, but is suitable for simple use-cases inside Closure.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProperty(java.lang.String key)static GwtPropertiesload(java.lang.String source)Constructs a newGwtPropertiesfrom the given source string.static GwtPropertiesloadFromResource(java.lang.String resourceName)java.util.Collection<java.lang.String>propertyNames()
-
-
-
Method Detail
-
getProperty
public java.lang.String getProperty(java.lang.String key)
- Parameters:
key- Property key to retrieve.- Returns:
- The string value of this key.
-
propertyNames
public java.util.Collection<java.lang.String> propertyNames()
- Returns:
- The collection of property names.
-
loadFromResource
public static GwtProperties loadFromResource(java.lang.String resourceName)
-
load
public static GwtProperties load(java.lang.String source)
Constructs a newGwtPropertiesfrom the given source string.- Parameters:
source- To load from.- Returns:
- The
GwtPropertiesobject from the source.
-
-