public class DefaultSerializationUnit extends Object implements SerializationUnit
| Constructor and Description |
|---|
DefaultSerializationUnit() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRewriteEntities() |
void |
setCloseEmptyElements(boolean closeEmptyElements) |
void |
setRewriteEntities(boolean rewriteEntities) |
protected void |
writeAttributes(NamedNodeMap attributes,
Writer writer)
Write the element attributes.
|
boolean |
writeChildElements()
Write the child elements of the element this SerializationUnit is being applied to.
|
void |
writeElementCDATA(CDATASection cdata,
Writer writer,
ExecutionContext executionContext)
Write element CDATA section.
|
void |
writeElementComment(Comment comment,
Writer writer,
ExecutionContext executionContext)
Write element comment.
|
void |
writeElementEnd(Element element,
Writer writer) |
void |
writeElementEnd(Element element,
Writer writer,
ExecutionContext executionContext)
Write the element end portion; close the element.
|
void |
writeElementEntityRef(EntityReference entityRef,
Writer writer,
ExecutionContext executionContext)
Write element entity reference object.
|
void |
writeElementNode(Node node,
Writer writer,
ExecutionContext executionContext)
Write element Node object.
|
void |
writeElementStart(Element element,
Writer writer) |
void |
writeElementStart(Element element,
Writer writer,
ExecutionContext executionContext)
Write the element start portion; the element name and it's
attributes.
|
void |
writeElementText(Text text,
Writer writer,
ExecutionContext executionContext)
Write element text.
|
@ConfigParam(defaultVal="false") public void setCloseEmptyElements(boolean closeEmptyElements)
@ConfigParam(name="entities.rewrite", defaultVal="true") public void setRewriteEntities(boolean rewriteEntities)
public boolean isRewriteEntities()
public void writeElementStart(Element element, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementStart in interface SerializationUnitelement - The element start to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public void writeElementStart(Element element, Writer writer) throws IOException
IOExceptionprotected void writeAttributes(NamedNodeMap attributes, Writer writer) throws IOException
attributes - The element attibutes.writer - The writer to be written to.IOException - Exception writing output.public void writeElementEnd(Element element, Writer writer) throws IOException
IOExceptionpublic void writeElementEnd(Element element, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementEnd in interface SerializationUnitelement - The element end to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public void writeElementText(Text text, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementText in interface SerializationUnittext - The Text object to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public void writeElementComment(Comment comment, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementComment in interface SerializationUnitcomment - The comment o write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public void writeElementEntityRef(EntityReference entityRef, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementEntityRef in interface SerializationUnitentityRef - The entity reference to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public void writeElementCDATA(CDATASection cdata, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementCDATA in interface SerializationUnitcdata - The CDATA section to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public void writeElementNode(Node node, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementNode in interface SerializationUnitnode - The node to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public boolean writeChildElements()
SerializationUnitwriteChildElements in interface SerializationUnitCopyright © 2020. All rights reserved.