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 for (String line : lines) {
032 if (line.startsWith(PropertiesDocBuilder.INDENT)) {
033 _preformatted = true;
034
035 return;
036 }
037 }
038 }
039
040 public String getComment() {
041 return _comment;
042 }
043
044 public boolean isPreformatted() {
045 return _preformatted;
046 }
047
048 private String _comment;
049 private boolean _preformatted;
050
051 }