Package net.shibboleth.idp.installer
Class PropertiesWithComments.CommentedProperty
- java.lang.Object
-
- net.shibboleth.idp.installer.PropertiesWithComments.CommentedProperty
-
- Enclosing class:
- PropertiesWithComments
private static class PropertiesWithComments.CommentedProperty extends Object
A POJO which looks like a property. It may be a commented property from a line like this "#prop=value" or a property prop=value.
-
-
Constructor Summary
Constructors Constructor Description CommentedProperty(String prop, String val, boolean comment)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetValue(String newValue)Set a new value.protected voidwrite(BufferedWriter writer)Write ourselves to the writer.
-
-
-
Method Detail
-
setValue
protected void setValue(String newValue)
Set a new value.- Parameters:
newValue- what to set
-
write
protected void write(BufferedWriter writer) throws IOException
Write ourselves to the writer.- Parameters:
writer- what to write with- Throws:
IOException- from the writer
-
-