/*
- * Sone - Part.java - Copyright © 2010 David Roden
+ * Sone - Part.java - Copyright © 2010–2013 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
package net.pterodactylus.sone.text;
-import net.pterodactylus.util.io.Renderable;
-
/**
* A part is a single piece of information that can be displayed as a single
- * element.
+ * element. How the part is displayed is not part of the {@code Part}
+ * specification.
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public interface Part extends Renderable {
+public interface Part {
+
+ /**
+ * Returns the text contained in this part. This should return plain text
+ * without any format information.
+ *
+ * @return The plain text of this part
+ */
+ String getText();
- /* all required methods are inherited from {@link Renderable}. */
+ boolean isPlainText();
+ boolean isFreenetLink();
}