Skip to main content
Package: com.phoenix_int.aserver.util.scriptwrapper.api All Known Subinterfaces: InputFile, OutputFile All Known Implementing Classes: AbstractFile, CAEOutputFile, PHXRowFieldFile, XPathFile
Declaration:
Interface for files (not file variables) used in script wrappers

Nested Class Summary

Method Summary

Method Detail

backup

Backup the file on disk. File is at the same location with “.bac” appended to the end. If a file by that name already exists, it is deleted prior to moving.

close

Close the file and free up resources

delete

Delete the file from disk.

readTemplate

Read the template. In MCRE 7.1, this method was changed to never throw any exceptions. Reading the templates allows you to fill in default values if you can, but is not mandatory. Throws:

setFileToGenerateOrParse

Set the file to generate or to parse, depending on the mode Parameters:
  • fileName -

setTempEmbedded

This method applies only to ModelCenter and has no function in ModelCenter Remote Execution

setTemplateFile

Set the template file to read. If the template file is not specified, it defaults to the file that is parsed or generated, for Mode.PARSE or Mode.GENERATE, respectively. Parameters:
  • templateFileName - file name

setVariable

Sets the value of a variable Parameters:
  • name - variable name
  • value - variable value as a string
Throws:
  • PHXNoSuchObjectException