public class PropertyFormatter extends AbstractFormatter<IniProperty>
IniProperty| Constructor and Description |
|---|
PropertyFormatter() |
PropertyFormatter(char split) |
PropertyFormatter(char split,
CommentFormatter commentElementFormatter) |
PropertyFormatter(CommentFormatter commentElementFormatter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String value)
check this value.
|
IniProperty |
format(String value,
int line)
此方法不会检查值,因此您应该首先
check(String)
但是,不检查并不一定会报告错误,但可能会导致违规 |
getCommentElementFormatter, setCommentElementFormatterpublic PropertyFormatter(CommentFormatter commentElementFormatter)
public PropertyFormatter()
public PropertyFormatter(char split,
CommentFormatter commentElementFormatter)
public PropertyFormatter(char split)
public boolean check(String value)
ElementFormattervalue - valuepublic IniProperty format(String value, int line)
check(String)
但是,不检查并不一定会报告错误,但可能会导致违规value - a String valueline - line numberIniProperty, can not be null.Copyright © 2022. All rights reserved.