protected class PropertiesWithComments.CommentedProperty extends Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isComment
Whether this is a comment or a value.
|
private String |
property
The property name.
|
private String |
value
The value - or the entire line if this is a comment.
|
| Constructor and Description |
|---|
PropertiesWithComments.CommentedProperty(String prop,
String val,
boolean comment)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
setValue(String newValue)
Set a new value.
|
protected void |
write(BufferedWriter writer)
Write ourselves to the writer.
|
private final String property
private String value
private boolean isComment
protected void setValue(String newValue)
newValue - what to setprotected void write(BufferedWriter writer) throws IOException
writer - what to write withIOException - from the writerCopyright © 1999–2015. All rights reserved.