public class ResValueGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RES_VALUE_FILENAME_XML |
| Constructor and Description |
|---|
ResValueGenerator(java.io.File genFolder)
Creates a generator
|
| Modifier and Type | Method and Description |
|---|---|
ResValueGenerator |
addItems(java.util.Collection<java.lang.Object> items) |
ResValueGenerator |
addResource(java.lang.String type,
java.lang.String name,
java.lang.String value) |
void |
generate()
Generates the resource files
|
java.io.File |
getFolderPath()
Returns a File representing where the BuildConfig class will be.
|
public static final java.lang.String RES_VALUE_FILENAME_XML
public ResValueGenerator(@NonNull
java.io.File genFolder)
genFolder - the gen folder of the projectpublic ResValueGenerator addResource(@NonNull java.lang.String type, @NonNull java.lang.String name, @NonNull java.lang.String value)
public ResValueGenerator addItems(@Nullable java.util.Collection<java.lang.Object> items)
public java.io.File getFolderPath()
public void generate()
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException
java.io.IOExceptionjavax.xml.parsers.ParserConfigurationException