Package net.shibboleth.idp.installer
Class PropertiesWithComments.CommentedProperty
java.lang.Object
net.shibboleth.idp.installer.PropertiesWithComments.CommentedProperty
- Enclosing class:
- PropertiesWithComments
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Set a new value.protected void
write
(BufferedWriter writer) Write ourselves to the writer.
-
Field Details
-
property
The property name. -
value
The value - or the entire line if this is a comment. -
isComment
private boolean isCommentWhether this is a comment or a value.
-
-
Constructor Details
-
CommentedProperty
Constructor.- Parameters:
prop
- the property name.val
- the value or the entire line if this was a comment.comment
- whether this is a comment.
-
-
Method Details
-
setValue
Set a new value.- Parameters:
newValue
- what to set
-
write
Write ourselves to the writer.- Parameters:
writer
- what to write with- Throws:
IOException
- from the writer
-