ca.ucalgary.services.util
Class ACDFile
java.lang.Object
ca.ucalgary.services.util.ACDFile
public class ACDFile
- extends Object
A class representing the contents of an ACD file (EMBOSS program parameter specification).
For more details on the format, please see http://emboss.sourceforge.net/developers/acd/
Constructor Summary |
ACDFile(File acdFile)
Reads an EMBOSS ACD file and populates data structures representing the sections of the file
(see the getXXXSection() methods). |
ACDFile(InputStream is)
|
ACDFile(URL acdURL)
|
BLOCK_TYPE_KEY
public static final String BLOCK_TYPE_KEY
- See Also:
- Constant Field Values
BLOCK_NAME_KEY
public static final String BLOCK_NAME_KEY
- See Also:
- Constant Field Values
ACDFile
public ACDFile(File acdFile)
throws Exception
- Reads an EMBOSS ACD file and populates data structures representing the sections of the file
(see the getXXXSection() methods).
- Throws:
Exception
- if the file cannot be read or parsed
ACDFile
public ACDFile(URL acdURL)
throws Exception
- Throws:
Exception
ACDFile
public ACDFile(InputStream is)
throws Exception
- Throws:
Exception
getApplicationSection
public List<Map<String,String>> getApplicationSection()
getInputSection
public List<Map<String,String>> getInputSection()
- Returns a list representing the blocks of the section. Each block
is a map of key/value pairs corresponding to the tag-name/tag-value pairs
of the ACD block. Two hardcoded keys are the block name (BLOCK_NAME_KEY)
such as "sequence", "trim", "clean"
and the block type (BLOCK_TYPE_KEY) such as "list", "boolean", "range", etc.
getRequiredParamsSection
public List<Map<String,String>> getRequiredParamsSection()
getAdditionalParamsSection
public List<Map<String,String>> getAdditionalParamsSection()
getAdvancedParamsSection
public List<Map<String,String>> getAdvancedParamsSection()
getOutputSection
public List<Map<String,String>> getOutputSection()
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010