Package org.apache.fop.fo
Class UnknownXMLObj
- java.lang.Object
-
- org.apache.fop.fo.FONode
-
- org.apache.fop.fo.XMLObj
-
- org.apache.fop.fo.UnknownXMLObj
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.util.EventListener
,ContentHandlerFactory.ObjectBuiltListener
public class UnknownXMLObj extends XMLObj
Class for handling generic XML from a namespace not recognized by FOP
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnknownXMLObj.Maker
Inner class for an UnknownXMLObj Maker-
Nested classes/interfaces inherited from class org.apache.fop.fo.FONode
FONode.FONodeIterator, FONode.GatherContextInfoFunction
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnknownXMLObj(FONode parent, java.lang.String space)
Constructs an unknown xml object (called by Maker).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addChildNode(FONode child)
Adds a node as a child of this node.protected void
characters(char[] data, int start, int length, PropertyList pList, org.xml.sax.Locator locator)
Adds characters.java.lang.String
getNamespaceURI()
Returns the namespace URI for this nodejava.lang.String
getNormalNamespacePrefix()
Returns the normally used namespace prefix for this node-
Methods inherited from class org.apache.fop.fo.XMLObj
addElement, buildTopLevel, createBasicDocument, getDimension, getDOMDocument, getIntrinsicAlignmentAdjust, getLocalName, notifyObjectBuilt, processNode, validateChildNode
-
Methods inherited from class org.apache.fop.fo.FONode
addCharacters, attachSiblings, bind, canHaveMarkers, charIterator, clone, clone, collectDelimitedTextRanges, collectDelimitedTextRanges, createPropertyList, decorateWithContextInfo, endOfNode, errorText, finalizeNode, gatherContextInfo, getBuilderContext, getChildNodes, getChildNodes, getContentHandlerFactory, getContextInfo, getContextInfoAlt, getExtensionAttachment, getFOEventHandler, getFOValidationEventProducer, getLocator, getLocatorString, getLogger, getName, getName, getNameId, getNodePrefix, getNodeString, getParent, getRoot, getStructureTreeElement, getUserAgent, inMarker, invalidChildError, invalidChildError, invalidPropertyValueError, isBidiRangeBlockItem, isDelimitedTextRangeBoundary, missingChildElementError, missingChildElementError, missingPropertyError, nodesOutOfOrderError, nodesOutOfOrderError, notSupportedChildError, removeChild, setLocator, setStructureTreeElement, startOfNode, tooManyNodesError, tooManyNodesError, tooManyNodesError, validateChildNode, warningText
-
-
-
-
Constructor Detail
-
UnknownXMLObj
protected UnknownXMLObj(FONode parent, java.lang.String space)
Constructs an unknown xml object (called by Maker).- Parameters:
parent
- the parent formatting objectspace
- the namespace for this object
-
-
Method Detail
-
getNamespaceURI
public java.lang.String getNamespaceURI()
Returns the namespace URI for this node- Overrides:
getNamespaceURI
in classFONode
- Returns:
- the namespace URI for this node
-
getNormalNamespacePrefix
public java.lang.String getNormalNamespacePrefix()
Returns the normally used namespace prefix for this node- Specified by:
getNormalNamespacePrefix
in classFONode
- Returns:
- the normally used namespace prefix for this kind of node (ex. "fo" for XSL-FO)
-
addChildNode
protected void addChildNode(FONode child)
Adds a node as a child of this node. The default implementation of this method just ignores any child node being added.- Overrides:
addChildNode
in classXMLObj
- Parameters:
child
- child node to be added to the childNodes of this node
-
characters
protected void characters(char[] data, int start, int length, PropertyList pList, org.xml.sax.Locator locator) throws FOPException
Adds characters. Does nothing by default. To be overridden in subclasses that allow#PCDATA
content.- Overrides:
characters
in classXMLObj
- Parameters:
data
- array of characters containing text to be addedstart
- starting array element to addlength
- number of elements to addpList
- currently applicable PropertyListlocator
- location in the XSL-FO source file.- Throws:
FOPException
- if there's a problem during processing
-
-