|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.xml.XMLDocumentWriter
public class XMLDocumentWriter
This is a xml implementation of a document writer.
| Constructor Summary | |
|---|---|
XMLDocumentWriter(Configuration cfg,
DocumentWriterOptions options)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
close()
This method is invoked upon the end of the processing. |
void |
configure(Configuration cfg)
Configure an object according to a given Configuration. |
java.lang.String |
getExtension()
Getter for the extension associated with this kind of output. |
void |
setFontFactory(CoreFontFactory factory)
Setter for the font factory. |
void |
setOutputStream(java.io.OutputStream outStream)
Setter for the output stream. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Setter for a named parameter. |
int |
shipout(Page page)
This is the entry point for the document writer. |
java.lang.Object |
visitAdjust(AdjustNode node,
java.lang.Object value2)
This method is called when an AdjustNode has been
encountered. |
java.lang.Object |
visitAfterMath(AfterMathNode node,
java.lang.Object value2)
This method is called when an AfterMathNode has
been encountered. |
java.lang.Object |
visitAlignedLeaders(AlignedLeadersNode node,
java.lang.Object value2)
This method is called when an AlignedLeadersNode
has been encountered. |
java.lang.Object |
visitBeforeMath(BeforeMathNode node,
java.lang.Object value2)
This method is called when a BeforeMathNode has
been encountered. |
java.lang.Object |
visitCenteredLeaders(CenteredLeadersNode node,
java.lang.Object value)
This method is called when a CenteredLeadersNode
has been encountered. |
java.lang.Object |
visitChar(CharNode node,
java.lang.Object value)
This method is called when a CharNode has been
encountered. |
java.lang.Object |
visitDiscretionary(DiscretionaryNode node,
java.lang.Object value)
This method is called when a DiscretionaryNode
has been encountered. |
java.lang.Object |
visitExpandedLeaders(ExpandedLeadersNode node,
java.lang.Object value)
This method is called when an ExpandedLeadersNode
has been encountered. |
java.lang.Object |
visitGlue(GlueNode node,
java.lang.Object value)
This method is called when a GlueNode has been
encountered. |
java.lang.Object |
visitHorizontalList(HorizontalListNode node,
java.lang.Object value)
This method is called when a HorizontalListNode
has been encountered. |
java.lang.Object |
visitInsertion(InsertionNode node,
java.lang.Object value)
This method is called when an InsertionNode has
been encountered. |
java.lang.Object |
visitKern(KernNode node,
java.lang.Object value)
This method is called when a KernNode has been
encountered. |
java.lang.Object |
visitLigature(LigatureNode node,
java.lang.Object value)
This method is called when a LigatureNode has been
encountered. |
java.lang.Object |
visitMark(MarkNode node,
java.lang.Object value)
This method is called when a MarkNode has been
encountered. |
java.lang.Object |
visitPenalty(PenaltyNode node,
java.lang.Object value)
This method is called when a PenaltyNode has been
encountered. |
java.lang.Object |
visitRule(RuleNode node,
java.lang.Object value)
This method is called when a RuleNode has been
encountered. |
java.lang.Object |
visitSpace(SpaceNode node,
java.lang.Object value)
This method is called when a SpaceNode has been
encountered. |
java.lang.Object |
visitVerticalList(VerticalListNode node,
java.lang.Object value)
This method is called when a VerticalListNode
has been encountered. |
java.lang.Object |
visitVirtualChar(VirtualCharNode node,
java.lang.Object value)
This method is called when a VirtualCharNode
has been encountered. |
java.lang.Object |
visitWhatsIt(WhatsItNode node,
java.lang.Object value)
This method is called when a WhatsItNode has been
encountered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDocumentWriter(Configuration cfg,
DocumentWriterOptions options)
cfg - the configurationoptions - the options| Method Detail |
|---|
public void close()
throws DocumentWriterException
DocumentWriter
close in interface DocumentWriterDocumentWriterExceptionDocumentWriter.close()
public void configure(Configuration cfg)
throws ConfigurationException
Configurable
configure in interface Configurablecfg - the configuration object to consider
ConfigurationException - in case that something went wrongConfigurable.configure(
org.extex.framework.configuration.Configuration)public java.lang.String getExtension()
DocumentWriter
getExtension in interface DocumentWriterDocumentWriter.getExtension()public void setFontFactory(CoreFontFactory factory)
setFontFactory in interface FontAwarefactory - the font factoryFontAware.setFontFactory(org.extex.font.CoreFontFactory)public void setOutputStream(java.io.OutputStream outStream)
SingleDocumentStream
setOutputStream in interface SingleDocumentStreamoutStream - the output streamSingleDocumentStream.setOutputStream(
java.io.OutputStream)
public void setParameter(java.lang.String name,
java.lang.String value)
DocumentWriter
setParameter in interface DocumentWritername - the name of the parametervalue - the value of the parameterDocumentWriter.setParameter(
java.lang.String, java.lang.String)
public int shipout(Page page)
throws GeneralException
DocumentWriter
If the page is null then no page has to be shipped and 0
has to be returned.
shipout in interface DocumentWriterpage - the page to send
GeneralException - in case of a general exceptionDocumentWriter.shipout(
org.extex.typesetter.type.page.Page)
public java.lang.Object visitAdjust(AdjustNode node,
java.lang.Object value2)
throws DocumentWriterException
NodeVisitorAdjustNode has been
encountered.
visitAdjust in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue2 - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitAdjust(AdjustNode,
java.lang.Object)
public java.lang.Object visitAfterMath(AfterMathNode node,
java.lang.Object value2)
throws DocumentWriterException
NodeVisitorAfterMathNode has
been encountered.
visitAfterMath in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue2 - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitAfterMath(AfterMathNode,
java.lang.Object)
public java.lang.Object visitAlignedLeaders(AlignedLeadersNode node,
java.lang.Object value2)
throws DocumentWriterException
NodeVisitorAlignedLeadersNode
has been encountered.
visitAlignedLeaders in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue2 - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitAlignedLeaders(AlignedLeadersNode,
java.lang.Object)
public java.lang.Object visitBeforeMath(BeforeMathNode node,
java.lang.Object value2)
throws DocumentWriterException
NodeVisitorBeforeMathNode has
been encountered.
visitBeforeMath in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue2 - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitBeforeMath(BeforeMathNode,
java.lang.Object)
public java.lang.Object visitCenteredLeaders(CenteredLeadersNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorCenteredLeadersNode
has been encountered.
visitCenteredLeaders in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitCenteredLeaders(CenteredLeadersNode,
java.lang.Object)
public java.lang.Object visitChar(CharNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorCharNode has been
encountered.
visitChar in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitChar(CharNode,
java.lang.Object)
public java.lang.Object visitDiscretionary(DiscretionaryNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorDiscretionaryNode
has been encountered.
visitDiscretionary in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitDiscretionary(DiscretionaryNode,
java.lang.Object)
public java.lang.Object visitExpandedLeaders(ExpandedLeadersNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorExpandedLeadersNode
has been encountered.
visitExpandedLeaders in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitExpandedLeaders(ExpandedLeadersNode,
java.lang.Object)
public java.lang.Object visitGlue(GlueNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorGlueNode has been
encountered.
visitGlue in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitGlue(GlueNode,
java.lang.Object)
public java.lang.Object visitHorizontalList(HorizontalListNode node,
java.lang.Object value)
throws GeneralException
NodeVisitorHorizontalListNode
has been encountered.
visitHorizontalList in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
GeneralException - in case of an errorNodeVisitor.visitHorizontalList(HorizontalListNode,
java.lang.Object)
public java.lang.Object visitInsertion(InsertionNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorInsertionNode has
been encountered.
visitInsertion in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitInsertion(InsertionNode,
java.lang.Object)
public java.lang.Object visitKern(KernNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorKernNode has been
encountered.
visitKern in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitKern(KernNode,
java.lang.Object)
public java.lang.Object visitLigature(LigatureNode node,
java.lang.Object value)
throws GeneralException
NodeVisitorLigatureNode has been
encountered.
visitLigature in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
GeneralException - in case of an errorNodeVisitor.visitLigature(LigatureNode,
java.lang.Object)
public java.lang.Object visitMark(MarkNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorMarkNode has been
encountered.
visitMark in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitMark(MarkNode,
java.lang.Object)
public java.lang.Object visitPenalty(PenaltyNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorPenaltyNode has been
encountered.
visitPenalty in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitPenalty(PenaltyNode,
java.lang.Object)
public java.lang.Object visitRule(RuleNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorRuleNode has been
encountered.
visitRule in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitRule(RuleNode,
java.lang.Object)
public java.lang.Object visitSpace(SpaceNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorSpaceNode has been
encountered.
visitSpace in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitSpace(SpaceNode,
java.lang.Object)
public java.lang.Object visitVerticalList(VerticalListNode node,
java.lang.Object value)
throws GeneralException
NodeVisitorVerticalListNode
has been encountered.
visitVerticalList in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
GeneralException - in case of an errorNodeVisitor.visitVerticalList(VerticalListNode,
java.lang.Object)
public java.lang.Object visitVirtualChar(VirtualCharNode node,
java.lang.Object value)
throws GeneralException
NodeVisitorVirtualCharNode
has been encountered.
visitVirtualChar in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
GeneralException - in case of an errorNodeVisitor.visitVirtualChar(
org.extex.typesetter.type.node.VirtualCharNode, java.lang.Object)
public java.lang.Object visitWhatsIt(WhatsItNode node,
java.lang.Object value)
throws DocumentWriterException
NodeVisitorWhatsItNode has been
encountered.
visitWhatsIt in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitWhatsIt(WhatsItNode,
java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||