public class ElementMappingRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,ElementMapping.Maker>> |
fobjTable
Table mapping element names to the makers of objects
representing formatting objects.
|
protected java.util.Map<java.lang.String,ElementMapping> |
namespaces
Map of mapped namespaces and their associated ElementMapping instances.
|
Constructor and Description |
---|
ElementMappingRegistry(FopFactory factory)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addElementMapping(ElementMapping mapping)
Add the element mapping.
|
void |
addElementMapping(java.lang.String mappingClassName)
Add the element mapping with the given class name.
|
ElementMapping.Maker |
findFOMaker(java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Locator locator)
Finds the Maker used to create node objects of a particular type
|
org.w3c.dom.DOMImplementation |
getDOMImplementationForNamespace(java.lang.String namespaceURI)
Tries to determine the DOMImplementation that is used to handled a particular namespace.
|
ElementMapping |
getElementMapping(java.lang.String namespaceURI)
Returns an ElementMapping class for a namespace URI if there is one.
|
boolean |
isKnownNamespace(java.lang.String namespaceURI)
Indicates whether a namespace is known to FOP.
|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,ElementMapping.Maker>> fobjTable
protected java.util.Map<java.lang.String,ElementMapping> namespaces
public ElementMappingRegistry(FopFactory factory)
factory
- the Fop Factorypublic void addElementMapping(java.lang.String mappingClassName) throws java.lang.IllegalArgumentException
mappingClassName
- the class name representing the element mapping.java.lang.IllegalArgumentException
- if there was not such element mapping.public void addElementMapping(ElementMapping mapping)
mapping
- the element mapping instancepublic ElementMapping.Maker findFOMaker(java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Locator locator) throws FOPException
namespaceURI
- URI for the namespace of the elementlocalName
- name of the Elementlocator
- the Locator instance for context informationFOPException
- if a Maker could not be found for a bound namespace.public org.w3c.dom.DOMImplementation getDOMImplementationForNamespace(java.lang.String namespaceURI)
namespaceURI
- the namespace URIpublic ElementMapping getElementMapping(java.lang.String namespaceURI)
namespaceURI
- the namespace URIpublic boolean isKnownNamespace(java.lang.String namespaceURI)
namespaceURI
- the namespace URICopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.