TargetImpl extends XliffElementImpl implements Target { public String getPlainText() { StringBuilder sb = new StringBuilder(); for (TextFragment fragment : content) { sb.append(fragment.getPlainText()); } return sb.toString(); } TargetImpl(List<? extends TextFragment> content);  TargetImpl(Element element); @Override List<? extends Node> getChildren(); List<? extends TextFragment> getContent(); Coord getCoord(); CssStyle getCssStyle(); EquivTrans getEquivTrans(); ExStyle getExStyle(); Font getFont(); Collection<NonXliffAttribute> getNonXliffAttributes(); PhaseName getPhaseName(); String getPlainText(); ResName getResName(); ResType getResType(); State getState(); StateQualifier getStateQualifier(); Style getStyle(); com.sap.mlt.xliff12.api.attribute.Ts getTs(); XmlLang getXmlLang(); void setContent(List<? extends TextFragment> content); void setCoord(Coord coord); void setCssStyle(CssStyle cssStyle); void setEquivTrans(EquivTrans equivTrans); void setExStyle(ExStyle exStyle); void setFont(Font font); void setNonXliffAttributes(
			Collection<NonXliffAttribute> nonXliffAttributes); void setPhaseName(PhaseName phaseName); void setResName(ResName resName); void setResType(ResType resType); void setState(State state); void setStateQualifier(StateQualifier stateQualifier); void setStyle(Style style); void setTs(com.sap.mlt.xliff12.api.attribute.Ts ts); void setXmlLang(XmlLang xmlLang);  }
@Test public void testGetPlainText() { TargetImpl target = createDefaultTarget(); assertEquals("sometext", target.getPlainText()); }