Package net.sf.okapi.lib.xliff2.renderer
Class XLIFFFragmentRenderer
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.renderer.XLIFFFragmentRenderer
-
- All Implemented Interfaces:
Iterable<IFragmentObject>,IFragmentRenderer
public class XLIFFFragmentRenderer extends Object implements IFragmentRenderer
ImplementsIFragmentRendererfor the XLIFF 2 format.Note that the inline tags representation uses only
<sc>/<ec>and<sm>/<em>.
-
-
Constructor Summary
Constructors Constructor Description XLIFFFragmentRenderer(Fragment fragment, Stack<NSContext> nsStack)Creates a newXLIFFFragmentRendererobject for a given fragment and namespace context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<IFragmentObject>iterator()voidset(Fragment fragment, Stack<NSContext> nsStack)Sets the fragment to iterate through and the namespace context.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
XLIFFFragmentRenderer
public XLIFFFragmentRenderer(Fragment fragment, Stack<NSContext> nsStack)
Creates a newXLIFFFragmentRendererobject for a given fragment and namespace context.- Parameters:
fragment- the fragment to associate with this renderer.nsStack- the namespace stack (can be null).
-
-
Method Detail
-
set
public void set(Fragment fragment, Stack<NSContext> nsStack)
Description copied from interface:IFragmentRendererSets the fragment to iterate through and the namespace context.- Specified by:
setin interfaceIFragmentRenderer- Parameters:
fragment- the fragment to iterate through.nsStack- the namespace context (can be null).
-
iterator
public Iterator<IFragmentObject> iterator()
- Specified by:
iteratorin interfaceIterable<IFragmentObject>
-
-