| java.lang.Object org.griphyn.vdl.toolkit.Toolkit org.griphyn.vdl.toolkit.VDLHelper
All known Subclasses: org.griphyn.vdl.toolkit.VDLc, org.griphyn.vdl.toolkit.UpdateVDC,
Constructor Summary | |
public | VDLHelper(String appName) ctor: Constructs a new instance object with the given application name.
Parameters: appName - is the name of the shell wrapper with which to report. | public | VDLHelper(String appName, int verbosity) Default ctor: Constructs a new instance object with the given
application name.
Parameters: appName - is the name of the shell wrapper with which to report. |
VDLHelper | public VDLHelper(String appName)(Code) | | ctor: Constructs a new instance object with the given application name.
Parameters: appName - is the name of the shell wrapper with which to report. |
VDLHelper | public VDLHelper(String appName, int verbosity)(Code) | | Default ctor: Constructs a new instance object with the given
application name.
Parameters: appName - is the name of the shell wrapper with which to report. Parameters: verbosity - sets the verbosity level of the "app" logging queue. |
addFileToVDC | public boolean addFileToVDC(String filename, Define define, Writer reject, boolean overwrite) throws VDLtParserException, VDLtScannerException, IOException(Code) | | Determines, if input file is VDLt or VDLx. Parses VDLt into a
temporary VDLx file. Adds VDLx into the VDC.
Parameters: filename - is the file to add, either VDLt or VDLx content. Parameters: define - is a VDC connector to add to the VDC Parameters: reject - is a writer to gather definitions that were reject fromthe VDC, depending on the overwrite mode. If null , no rejectswill be gathered. Parameters: overwrite - determines insert or update mode. the result from adding the XML into the VDC See Also: org.griphyn.vdl.directive.Define.updateVDC(ReaderWriterboolean) |
addFilesToVDC | public Set addFilesToVDC(String[] args, int start, Define define, Writer reject, boolean overwrite)(Code) | | Determines, if input file is VDLt or VDLx. Parses VDLt into a
temporary VDLx file. Adds VDLx into the VDC. Skips to next file on
error.
Parameters: args - is the argument vector of main Parameters: start - is the start of filenames in the argument vector. Parameters: define - is a VDC connector to add to the VDC Parameters: reject - is a writer to gather definitions that were reject fromthe VDC, depending on the overwrite mode. If null , no rejectswill be gathered. Parameters: overwrite - determines insert or update mode. a set of filenames which reported errors. See Also: VDLHelper.addFileToVDC(String,Define,Writer,boolean) |
isXML | public boolean isXML(String filename) throws IOException(Code) | | Determines if a file is VDLx or VDLt. It does so by
expecting the ubiquitous XML preamble in the VDLx.
Parameters: filename - is the name of the file true if the file is XML, false otherwise. |
|
|