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.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME |
static java.lang.String |
RESOURCE_BUNDLE_PACKAGE |
Constructor and Description |
---|
LayoutXmlProcessor(java.lang.String applicationPackage,
JavaFileWriter fileWriter,
LayoutXmlProcessor.OriginalFileLookup originalFileLookup) |
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) |
java.lang.String |
getInfoClassFullName() |
java.lang.String |
getPackage() |
ResourceBundle |
getResourceBundle()
used by the studio plugin
|
boolean |
processResources(LayoutXmlProcessor.ResourceInput input) |
static java.lang.String |
toSystemDependentPath(java.lang.String path) |
void |
writeEmptyInfoClass()
Just writes the file w/ build ID w/o any properties.
|
void |
writeLayoutInfoFiles(java.io.File xmlOutDir) |
void |
writeLayoutInfoFiles(java.io.File xmlOutDir,
JavaFileWriter writer) |
public static final java.lang.String RESOURCE_BUNDLE_PACKAGE
public static final java.lang.String CLASS_NAME
public LayoutXmlProcessor(java.lang.String applicationPackage, JavaFileWriter fileWriter, LayoutXmlProcessor.OriginalFileLookup originalFileLookup)
public static java.lang.String exportLayoutNameFromInfoFileName(java.lang.String infoFileName)
public ResourceBundle getResourceBundle()
public boolean processResources(LayoutXmlProcessor.ResourceInput input) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.xpath.XPathExpressionException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
javax.xml.xpath.XPathExpressionException
java.io.IOException
public static java.lang.String toSystemDependentPath(java.lang.String path)
public void writeLayoutInfoFiles(java.io.File xmlOutDir) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeLayoutInfoFiles(java.io.File xmlOutDir, JavaFileWriter writer) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public java.lang.String getInfoClassFullName()
public static java.lang.String generateExportFileName(java.lang.String fileName, java.lang.String dirName)
public java.lang.String getPackage()
public void writeEmptyInfoClass()