projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/update-about-sone' into next
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
text
/
PartContainer.java
diff --git
a/src/main/java/net/pterodactylus/sone/text/PartContainer.java
b/src/main/java/net/pterodactylus/sone/text/PartContainer.java
index
384e8ae
..
7d8acd6
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/text/PartContainer.java
+++ b/
src/main/java/net/pterodactylus/sone/text/PartContainer.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - PartContainer.java - Copyright © 2010 David Roden
+ * Sone - PartContainer.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
*
* 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
@@
-81,6
+81,22
@@
public class PartContainer implements Part, Iterable<Part> {
}
//
}
//
+ // PART METHODS
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getText() {
+ StringBuilder partText = new StringBuilder();
+ for (Part part : parts) {
+ partText.append(part.getText());
+ }
+ return partText.toString();
+ }
+
+ //
// ITERABLE METHODS
//
// ITERABLE METHODS
//