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
-
public class ImplementationCeaWriter extends CeaWriter
CeaWriter implementation which writes an XML document giving CEA Implementation instance. This is what goes in anapp-description.xml
file local to a STILTS CEA installation (I think).- Since:
- 1 Nov 2007
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
APPLICATION_ID
static java.lang.String
SCHEMA_LOCATION
-
Constructor Summary
Constructors Constructor Description ImplementationCeaWriter(java.io.PrintStream out, CeaTask[] tasks, CeaMetadata meta, boolean redirects, java.lang.String cmdline)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
configure(java.lang.String[] args)
Hook for additional configuration of concrete subclasses using command-line flags.java.lang.String
getSchemaLocation()
Returns the URL of the schema to which the output of this object conforms.static java.lang.String
getUsage()
protected void
writeContent()
Performs the implementation-specific output of XML elements.-
Methods inherited from class uk.ac.starlink.ttools.cea.CeaWriter
endElement, main, startElement, startElement, writeDocument, writeInterfaces, writeParameters
-
-
-
-
Field Detail
-
SCHEMA_LOCATION
public static final java.lang.String SCHEMA_LOCATION
- See Also:
- Constant Field Values
-
APPLICATION_ID
public static final java.lang.String APPLICATION_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImplementationCeaWriter
public ImplementationCeaWriter(java.io.PrintStream out, CeaTask[] tasks, CeaMetadata meta, boolean redirects, java.lang.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 Detail
-
getSchemaLocation
public java.lang.String getSchemaLocation()
Description copied from class:CeaWriter
Returns the URL of the schema to which the output of this object conforms.- Specified by:
getSchemaLocation
in classCeaWriter
- Returns:
- validation schema location
-
getUsage
public static java.lang.String getUsage()
-
configure
public int configure(java.lang.String[] args)
Description copied from class:CeaWriter
Hook for additional configuration of concrete subclasses using command-line flags.
-
writeContent
protected void writeContent() throws org.xml.sax.SAXException
Description copied from class:CeaWriter
Performs the implementation-specific output of XML elements. Invoked byCeaWriter.writeDocument()
; presumably invokesCeaWriter.writeParameters()
andCeaWriter.writeInterfaces()
.- Specified by:
writeContent
in classCeaWriter
- Throws:
org.xml.sax.SAXException
-
-