Class TemplateFileOperation
java.lang.Object
common.xml.TemplateFileOperation
File operations on the JSIMgraph model templates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Filestatic File[]findTemplateFiles(String dir) static List<TemplateData> getDefaultTemplatesFromIndex(String filename) static List<TemplateData> getTemplatesFromIndex(String filename) static voidparseIndexXML(String filename, AddingPanelData data) static voidparseSiteXML(AddingPanelData data) static StringreadManifest(File file, String attr) static TemplateData[]readTemplates(String dir) static voidwriteSiteXML(String siteName, String siteAddress)
-
Constructor Details
-
TemplateFileOperation
public TemplateFileOperation()
-
-
Method Details
-
download
- Throws:
IOException
-
parseIndexXML
public static void parseIndexXML(String filename, AddingPanelData data) throws SAXException, IOException - Throws:
SAXExceptionIOException
-
getDefaultTemplatesFromIndex
public static List<TemplateData> getDefaultTemplatesFromIndex(String filename) throws SAXException, IOException - Throws:
SAXExceptionIOException
-
getTemplatesFromIndex
public static List<TemplateData> getTemplatesFromIndex(String filename) throws SAXException, IOException - Throws:
SAXExceptionIOException
-
parseSiteXML
- Throws:
SAXExceptionIOException
-
writeSiteXML
public static void writeSiteXML(String siteName, String siteAddress) throws ParserConfigurationException, FileNotFoundException, SAXException, IOException, TransformerFactoryConfigurationError, TransformerException -
findTemplateFiles
-
readManifest
- Throws:
IOException
-
readTemplates
-