public class SectionFormatter extends AbstractFormatter<IniSection>
IniSection| Constructor and Description |
|---|
SectionFormatter() |
SectionFormatter(char head,
char end) |
SectionFormatter(char head,
char end,
CommentFormatter commentElementFormatter) |
SectionFormatter(CommentFormatter commentElementFormatter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String value)
check this value.
|
IniSection |
format(String value,
int line)
this method will not check value, so you should
check(String) first. |
getCommentElementFormatter, setCommentElementFormatterpublic SectionFormatter(CommentFormatter commentElementFormatter)
public SectionFormatter()
public SectionFormatter(char head,
char end,
CommentFormatter commentElementFormatter)
public SectionFormatter(char head,
char end)
public boolean check(String value)
HEAD value, pass.value - valuepublic IniSection format(String value, int line)
check(String) first.
However, not checking will not necessarily report an error, but may result in non-compliance.value - a String valueline - line numberIniSection, can not be null.Copyright © 2021. All rights reserved.