org.apache.fop.area.inline

Class ForeignObject

Implemented Interfaces:
Serializable

public class ForeignObject
extends Area

Foreign object inline area. This inline area represents an instream-foreign object. This holds an xml document and the associated namespace.

Field Summary

Fields inherited from class org.apache.fop.area.Area

BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, RL, TB, bpd, ipd, log, props

Fields inherited from class org.apache.fop.area.AreaTreeObject

foreignAttributes

Constructor Summary

ForeignObject(Document d, String ns)
Create a new foreign object with the given dom and namespace.
ForeignObject(String ns)
Create a new empty foreign object for which the DOM Document will be set later.

Method Summary

Document
getDocument()
Get the document for this foreign object.
String
getNameSpace()
Get the namespace of this foreign object.
void
setDocument(Document document)
Sets the DOM document for this foreign object.

Methods inherited from class org.apache.fop.area.Area

addChildArea, addTrait, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBPD, getBooleanTrait, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toString

Methods inherited from class org.apache.fop.area.AreaTreeObject

getForeignAttributeValue, getForeignAttributes, setForeignAttribute, setForeignAttributes

Constructor Details

ForeignObject

public ForeignObject(Document d,
                     String ns)
Create a new foreign object with the given dom and namespace.
Parameters:
d - the xml document
ns - the namespace of the document

ForeignObject

public ForeignObject(String ns)
Create a new empty foreign object for which the DOM Document will be set later.
Parameters:
ns - the namespace of the document

Method Details

getDocument

public Document getDocument()
Get the document for this foreign object.
Returns:
the xml document

getNameSpace

public String getNameSpace()
Get the namespace of this foreign object.
Returns:
the namespace of this document

setDocument

public void setDocument(Document document)
Sets the DOM document for this foreign object.
Parameters:
document - the DOM document

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.