gov.nasa.pds.ltdt.testLabel
Class TestLabelGenerator
java.lang.Object
gov.nasa.pds.ltdt.testLabel.TestLabelGenerator
public class TestLabelGenerator
- extends java.lang.Object
This class will generate a test label based on a compliant, label template.
Any variables found in the template will be replaced by an appropriate
test value, to be used for the purposes of checking that the label template
is compliant according to PDS standards.
- Author:
- mcayanan
Method Summary |
void |
createTestLabel(java.io.InputStream labelTemplate,
gov.nasa.pds.tools.dict.Dictionary dictionary,
java.io.OutputStream out)
Writes the test label to a given output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestLabelGenerator
public TestLabelGenerator()
- Constructor
createTestLabel
public void createTestLabel(java.io.InputStream labelTemplate,
gov.nasa.pds.tools.dict.Dictionary dictionary,
java.io.OutputStream out)
throws java.io.IOException,
gov.nasa.pds.tools.dict.type.InvalidTypeException,
gov.nasa.pds.tools.dict.type.UnsupportedTypeException,
gov.nasa.pds.tools.dict.parser.UnknownDefinitionException
- Writes the test label to a given output stream.
- Parameters:
labelTemplate
- A stream representation of a PDS label template.dictionary
- A dictionaryout
- An output stream where the test label will be stored.
- Throws:
java.io.IOException
gov.nasa.pds.tools.dict.type.InvalidTypeException
gov.nasa.pds.tools.dict.type.UnsupportedTypeException
gov.nasa.pds.tools.dict.parser.UnknownDefinitionException
- If there were missing element definitions
for keywords that contained a variable.
Copyright © 2005-2008 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.