public class LayoutXmlProcessor extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LayoutXmlProcessor.OriginalFileLookup
Helper interface that can find the original copy of a resource XML.
|
static class |
LayoutXmlProcessor.ResourceInput
API agnostic class to get resource changes incrementally.
|
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME |
static String |
RESOURCE_BUNDLE_PACKAGE |
Constructor and Description |
---|
LayoutXmlProcessor(String applicationPackage,
JavaFileWriter fileWriter,
int minSdk,
boolean isLibrary,
LayoutXmlProcessor.OriginalFileLookup originalFileLookup) |
Modifier and Type | Method and Description |
---|---|
static String |
exportLayoutNameFromInfoFileName(String infoFileName) |
static String |
generateExportFileName(String fileName,
String dirName) |
String |
getInfoClassFullName() |
String |
getPackage() |
ResourceBundle |
getResourceBundle()
used by the studio plugin
|
boolean |
processResources(LayoutXmlProcessor.ResourceInput input) |
static String |
toSystemDependentPath(String path) |
void |
writeInfoClass(File sdkDir,
File xmlOutDir,
File exportClassListTo) |
void |
writeInfoClass(File sdkDir,
File xmlOutDir,
File exportClassListTo,
boolean enableDebugLogs,
boolean printEncodedErrorLogs) |
void |
writeLayoutInfoFiles(File xmlOutDir) |
public static final String RESOURCE_BUNDLE_PACKAGE
public static final String CLASS_NAME
public LayoutXmlProcessor(String applicationPackage, JavaFileWriter fileWriter, int minSdk, boolean isLibrary, LayoutXmlProcessor.OriginalFileLookup originalFileLookup)
public ResourceBundle getResourceBundle()
public boolean processResources(LayoutXmlProcessor.ResourceInput input) throws ParserConfigurationException, SAXException, XPathExpressionException, IOException
public void writeLayoutInfoFiles(File xmlOutDir) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public String getInfoClassFullName()
public static String exportLayoutNameFromInfoFileName(String infoFileName)
public String getPackage()