|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.foray.fotree.FOTreeBuilder
public class FOTreeBuilder
SAX Handler that builds the formatting object tree.
Constructor Summary | |
---|---|
FOTreeBuilder(FoTreeServer4a server,
org.apache.commons.logging.Log logger)
Constructor. |
Method Summary | |
---|---|
void |
activateForeignXML(ForeignXML foreign)
Set a flag indicating that we are currently processing foreign XML. |
void |
characters(char[] data,
int start,
int length)
|
void |
disactivateForeignXML()
Unset the flag indicating that we are currently processing foreign XML. |
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String rawName)
|
NamespaceAxsl |
getAxslNamespace()
Returns the aXSL namespace instance. |
boolean |
getCachingGraphics()
Indicates whether graphics should be cached. |
NamespaceFO |
getFONamespace()
Return the FO namespace instance. |
org.axsl.font.FontConsumer |
getFontConsumer()
|
NamespaceForay |
getForayNamespace()
Return the Extension namespace instance. |
URL[] |
getGraphicSearchPath()
Return the graphic search path. |
org.axsl.graphic.GraphicServer |
getGraphicServer()
|
org.axsl.hyphen.HyphenationConsumer |
getHyphenationConsumer()
|
org.apache.commons.logging.Log |
getLogger()
Returns the logger. |
MathNamespace |
getMathNamespace()
Return the MathML namespace instance. |
int |
getNextSequentialIndex()
Returns the next sequential index. |
String |
getPropertyName(PropertyType propertyType)
Returns the name of a given property type. |
Root |
getRootFo()
|
org.axsl.speech.SpeechServer |
getSpeechServer()
|
NamespaceSVG |
getSVGNamespace()
Return the SVG namespace instance. |
org.axsl.text.TextServer |
getTextServer()
|
FoTreeServer4a |
getTreeServer()
Return the "parent" FO Tree server. |
NamespaceXML |
getXMLNamespace()
Return the XML namespace instance. |
boolean |
hasData()
|
boolean |
preserveRawContent()
Indicates whether we wish to preserve the raw FO Tree content so that it can be round-tripped. |
void |
registerListener(org.axsl.fo.FoTreeListener listener)
Add an object to the collection of objects that should be notified about FOTreeEvent firings. |
void |
removeFOTreeListener(org.axsl.fo.FoTreeListener listener)
Remove an object from the collection of objects that should be notified about FOTreeEvent firings. |
void |
reset()
Reset this parser for reuse. |
void |
setCachingGraphics(boolean cachingGraphics)
|
void |
setDocumentLocator(Locator locator)
|
void |
setFontConsumer(org.axsl.font.FontConsumer consumer)
|
void |
setGraphicSearchPath(URL[] graphicSearchPath)
|
void |
setGraphicServer(org.axsl.graphic.GraphicServer graphicServer)
|
void |
setHyphenationConsumer(org.axsl.hyphen.HyphenationConsumer hyphenationConsumer)
|
void |
setSpeechServer(org.axsl.speech.SpeechServer server)
|
void |
setTextServer(org.axsl.text.TextServer textServer)
|
void |
startDocument()
|
void |
startElement(String namespaceURI,
String localName,
String rawName,
Attributes attlist)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startPrefixMapping |
Constructor Detail |
---|
public FOTreeBuilder(FoTreeServer4a server, org.apache.commons.logging.Log logger)
server
- The parent server.logger
- The logger.Method Detail |
---|
public void characters(char[] data, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String rawName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void startElement(String namespaceURI, String localName, String rawName, Attributes attlist) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void reset()
public boolean hasData()
hasData
in interface org.axsl.fo.FoTree
public org.apache.commons.logging.Log getLogger()
public void registerListener(org.axsl.fo.FoTreeListener listener)
registerListener
in interface org.axsl.fo.FoTree
listener
- the Object which should be notifiedpublic void removeFOTreeListener(org.axsl.fo.FoTreeListener listener)
listener
- the Object which should no longer be notifiedpublic NamespaceFO getFONamespace()
public NamespaceForay getForayNamespace()
public NamespaceSVG getSVGNamespace()
public MathNamespace getMathNamespace()
public NamespaceXML getXMLNamespace()
public NamespaceAxsl getAxslNamespace()
public String getPropertyName(PropertyType propertyType)
propertyType
- The property type whose name is needed.
public Root getRootFo()
getRootFo
in interface org.axsl.fo.FoTree
public void activateForeignXML(ForeignXML foreign)
foreign
- The foreign XML item that we are currently processing.public void disactivateForeignXML()
public FoTreeServer4a getTreeServer()
public void setGraphicServer(org.axsl.graphic.GraphicServer graphicServer)
setGraphicServer
in interface org.axsl.fo.FoTree
public org.axsl.graphic.GraphicServer getGraphicServer()
getGraphicServer
in interface org.axsl.fo.FoTree
public void setTextServer(org.axsl.text.TextServer textServer)
setTextServer
in interface org.axsl.fo.FoTree
public org.axsl.text.TextServer getTextServer()
getTextServer
in interface org.axsl.fo.FoTree
public void setFontConsumer(org.axsl.font.FontConsumer consumer)
setFontConsumer
in interface org.axsl.fo.FoTree
public void setSpeechServer(org.axsl.speech.SpeechServer server)
setSpeechServer
in interface org.axsl.fo.FoTree
public org.axsl.font.FontConsumer getFontConsumer()
getFontConsumer
in interface org.axsl.fo.FoTree
public org.axsl.speech.SpeechServer getSpeechServer()
getSpeechServer
in interface org.axsl.fo.FoTree
public void setHyphenationConsumer(org.axsl.hyphen.HyphenationConsumer hyphenationConsumer)
setHyphenationConsumer
in interface org.axsl.fo.FoTree
public org.axsl.hyphen.HyphenationConsumer getHyphenationConsumer()
getHyphenationConsumer
in interface org.axsl.fo.FoTree
public void setGraphicSearchPath(URL[] graphicSearchPath)
setGraphicSearchPath
in interface org.axsl.fo.FoTree
public URL[] getGraphicSearchPath()
public void setCachingGraphics(boolean cachingGraphics)
setCachingGraphics
in interface org.axsl.fo.FoTree
public boolean getCachingGraphics()
public boolean preserveRawContent()
public int getNextSequentialIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |