public abstract class AbstractPSExtensionElement extends FONode
FONode.FONodeIterator, FONode.GatherContextInfoFunction| Modifier and Type | Field and Description |
|---|---|
protected PSExtensionAttachment |
attachment
extension attachment
|
FO_URI, FOX_URI, locator, log, nodeChangeBarList, parent, siblings, startOfNodeChangeBarList| Constructor and Description |
|---|
AbstractPSExtensionElement(FONode parent)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
characters(char[] data,
int start,
int length,
PropertyList pList,
Locator locator)
Adds characters.
|
void |
endOfNode()
Primarily used for making final content model validation checks
and/or informing the
FOEventHandler that the end of this FO
has been reached. |
ExtensionAttachment |
getExtensionAttachment()
This method is overridden by extension elements and allows the extension element
to return a pass-through attachment which the parent formatting objects should simply
carry with them but otherwise ignore.
|
String |
getNamespaceURI()
Returns the namespace URI for this node
|
String |
getNormalNamespacePrefix()
Returns the normally used namespace prefix for this node
|
protected abstract ExtensionAttachment |
instantiateExtensionAttachment()
Instantiates extension attachment object
|
protected void |
validateChildNode(Locator loc,
String nsURI,
String localName)
Blocks XSL FO's from having non-FO parents.
|
addCharacters, addChildNode, attachSiblings, bind, canHaveMarkers, charIterator, clone, clone, collectDelimitedTextRanges, collectDelimitedTextRanges, createPropertyList, decorateWithContextInfo, errorText, finalizeNode, gatherContextInfo, getBuilderContext, getChangeBarList, getChildNodes, getChildNodes, getContentHandlerFactory, getContextInfo, getContextInfoAlt, getFOEventHandler, getFOValidationEventProducer, getLocalName, getLocator, getLocatorString, getLogger, getName, getName, getNameId, getNodePrefix, getNodeString, getParent, getRoot, getStructureTreeElement, getUserAgent, inMarker, invalidChildError, invalidChildError, invalidPropertyValueError, isBidiRangeBlockItem, isChangeBarElement, isDelimitedTextRangeBoundary, missingChildElementError, missingChildElementError, missingPropertyError, nodesOutOfOrderError, nodesOutOfOrderError, notSupportedChildError, processNode, removeChild, setLocator, setStructureTreeElement, startOfNode, tooManyNodesError, tooManyNodesError, tooManyNodesError, validateChildNode, warningTextprotected PSExtensionAttachment attachment
public AbstractPSExtensionElement(FONode parent)
parent - parent of this nodeFONode.FONode(FONode)protected void validateChildNode(Locator loc, String nsURI, String localName) throws ValidationException
validateChildNode in class FONodeloc - location in the FO source filensURI - namespace of incoming nodelocalName - (e.g. "table" for "fo:table")ValidationException - if incoming node not valid for parentFONode.validateChildNode(Locator, String, String)protected void characters(char[] data,
int start,
int length,
PropertyList pList,
Locator locator)
#PCDATA content.characters in class FONodedata - 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.public String getNamespaceURI()
FONodegetNamespaceURI in class FONodeFONode.getNamespaceURI()public String getNormalNamespacePrefix()
FONodegetNormalNamespacePrefix in class FONodeFONode.getNormalNamespacePrefix()public void endOfNode()
throws FOPException
FONodeFOEventHandler that the end of this FO
has been reached.
The default implementation simply calls FONode.finalizeNode(), without
sending any event to the FOEventHandler.
Note: the recommended way to override this method in subclasses is
super.endOfNode(); // invoke finalizeNode()
getFOEventHandler().endXXX(); // send endOfNode() notification
endOfNode in class FONodeFOPException - if there's a problem during processingFONode.endOfNode()public ExtensionAttachment getExtensionAttachment()
FONodegetExtensionAttachment in class FONodeFONode.getExtensionAttachment()protected abstract ExtensionAttachment instantiateExtensionAttachment()
Copyright © 2025 Apache Software Foundation. All rights reserved.