/** * Generates an XLIFF string from the content. * This is the same as calling this.toString(1, true, false, false, false, true). * @return The string formatted in XLIFF. */ @Override public String toString () { return toString(1, true, false, false, false, true, null); }
/** * Generates an XLIFF string from the content. * This is the same as calling this.toString(1, true, false, gMode, false, true) and setting gMode. * @param gMode True to use g/x markup, false to use bpt/ept/ph * @return The string formatted in XLIFF. */ public String toString (boolean gMode) { return toString(1, true, false, gMode, false, true, null); }
/** * Converts from coded text to XLIFF. * * @param fragment * the fragment to convert. * @return The resulting XLIFF string. * @see #fromXLIFF(Element, TextFragment) */ public String toXLIFF (TextFragment fragment) { if ( fragment == null ) { return ""; } fmt.setContent(fragment); return fmt.toString(); }
tmp.append(innerContent.toString(quoteMode, escapeGT, false, gMode, codeAttrs, includeIts, trgLocId));