public class SentenceLine extends Object
| Constructor and Description |
|---|
SentenceLine()
Instantiates a new Sentence line.
|
SentenceLine(String line)
Instantiates a new Sentence line.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear.
|
int |
getChecksum()
Gets checksum.
|
String |
getChecksumField()
Gets checksum field.
|
String |
getChecksumString()
Gets checksum string.
|
Character |
getDelimiter()
Gets delimiter.
|
List<String> |
getFields()
Gets fields.
|
String |
getFormatter()
Gets formatter.
|
String |
getLine()
Gets line.
|
int |
getPostfixStart()
Gets postfix start.
|
String |
getPrefix()
Gets prefix.
|
String |
getSentence()
Gets sentence.
|
String |
getSentenceHead()
Gets sentence head.
|
String |
getTalker()
Gets talker.
|
boolean |
hasSentence()
Has sentence boolean.
|
boolean |
isChecksumMatch()
Is checksum match boolean.
|
boolean |
isFormatter(String... formatters)
Is formatter boolean.
|
boolean |
isProprietary()
Is proprietary boolean.
|
void |
parse(String line)
Parse.
|
void |
setDelimiter(Character delimiter)
Sets delimiter.
|
void |
setFormatter(String formatter)
Sets formatter.
|
void |
setLine(String line)
Sets line.
|
void |
setPrefix(String prefix)
Sets prefix.
|
void |
setSentence(String sentence)
Sets sentence.
|
void |
setTalker(String talker)
Sets talker.
|
String |
toString() |
public SentenceLine()
public SentenceLine(String line)
line - the linepublic void clear()
public void parse(String line)
line - the linepublic boolean isFormatter(String... formatters)
formatters - the formatterspublic boolean hasSentence()
public int getPostfixStart()
public boolean isChecksumMatch()
public String getSentenceHead()
public boolean isProprietary()
public int getChecksum()
public String getChecksumString()
public String getChecksumField()
public String getLine()
public void setLine(String line)
line - the linepublic String getTalker()
public void setTalker(String talker)
talker - the talkerpublic String getFormatter()
public void setFormatter(String formatter)
formatter - the formatterpublic Character getDelimiter()
public void setDelimiter(Character delimiter)
delimiter - the delimiterpublic String getPrefix()
public void setPrefix(String prefix)
prefix - the prefixpublic String getSentence()
public void setSentence(String sentence)
sentence - the sentenceCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.