public class ExtensionsWriter extends Object
| Constructor and Description |
|---|
ExtensionsWriter()
Creates a
ExtensionsWriter that use the current platform line-break. |
ExtensionsWriter(String lineBreak)
Creates a
ExtensionsWriter and sets the type of line-breaks to use. |
| Modifier and Type | Method and Description |
|---|---|
String |
buildExtAttributes(ExtAttributes attributes,
Stack<NSContext> nsStack)
Builds the XLIFF output for a giveb
ExtAttributes object. |
String |
buildExtChildren(List<IExtChild> list,
Stack<NSContext> nsStack)
Builds the XLIFF output for a given list of
IExtChild objects. |
String |
buildExtElements(IWithExtElements parent,
Stack<NSContext> nsStack)
Builds the XLIFF output for a given object that has extension objects.
|
void |
setLineBreak(String lineBreak)
Sets the line break to use for this document.
|
public ExtensionsWriter()
ExtensionsWriter that use the current platform line-break.public ExtensionsWriter(String lineBreak)
ExtensionsWriter and sets the type of line-breaks to use.lineBreak - the line-break to use.public void setLineBreak(String lineBreak)
create() methods.
By default the line-break used is the one of the OS.lineBreak - the line break to use for this document.public String buildExtChildren(List<IExtChild> list, Stack<NSContext> nsStack)
IExtChild objects.list - the list to output.nsStack - the namespace context stack, or null to use a new one with just XLIFF in context.public String buildExtElements(IWithExtElements parent, Stack<NSContext> nsStack)
parent - the object with the extension objects.nsStack - the namespace context stack, or null to use a new one with just XLIFF in context.public String buildExtAttributes(ExtAttributes attributes, Stack<NSContext> nsStack)
ExtAttributes object.attributes - the object to output.nsStack - the namespace context stack, or null to use a new one with just XLIFF in context.Copyright © 2020. All rights reserved.