public class ImgTagHandler extends DefaultTagHandler
Since the images should continue to be referable, their src attribute values are prepended with the current design path. Note that design path is where the images are dumped during the import process.
ImgTagHandlerFactory
Modifier and Type | Field and Description |
---|---|
XSSAPI |
xssAPI |
NAME_HINT_PROPERTY_KEY
Constructor and Description |
---|
ImgTagHandler() |
Modifier and Type | Method and Description |
---|---|
void |
beginHandling(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Callback to signal the start of handling giving the tag handler a chance for running intialization routines.
|
java.lang.String |
getAlt() |
java.lang.String |
getHeight() |
java.lang.String |
getRawSrc() |
java.lang.String |
getTitle() |
java.lang.String |
getUsemap() |
java.lang.String |
getWidth() |
boolean |
isNormalizationRequired() |
boolean |
isRawSrcAbsolute() |
void |
setNormalizationPrefix(java.lang.String normalizationPrefix) |
void |
setNormalizationRequired(boolean normalizationRequired) |
void |
setXssAPI(XSSAPI xssAPI) |
characters, endHandling
endElement, getContent, getPageComponents, setDesignImporterContext, setPageBuilder, setTagHandlerProvider, startElement, supportsContent
public XSSAPI xssAPI
public java.lang.String getTitle()
public java.lang.String getAlt()
public java.lang.String getWidth()
public java.lang.String getHeight()
public java.lang.String getUsemap()
public java.lang.String getRawSrc()
public boolean isRawSrcAbsolute()
public void setNormalizationPrefix(java.lang.String normalizationPrefix)
public boolean isNormalizationRequired()
public void setNormalizationRequired(boolean normalizationRequired)
public void beginHandling(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
TagHandler
TagHandler
s are registered against tag+attribute combination and are invoked by the HTMLContentHandler
as and when it
encounters a tag matching the tag attribute combination the tag handler is registered with.
beginHandling
in interface TagHandler
beginHandling
in class DefaultTagHandler
public void setXssAPI(XSSAPI xssAPI)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"