android.databinding.tool
Class LayoutXmlProcessor
java.lang.Object
android.databinding.tool.LayoutXmlProcessor
public class LayoutXmlProcessor
- extends java.lang.Object
Processes the layout XML, stripping the binding attributes and elements
and writes the information into an annotated class file for the annotation
processor to work with.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE_BUNDLE_PACKAGE
public static final java.lang.String RESOURCE_BUNDLE_PACKAGE
- See Also:
- Constant Field Values
CLASS_NAME
public static final java.lang.String CLASS_NAME
- See Also:
- Constant Field Values
LayoutXmlProcessor
public LayoutXmlProcessor(java.lang.String applicationPackage,
JavaFileWriter fileWriter,
int minSdk,
boolean isLibrary,
LayoutXmlProcessor.OriginalFileLookup originalFileLookup)
getResourceBundle
public ResourceBundle getResourceBundle()
- used by the studio plugin
processResources
public boolean processResources(LayoutXmlProcessor.ResourceInput input)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
javax.xml.xpath.XPathExpressionException,
java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
javax.xml.xpath.XPathExpressionException
java.io.IOException
toSystemDependentPath
public static java.lang.String toSystemDependentPath(java.lang.String path)
writeLayoutInfoFiles
public void writeLayoutInfoFiles(java.io.File xmlOutDir)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
getInfoClassFullName
public java.lang.String getInfoClassFullName()
generateExportFileName
public static java.lang.String generateExportFileName(java.lang.String fileName,
java.lang.String dirName)
exportLayoutNameFromInfoFileName
public static java.lang.String exportLayoutNameFromInfoFileName(java.lang.String infoFileName)
writeInfoClass
public void writeInfoClass(java.io.File sdkDir,
java.io.File xmlOutDir,
java.io.File exportClassListTo)
getPackage
public java.lang.String getPackage()
writeInfoClass
public void writeInfoClass(java.io.File sdkDir,
java.io.File xmlOutDir,
java.io.File exportClassListTo,
boolean enableDebugLogs,
boolean printEncodedErrorLogs)