Add method to get the plain text of a part.
[Sone.git] / src / main / java / net / pterodactylus / sone / text / Part.java
index 76e80ef..79c59dc 100644 (file)
@@ -26,6 +26,12 @@ package net.pterodactylus.sone.text;
  */
 public interface Part {
 
  */
 public interface Part {
 
-       /* no methods. */
+       /**
+        * Returns the text contained in this part. This should return plain text
+        * without any format information.
+        *
+        * @return The plain text of this part
+        */
+       public String getText();
 
 }
 
 }