Package org.apache.fop.area.inline
Class ForeignObject
java.lang.Object
org.apache.fop.area.AreaTreeObject
org.apache.fop.area.Area
org.apache.fop.area.inline.ForeignObject
- All Implemented Interfaces:
Serializable
,Cloneable
Foreign object inline area.
This inline area represents an instream-foreign object.
This holds an xml document and the associated namespace.
- See Also:
-
Field Summary
Fields inherited from class org.apache.fop.area.Area
bidiLevel, bpd, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, effectiveIPD, ipd, log, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, traits
Fields inherited from class org.apache.fop.area.AreaTreeObject
extensionAttachments, foreignAttributes
-
Constructor Summary
ConstructorDescriptionForeignObject
(String ns) Create a new empty foreign object for which the DOM Document will be set later.ForeignObject
(Document d, String ns) Create a new foreign object with the given dom and namespace. -
Method Summary
Modifier and TypeMethodDescriptionGet the document for this foreign object.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
activateEffectiveIPD, addChildArea, addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getChangeBarList, getEffectiveAllocIPD, getEffectiveIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setChangeBarList, setIPD, setTraits, setWritingModeTraits, toString
Methods inherited from class org.apache.fop.area.AreaTreeObject
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
-
Constructor Details
-
ForeignObject
Create a new foreign object with the given dom and namespace.- Parameters:
d
- the xml documentns
- the namespace of the document
-
ForeignObject
Create a new empty foreign object for which the DOM Document will be set later.- Parameters:
ns
- the namespace of the document
-
-
Method Details
-
setDocument
Sets the DOM document for this foreign object.- Parameters:
document
- the DOM document
-
getDocument
Get the document for this foreign object.- Returns:
- the xml document
-
getNameSpace
Get the namespace of this foreign object.- Returns:
- the namespace of this document
-