/*
- * Sone - PartContainer.java - Copyright © 2010–2012 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
}
//
+ // PART METHODS
+ //
+
+ @Override
+ public String getText() {
+ StringBuilder partText = new StringBuilder();
+ for (Part part : parts) {
+ partText.append(part.getText());
+ }
+ return partText.toString();
+ }
+
+ //
// ITERABLE METHODS
//
- /**
- * {@inheritDoc}
- */
@Override
@SuppressWarnings("synthetic-access")
public Iterator<Part> iterator() {