Package uk.ac.starlink.ttools.cea
Class ImplementationCeaWriter
java.lang.Object
uk.ac.starlink.util.XmlWriter
uk.ac.starlink.ttools.cea.CeaWriter
uk.ac.starlink.ttools.cea.ImplementationCeaWriter
CeaWriter implementation which writes an XML document giving
CEA Implementation instance. This is what goes in an
app-description.xml file local to a STILTS CEA installation
(I think).- Since:
- 1 Nov 2007
- Author:
- Mark Taylor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImplementationCeaWriter(PrintStream out, CeaTask[] tasks, CeaMetadata meta, boolean redirects, String cmdline) Constructor. -
Method Summary
Methods inherited from class uk.ac.starlink.ttools.cea.CeaWriter
endElement, main, startElement, startElement, writeDocument, writeInterfaces, writeParametersMethods inherited from class uk.ac.starlink.util.XmlWriter
addElement, endElement, formatAttribute, formatText, getIndent, getLevel, print, println, setOut, startElement, startElement, writeDeclaration
-
Field Details
-
SCHEMA_LOCATION
- See Also:
-
APPLICATION_ID
- See Also:
-
-
Constructor Details
-
ImplementationCeaWriter
public ImplementationCeaWriter(PrintStream out, CeaTask[] tasks, CeaMetadata meta, boolean redirects, String cmdline) Constructor.- Parameters:
out- output stream for XMLtasks- list of tasks to be described by the outputmeta- application description metadata objectredirects- true iff you want stdout/stderr parameters for standard output/error redirectioncmdline- command line string, used for logging within the output only
-
-
Method Details
-
getSchemaLocation
Description copied from class:CeaWriterReturns the URL of the schema to which the output of this object conforms.- Specified by:
getSchemaLocationin classCeaWriter- Returns:
- validation schema location
-
getUsage
-
configure
Description copied from class:CeaWriterHook for additional configuration of concrete subclasses using command-line flags. -
writeContent
Description copied from class:CeaWriterPerforms the implementation-specific output of XML elements. Invoked byCeaWriter.writeDocument(); presumably invokesCeaWriter.writeParameters()andCeaWriter.writeInterfaces().- Specified by:
writeContentin classCeaWriter- Throws:
SAXException
-