Package de.dlr.proseo.model.joborder
Class InputOutput
java.lang.Object
de.dlr.proseo.model.joborder.InputOutput
Input or Output information
For details see Generic IPF Interface Specification issue 1 revision 8 -
03/08/2009 MMFI-GSEG-EOPG-TN-07-0003
- Author:
- Ernst Melchinger *
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFile name type for ZIP archives (non-standard extension!)static final StringFile name type for directoriesstatic final StringFile name type for logical filesstatic final StringFile name type for physical filesstatic final StringFile name type for regular expressionsstatic final StringFile name type for file name stemsstatic final StringType string for input elementsstatic final StringType string for output elements -
Constructor Summary
ConstructorsConstructorDescriptionInputOutput(String type) Create an Input/Output element of the given typeInputOutput(String fileType, String fileNameType, String type, String productID) Create an Input/Output element with all attributes set -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd contents of this to XML node parentElement.Gets the list of file namesGets the file name typeGets the file typeGets the product IDvoidRead info from XML sub treevoidsetFileNames(List<IpfFileName> fileNames) Sets file namesvoidsetFileNameType(String fileNameType) Sets the file name typevoidsetFileType(String fileType) Sets the file typevoidsetProductID(String productID) Sets the product IDvoidsetTimeIntervals(List<TimeInterval> timeIntervals) Sets time intervals
-
Field Details
-
IO_TYPE_INPUT
Type string for input elements- See Also:
-
IO_TYPE_OUTPUT
Type string for output elements- See Also:
-
FN_TYPE_PHYSICAL
File name type for physical files- See Also:
-
FN_TYPE_LOGICAL
File name type for logical files- See Also:
-
FN_TYPE_STEM
File name type for file name stems- See Also:
-
FN_TYPE_REGEXP
File name type for regular expressions- See Also:
-
FN_TYPE_DIRECTORY
File name type for directories- See Also:
-
FN_TYPE_ARCHIVE
File name type for ZIP archives (non-standard extension!)- See Also:
-
-
Constructor Details
-
InputOutput
Create an Input/Output element of the given type- Parameters:
type- the input/output type (either 'Input' or 'Output')- Throws:
IllegalArgumentException- if the given type is not correct
-
InputOutput
public InputOutput(String fileType, String fileNameType, String type, String productID) throws IllegalArgumentException Create an Input/Output element with all attributes set- Parameters:
fileType- the file typefileNameType- the file name type ('Physical', 'Logical', 'Stem', 'Regexp', 'Directory')type- the input/output type (either 'Input' or 'Output')productID- the product database ID- Throws:
IllegalArgumentException
-
-
Method Details
-
getProductID
Gets the product ID- Returns:
- the productID
-
setProductID
Sets the product ID- Parameters:
productID- the productID to set
-
getFileType
Gets the file type- Returns:
- the fileType
-
setFileType
Sets the file type- Parameters:
fileType- the fileType to set
-
getFileNameType
Gets the file name type- Returns:
- the fileNameType
-
setFileNameType
Sets the file name type- Parameters:
fileNameType- the file name type to set ('Physical', 'Logical', 'Stem', 'Regexp', 'Directory')- Throws:
IllegalArgumentException
-
getFileNames
Gets the list of file names- Returns:
- the list of file names
-
setFileNames
Sets file names- Parameters:
fileNames- file names to set
-
getTimeIntervals
- Returns:
- the timeIntervals
-
setTimeIntervals
Sets time intervals- Parameters:
timeIntervals- the time intervals to set
-
buildXML
Add contents of this to XML node parentElement. Use doc to create elements- Parameters:
doc- The DocumentparentElement- The node to add this as childprosEOAttributes- if true, write attributes of prosEO specific data
-
read
Read info from XML sub tree- Parameters:
thisNode- XML node containing information
-