sortpom.content.NewlineText Maven / Gradle / Ivy
package sortpom.content;
import org.dom4j.tree.AbstractText;
/**
* The NewlineText is not really a special case of text, it is a placeholder that we want to keep a
* newline i the pom. The special handling of NewlineText is done in XmlProcessor.PatchedXMLWriter
*/
public class NewlineText extends AbstractText {
private static final long serialVersionUID = -7552189498553321263L;
/**
* This returns a String
representation of the NewlineText
, suitable for
* debugging.
*/
@Override
public String toString() {
return "[NewLine]";
}
@Override
public String getText() {
return "";
}
}