phenote.dataadapter.delimited
Class DelimitedChar
java.lang.Object
phenote.dataadapter.delimited.DelimitedChar
public class DelimitedChar
- extends java.lang.Object
I stole this from phenosyntaxchar, but modifying for tab delimited. will
initially hard code in the tab-delimiter, but eventually it should be generic to
handle any delimiter.
A phenotype character thats basically a dataadapter object for datamodel CharacterI.
|
Method Summary |
(package private) CharacterI |
getCharacter()
|
(package private) java.lang.String |
getDelimitedHeaderString()
|
(package private) java.lang.String |
getDelimitedString()
|
static java.lang.String |
makeDelimitedHeaderString()
the idea for the tab-delimited output writer is to
1) identify what the header/column names should be (like they present in the phenote
window: pub, entity, quality, etc.). |
(package private) void |
parseLine(java.lang.String line)
|
(package private) void |
setHeader(java.lang.String headerLine)
make DelimFieldParsers from headerLine, throw exception
if line fails to be a header |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelimitedChar
DelimitedChar()
DelimitedChar
DelimitedChar(CharacterI ch)
getDelimitedString
java.lang.String getDelimitedString()
throws DelimitedChar.BadCharException
- Throws:
DelimitedChar.BadCharException
getDelimitedHeaderString
java.lang.String getDelimitedHeaderString()
throws DelimitedChar.BadCharException
- Throws:
DelimitedChar.BadCharException
makeDelimitedHeaderString
public static java.lang.String makeDelimitedHeaderString()
- the idea for the tab-delimited output writer is to
1) identify what the header/column names should be (like they present in the phenote
window: pub, entity, quality, etc.). Need to include all column headers even if there
isn't data for them...they'd just have a blank column...in future will get smart to this.
basically its creating the headers based on the config file.
2) insert delimiter (initially "tab") between each field
3) write each phenotype character on an individual line under headers. one PC for each
hard return
should i include the config file on the first line?...maybe in the future
setHeader
void setHeader(java.lang.String headerLine)
throws DelimitedEx
- make DelimFieldParsers from headerLine, throw exception
if line fails to be a header
- Throws:
DelimitedEx
parseLine
void parseLine(java.lang.String line)
throws DelimitedEx
- Throws:
DelimitedEx
getCharacter
CharacterI getCharacter()