org.apache.fop.fo
Class XMLObj
- Cloneable, ContentHandlerFactory.ObjectBuiltListener, EventListener
public abstract class XMLObj
Abstract class modelling generic, non-XSL-FO XML objects. Such objects are
stored in a DOM.
protected Document | doc - DOM document containing this node
|
protected Element | element - DOM element representing this node
|
protected String | name - Name of the node
|
protected void | addCharacters(char[] data, int start, int length, PropertyList pList, Locator locator) - Add parsed characters to this object
|
protected void | addChildNode(FONode child)
|
void | addElement(Document doc, Element parent) - Add an element to the DOM document
|
void | buildTopLevel(Document doc, Element svgRoot) - Add the top-level element to the DOM document
|
Document | createBasicDocument() - Create an empty DOM document
|
Document | getDOMDocument()
|
Point2D | getDimension(Point2D view) - Returns the dimensions of the generated area in pts.
|
Length | getIntrinsicAlignmentAdjust() - Retrieve the intrinsic alignment-adjust of the child element.
|
String | getLocalName()
|
void | notifyObjectBuilt(Object obj)
|
void | processNode(String elementName, Locator locator, Attributes attlist, PropertyList propertyList)
|
protected void | validateChildNode(Locator loc, String nsURI, String localName)
|
addCharacters , addChildNode , attachSiblings , attributeError , attributeWarning , bind , canHaveMarkers , charIterator , clone , clone , createPropertyList , decorateWithContextInfo , endOfNode , errorText , gatherContextInfo , getChildNodes , getChildNodes , getContentHandlerFactory , getContextInfo , getExtensionAttachment , getFOEventHandler , getLocalName , getLocator , getLocatorString , getLogger , getName , getName , getNameId , getNamespaceURI , getNodeString , getNormalNamespacePrefix , getParent , getRoot , getUserAgent , inMarker , invalidChildError , invalidChildError , missingChildElementError , missingPropertyError , nodesOutOfOrderError , processNode , removeChild , setLocator , startOfNode , tooManyNodesError , tooManyNodesError , validateChildNode , warningText |
doc
protected Document doc
DOM document containing this node
element
protected Element element
DOM element representing this node
name
protected String name
Name of the node
XMLObj
public XMLObj(FONode parent)
parent
- the parent formatting object
addCharacters
protected void addCharacters(char[] data,
int start,
int length,
PropertyList pList,
Locator locator)
Add parsed characters to this object
- addCharacters in interface FONode
data
- array of characters contaning the text to addstart
- starting array element to addlength
- number of characters from the array to addpList
- the currently applicable property listlocator
- location in fo source file.
addElement
public void addElement(Document doc,
Element parent)
Add an element to the DOM document
doc
- DOM document to which to add an elementparent
- the parent element of the element that is being added
buildTopLevel
public void buildTopLevel(Document doc,
Element svgRoot)
Add the top-level element to the DOM document
doc
- DOM documentsvgRoot
- non-XSL-FO element to be added as the root of this document
createBasicDocument
public Document createBasicDocument()
Create an empty DOM document
getDOMDocument
public Document getDOMDocument()
- DOM document representing this foreign XML
getDimension
public Point2D getDimension(Point2D view)
Returns the dimensions of the generated area in pts.
view
- Point2D instance to receive the dimensions
- the requested dimensions in pts.
getIntrinsicAlignmentAdjust
public Length getIntrinsicAlignmentAdjust()
Retrieve the intrinsic alignment-adjust of the child element.
- the intrinsic alignment-adjust.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.