public class IFContext
extends java.lang.Object
Foreign attributes are usually specific to a particular output format implementation. Most implementations will just ignore all foreign attributes for most elements. That's why the main IF interfaces are not burdened with this.
Constructor and Description |
---|
IFContext(FOUserAgent ua)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getForeignAttribute(org.apache.xmlgraphics.util.QName qName)
Returns a foreign attribute.
|
java.util.Map |
getForeignAttributes()
Returns the currently applicable foreign attributes.
|
java.util.Locale |
getLanguage()
Returns the currently applicable language.
|
java.lang.String |
getStructurePointer()
Returns the current structure pointer.
|
FOUserAgent |
getUserAgent()
Returns the associated user agent.
|
void |
resetForeignAttributes()
Resets the foreign attributes to "no foreign attributes".
|
void |
resetStructurePointer()
Resets the current structure pointer.
|
void |
setForeignAttributes(java.util.Map foreignAttributes)
Sets the currently applicable foreign attributes.
|
void |
setLanguage(java.util.Locale lang)
Sets the currently applicable language.
|
void |
setStructurePointer(java.lang.String ptr)
Sets the structure pointer for the following painted marks.
|
void |
setUserAgent(FOUserAgent ua)
Set the user agent.
|
public IFContext(FOUserAgent ua)
ua
- the user agentpublic void setUserAgent(FOUserAgent ua)
ua
- the user agentpublic FOUserAgent getUserAgent()
public java.util.Map getForeignAttributes()
public java.lang.Object getForeignAttribute(org.apache.xmlgraphics.util.QName qName)
qName
- the qualified name of the foreign attributepublic void setForeignAttributes(java.util.Map foreignAttributes)
foreignAttributes
- a Mappublic void resetForeignAttributes()
public void setLanguage(java.util.Locale lang)
lang
- the languagepublic java.util.Locale getLanguage()
public void setStructurePointer(java.lang.String ptr)
ptr
- the structure pointerpublic void resetStructurePointer()
setStructurePointer(String)
public java.lang.String getStructurePointer()
setStructurePointer(String)
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.