public class LayoutXmlProcessor
extends java.lang.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.
|
| Constructor and Description |
|---|
LayoutXmlProcessor(java.lang.String applicationPackage,
JavaFileWriter fileWriter,
LayoutXmlProcessor.OriginalFileLookup originalFileLookup,
boolean useAndroidX) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
exportLayoutNameFromInfoFileName(java.lang.String infoFileName) |
static java.lang.String |
generateExportFileName(java.lang.String fileName,
java.lang.String dirName) |
JavaFileWriter |
getFileWriter() |
java.lang.String |
getPackage() |
ResourceBundle |
getResourceBundle()
used by the studio plugin
|
void |
processFileWithNoDataBinding(java.io.File file)
Processes a layout file which does not contain data binding constructs.
|
void |
processRemovedFile(java.io.File input) |
boolean |
processResources(LayoutXmlProcessor.ResourceInput input,
boolean isViewBindingEnabled,
boolean isDataBindingEnabled) |
boolean |
processSingleFile(android.databinding.tool.util.RelativizableFile input,
java.io.File output,
boolean isViewBindingEnabled,
boolean isDataBindingEnabled) |
static java.lang.String |
toSystemDependentPath(java.lang.String path) |
void |
writeLayoutInfoFiles(java.io.File xmlOutDir) |
void |
writeLayoutInfoFiles(java.io.File xmlOutDir,
JavaFileWriter writer) |
public LayoutXmlProcessor(java.lang.String applicationPackage,
JavaFileWriter fileWriter,
LayoutXmlProcessor.OriginalFileLookup originalFileLookup,
boolean useAndroidX)
public static java.lang.String exportLayoutNameFromInfoFileName(java.lang.String infoFileName)
public ResourceBundle getResourceBundle()
public void processRemovedFile(java.io.File input)
public void processFileWithNoDataBinding(@NonNull
java.io.File file)
public boolean processSingleFile(@NonNull
android.databinding.tool.util.RelativizableFile input,
@NonNull
java.io.File output,
boolean isViewBindingEnabled,
boolean isDataBindingEnabled)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
javax.xml.xpath.XPathExpressionException,
java.io.IOException
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjavax.xml.xpath.XPathExpressionExceptionjava.io.IOExceptionpublic boolean processResources(LayoutXmlProcessor.ResourceInput input, boolean isViewBindingEnabled, boolean isDataBindingEnabled) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.xpath.XPathExpressionException, java.io.IOException
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjavax.xml.xpath.XPathExpressionExceptionjava.io.IOExceptionpublic static java.lang.String toSystemDependentPath(java.lang.String path)
public void writeLayoutInfoFiles(java.io.File xmlOutDir)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic JavaFileWriter getFileWriter()
public void writeLayoutInfoFiles(java.io.File xmlOutDir,
JavaFileWriter writer)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic static java.lang.String generateExportFileName(java.lang.String fileName,
java.lang.String dirName)
public java.lang.String getPackage()