public class EmptyElementSU extends DefaultSerializationUnit
<smooks-resource useragent="device/profile" selector="target-element-name"
path="org.milyn.cdres.serialize.EmptyElementSU">
<!-- (Optional) Should the empty element be printed "well-formed". Default true. -->
<param name="wellFormed">true/false</param>
</smooks-resource>
See SmooksResourceConfiguration.| Constructor and Description |
|---|
EmptyElementSU() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDetailDescription() |
String |
getShortDescription() |
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,
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,
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.
|
isRewriteEntities, setCloseEmptyElements, setRewriteEntities, writeAttributes, writeElementEnd, writeElementStartpublic void writeElementStart(Element element, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementStart in interface SerializationUnitwriteElementStart in class DefaultSerializationUnitelement - 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 writeElementEnd(Element element, Writer writer, ExecutionContext executionContext) throws IOException
SerializationUnitwriteElementEnd in interface SerializationUnitwriteElementEnd in class DefaultSerializationUnitelement - 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 SerializationUnitwriteElementText in class DefaultSerializationUnittext - 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 SerializationUnitwriteElementComment in class DefaultSerializationUnitcomment - 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 SerializationUnitwriteElementEntityRef in class DefaultSerializationUnitentityRef - 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 SerializationUnitwriteElementCDATA in class DefaultSerializationUnitcdata - 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 SerializationUnitwriteElementNode in class DefaultSerializationUnitnode - The node to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.IOException - Exception writing output.public String getShortDescription()
public String getDetailDescription()
public boolean writeChildElements()
SerializationUnitwriteChildElements in interface SerializationUnitwriteChildElements in class DefaultSerializationUnitCopyright © 2020. All rights reserved.