|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SerializationUnit
W3C Node Serailization interface definition.
Implementations of this interface are applied to the content during the Serialisation phase. This interface allows element targeted (by device, profile, DTD info etc) serialization code to be implemented. It gives control over how an element is "printed" to the target device. Serialization Units are defined in the .cdrl file (in .cdrar file(s)) in the very same way as any other content delivery resource (Assembly Units, Processing Units, DTDs etc). Implementations must be stateless in nature. Only one Serialisation Unit is applied to each element. If more than one Serialization Unit is applicable to a given element, the most specific Serialization Unit is choosen. SeeSmooksResourceConfigurationSortComparator.
See Delivery Overview.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
void writeElementStart(Element element,
Writer writer,
ExecutionContext executionContext)
throws IOException
element - The element start to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.
IOException - Exception writing output.
void writeElementEnd(Element element,
Writer writer,
ExecutionContext executionContext)
throws IOException
element - The element end to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.
IOException - Exception writing output.
void writeElementText(Text text,
Writer writer,
ExecutionContext executionContext)
throws IOException
text - The Text object to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.
IOException - Exception writing output.
void writeElementComment(Comment comment,
Writer writer,
ExecutionContext executionContext)
throws IOException
comment - The comment o write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.
IOException - Exception writing output.
void writeElementEntityRef(EntityReference entityRef,
Writer writer,
ExecutionContext executionContext)
throws IOException
entityRef - The entity reference to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.
IOException - Exception writing output.
void writeElementCDATA(CDATASection cdata,
Writer writer,
ExecutionContext executionContext)
throws IOException
cdata - The CDATA section to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.
IOException - Exception writing output.
void writeElementNode(Node node,
Writer writer,
ExecutionContext executionContext)
throws IOException
node - The node to write.writer - The writer to be written to.executionContext - ExecutionContext instance for the delivery context.
IOException - Exception writing output.boolean writeChildElements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||