org.foray.fotree
Class FoTreeServer4a

java.lang.Object
  extended by org.foray.fotree.FoTreeServer4a
All Implemented Interfaces:
org.axsl.fo.FoTreeFactory

public class FoTreeServer4a
extends Object
implements org.axsl.fo.FoTreeFactory

The top-level object in the FOTree implementation. FOTreeServer encapsulates the FOTree at a high level of abstraction for a client application.


Constructor Summary
FoTreeServer4a(org.apache.commons.logging.Log logger, org.axsl.font.FontServer fontServer, org.axsl.text.TextServer textServer, org.axsl.hyphen.HyphenationServer hyphenationServer, org.axsl.graphic.GraphicServer graphicServer, URL[] graphicSearchPath, boolean cachingGraphics)
          Constructor.
 
Method Summary
 Namespace createNonstandardNamespace(String mappingClassName)
          Creates a Namespace instance for the given class name.
 NamespaceAxsl getAxslNamespace()
          Returns the namespace used for "axsl" items.
 NamespaceFO getFONamespace()
          Returns the namespace used for "FO" items.
 org.axsl.font.FontServer getFontServer()
          Returns the font server.
 NamespaceForay getForayNamespace()
          Returns the namespace used for extension items.
 org.apache.commons.logging.Log getLogger()
          Returns the logger.
 MathNamespace getMathNamespace()
          Returns the namespace used for "MathML" items.
 Namespace getNamespace(String namespaceURI)
          Returns the namespace for a given name.
 String getPropertyName(PropertyType propertyType)
          Returns the text property name for a given PropertyType instance.
 NamespaceSVG getSVGNamespace()
          Returns the namespace used for "SVG" items.
 org.axsl.text.TextServer getTextServer()
          Returns the text server.
 NamespaceXML getXMLNamespace()
          Returns the namespace used for "XML" items.
 FOTreeBuilder makeFoTree()
           
 void registerNamespace(Namespace namespace)
          Add a Namespace instance to the list of namespaces that we should be able to parse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FoTreeServer4a

public FoTreeServer4a(org.apache.commons.logging.Log logger,
                      org.axsl.font.FontServer fontServer,
                      org.axsl.text.TextServer textServer,
                      org.axsl.hyphen.HyphenationServer hyphenationServer,
                      org.axsl.graphic.GraphicServer graphicServer,
                      URL[] graphicSearchPath,
                      boolean cachingGraphics)
Constructor.

Parameters:
logger - The logger.
fontServer - The font server.
textServer - The text server.
hyphenationServer - The hyphenation server.
graphicServer - The graphic server.
graphicSearchPath - The array of URLs in which graphics should be searched.
cachingGraphics - Indicates whether we are caching graphics for reuse.
Method Detail

registerNamespace

public void registerNamespace(Namespace namespace)
Add a Namespace instance to the list of namespaces that we should be able to parse.

Parameters:
namespace - A Namespace instance to be added.

getNamespace

public Namespace getNamespace(String namespaceURI)
Returns the namespace for a given name.

Parameters:
namespaceURI - The namespace URI for which a namespace is needed.
Returns:
The namespace instance.

getFONamespace

public NamespaceFO getFONamespace()
Returns the namespace used for "FO" items.

Returns:
The namespace used for "FO" items.

getForayNamespace

public NamespaceForay getForayNamespace()
Returns the namespace used for extension items.

Returns:
The namespace used for extension items.

getSVGNamespace

public NamespaceSVG getSVGNamespace()
Returns the namespace used for "SVG" items.

Returns:
The namespace used for "SVG" items.

getMathNamespace

public MathNamespace getMathNamespace()
Returns the namespace used for "MathML" items.

Returns:
The namespace used for "MathML" items.

getXMLNamespace

public NamespaceXML getXMLNamespace()
Returns the namespace used for "XML" items.

Returns:
The namespace used for "XML" items.

getAxslNamespace

public NamespaceAxsl getAxslNamespace()
Returns the namespace used for "axsl" items.

Returns:
The namespace used for "axsl" items.

getPropertyName

public String getPropertyName(PropertyType propertyType)
Returns the text property name for a given PropertyType instance.

Parameters:
propertyType - The property type whose name is needed.
Returns:
The text property name.

createNonstandardNamespace

public Namespace createNonstandardNamespace(String mappingClassName)
Creates a Namespace instance for the given class name.

Parameters:
mappingClassName - The name of the Namespace subclass for which an instance should be created.
Returns:
The namespace instance.

makeFoTree

public FOTreeBuilder makeFoTree()
Specified by:
makeFoTree in interface org.axsl.fo.FoTreeFactory

getLogger

public org.apache.commons.logging.Log getLogger()
Returns the logger.

Returns:
The logger.

getTextServer

public org.axsl.text.TextServer getTextServer()
Returns the text server.

Returns:
The text server.

getFontServer

public org.axsl.font.FontServer getFontServer()
Returns the font server.

Returns:
The font server.


Copyright © 2017. All rights reserved.