X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FPart.java;h=8dee69be2baddcdb21639e5ad5f64e197cd2dbe5;hp=b9083b7617437f3fc1d4346c80650686ba8dcf0e;hb=419098bcd6215125408b29e60bd888e60979d37b;hpb=e8411efc4eaff6418cad496eb34fd7bc260eb9cd diff --git a/src/main/java/net/pterodactylus/sone/text/Part.java b/src/main/java/net/pterodactylus/sone/text/Part.java index b9083b7..8dee69b 100644 --- a/src/main/java/net/pterodactylus/sone/text/Part.java +++ b/src/main/java/net/pterodactylus/sone/text/Part.java @@ -1,5 +1,5 @@ /* - * Sone - Part.java - Copyright © 2010 David Roden + * Sone - Part.java - Copyright © 2010–2015 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 @@ -17,16 +17,21 @@ 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 David ‘Bombe’ Roden */ -public interface Part extends Renderable { +public interface Part { - /* all required methods are inherited from {@link Renderable}. */ + /** + * 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(); }