Class GwtProperties
- java.lang.Object
-
- com.google.javascript.jscomp.resources.GwtProperties
-
public class GwtProperties extends java.lang.Object
GWT-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.String
getProperty(java.lang.String key)
static GwtProperties
load(java.lang.String source)
Constructs a newGwtProperties
from the given source string.static GwtProperties
loadFromResource(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 newGwtProperties
from the given source string.- Parameters:
source
- To load from.- Returns:
- The
GwtProperties
object from the source.
-
-