001
014
015 package com.liferay.portal.tools.propertiesdoc;
016
017 import com.liferay.portal.kernel.util.StringPool;
018
019
024 public class PropertyComment {
025
026 public PropertyComment(String comment) {
027 _comment = comment;
028
029 String[] lines = comment.split(StringPool.NEW_LINE);
030
031 boolean preformatted = false;
032
033 for (String line : lines) {
034 if (line.startsWith(PropertiesDocBuilder.INDENT)) {
035 preformatted = true;
036
037 break;
038 }
039 }
040
041 _preformatted = preformatted;
042 }
043
044 public String getComment() {
045 return _comment;
046 }
047
048 public boolean isPreformatted() {
049 return _preformatted;
050 }
051
052 private final String _comment;
053 private final boolean _preformatted;
054
055 }