|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.fop.fo.ElementMappingRegistry
This class keeps track of all configured ElementMapping implementations which are responsible for properly handling all kinds of different XML namespaces.
Field Summary | |
protected java.util.Map |
fobjTable
Table mapping element names to the makers of objects representing formatting objects. |
protected org.apache.commons.logging.Log |
log
logging instance |
protected java.util.Map |
namespaces
Map of mapped namespaces and their associated ElementMapping instances. |
Constructor Summary | |
ElementMappingRegistry(FopFactory factory)
Main constructor. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.commons.logging.Log log
protected java.util.Map fobjTable
protected java.util.Map namespaces
Constructor Detail |
public ElementMappingRegistry(FopFactory factory)
factory
- the Fop FactoryMethod Detail |
public 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 information
FOPException
- if a Maker could not be found for a bound namespace.public org.w3c.dom.DOMImplementation getDOMImplementationForNamespace(java.lang.String namespaceURI)
namespaceURI
- the namespace URI
public ElementMapping getElementMapping(java.lang.String namespaceURI)
namespaceURI
- the namespace URI
public boolean isKnownNamespace(java.lang.String namespaceURI)
namespaceURI
- the namespace URI
|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |