com.phoenix_int.aserver.util.scriptwrapper.api
Class Hierarchy
ParseableFile,java.io.Closeable,java.lang.AutoCloseable
CAEOutputFile,PHXRowFieldFile,XPathFile
Declaration
Nested Class Summary
Nested classes/interfaces inherited from interface com.phoenix_int.aserver.util.scriptwrapper.api.ParseableFile
ParseableFile.Mode
Field Summary
Constructor Summary
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
mode
wrapper
parser
templateFileName
fileName
encoding
Constructor Detail
AbstractFile
PHXRowFieldFile constructor did not have a PHXScriptWrapperObject argument. This constructor handles the legacy case, which, in all likelihood, will continue to be used.
Parameters:
baseDir- base directory containing template files, etc.mode- parsing mode
AbstractFile
AbstractFile
wrapper- may be null for legacy constructor compatibilitydir-mode-
Method Detail
backup
backupin interfaceParseableFile
close
closein interfaceParseableFileclosein interfacejava.io.Closeableclosein interfacejava.lang.AutoCloseable
delete
deletein interfaceParseableFile
newParser
rFile- The file to openpmode- caching mode for underlying parser
java.io.IOException
ensureFileParser
mode- parser mode in current context
java.io.IOException
getEncoding
setEncoding
setEncoding
getRealFile
fileName-
actionByMode
ParseableFile.Mode
Parameters:
mode-
java.io.IOExceptioncom.phoenix_int.aserver.util.PHXInvalidFormatExceptionPHXNoSuchTokenExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionPHXNumberFormatExceptionPHXBookmarkNotFoundExceptionPHXSectionNotFoundException
readTemplate
readTemplatein interfaceParseableFile
java.io.IOExceptioncom.phoenix_int.aserver.util.PHXInvalidFormatExceptionPHXNoSuchTokenExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionPHXNumberFormatExceptionPHXBookmarkNotFoundExceptionPHXSectionNotFoundException
setFileToGenerateOrParse
setFileToGenerateOrParsein interfaceParseableFile
setTempEmbedded
setTempEmbeddedin interfaceParseableFile
setTemplateFile
Mode.PARSE or Mode.GENERATE, respectively.
Specified by:
setTemplateFilein interfaceParseableFile
templateFileName- file name
setVariable
setVariablein interfaceParseableFile
name- variable namevalue- variable value as a string
PHXNoSuchObjectException
transferVars
PHXRowFieldFile.defineVar(String, String, boolean, String). Variables defined using PHXScriptWrapperObject.addVariable(String, String, boolean) must be explicitly transferred using methods of the concrete implementation class
Parameters:
mode-
java.io.IOExceptioncom.phoenix_int.aserver.util.PHXInvalidFormatExceptionPHXNoSuchTokenExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionPHXNumberFormatExceptionPHXBookmarkNotFoundExceptionPHXSectionNotFoundException