Package org.miaixz.bus.setting.format
Class PropertyFormatter
java.lang.Object
org.miaixz.bus.setting.format.AbstractFormatter<IniProperty>
org.miaixz.bus.setting.format.PropertyFormatter
- All Implemented Interfaces:
ElementFormatter<IniProperty>
将字符串值格式设置为
IniProperty- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyFormatter(char split) PropertyFormatter(char split, CommentFormatter commentElementFormatter) PropertyFormatter(CommentFormatter commentElementFormatter) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck this value.此方法不会检查值,因此您应该首先check(String)但是,不检查并不一定会报告错误,但可能会导致违规Methods inherited from class org.miaixz.bus.setting.format.AbstractFormatter
getCommentElementFormatter, setCommentElementFormatter
-
Constructor Details
-
PropertyFormatter
-
PropertyFormatter
public PropertyFormatter() -
PropertyFormatter
-
PropertyFormatter
public PropertyFormatter(char split)
-
-
Method Details
-
check
Description copied from interface:ElementFormattercheck this value.- Parameters:
value- value- Returns:
- true if can.
-
format
此方法不会检查值,因此您应该首先check(String)但是,不检查并不一定会报告错误,但可能会导致违规- Parameters:
value- a String valueline- line number- Returns:
IniProperty, can not be null.
-