|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xhtmlrenderer.simple.NoNamespaceHandler
org.xhtmlrenderer.simple.extend.XhtmlCssOnlyNamespaceHandler
public class XhtmlCssOnlyNamespaceHandler
Handles xhtml but only css styling is honored, no presentational html attributes (see css 2.1 spec, 6.4.4)
| Constructor Summary | |
|---|---|
XhtmlCssOnlyNamespaceHandler()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
convertToLength(java.lang.String value)
|
java.lang.String |
getAnchorName(org.w3c.dom.Element e)
|
protected java.lang.String |
getAttribute(org.w3c.dom.Element e,
java.lang.String attrName)
|
java.lang.String |
getClass(org.w3c.dom.Element e)
Gets the class attribute of the XhtmlNamespaceHandler object |
StylesheetInfo |
getDefaultStylesheet(StylesheetFactory factory)
|
java.lang.String |
getDocumentTitle(org.w3c.dom.Document doc)
Returns the title of the document as located in the contents of /html/head/title, or "" if none could be found. |
java.lang.String |
getElementStyling(org.w3c.dom.Element e)
Gets the elementStyling attribute of the XhtmlNamespaceHandler object |
java.lang.String |
getID(org.w3c.dom.Element e)
Gets the iD attribute of the XhtmlNamespaceHandler object |
java.lang.String |
getLang(org.w3c.dom.Element e)
may return null |
java.lang.String |
getLinkUri(org.w3c.dom.Element e)
Gets the linkUri attribute of the XhtmlNamespaceHandler object |
java.lang.String |
getNamespace()
Gets the namespace attribute of the XhtmlNamespaceHandler object |
StylesheetInfo[] |
getStylesheets(org.w3c.dom.Document doc)
Gets the stylesheetLinks attribute of the XhtmlNamespaceHandler object |
protected boolean |
isInteger(java.lang.String value)
|
protected StylesheetInfo |
readLinkElement(org.w3c.dom.Element link)
|
protected StylesheetInfo |
readStyleElement(org.w3c.dom.Element style)
|
| Methods inherited from class org.xhtmlrenderer.simple.NoNamespaceHandler |
|---|
getAttributeValue, getAttributeValue, getImageSourceURI, getNonCssStyling, isFormElement, isImageElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XhtmlCssOnlyNamespaceHandler()
| Method Detail |
|---|
public java.lang.String getNamespace()
getNamespace in interface NamespaceHandlergetNamespace in class NoNamespaceHandlerpublic java.lang.String getClass(org.w3c.dom.Element e)
getClass in interface NamespaceHandlergetClass in class NoNamespaceHandlere - PARAM
public java.lang.String getID(org.w3c.dom.Element e)
getID in interface NamespaceHandlergetID in class NoNamespaceHandlere - PARAM
protected java.lang.String convertToLength(java.lang.String value)
protected boolean isInteger(java.lang.String value)
protected java.lang.String getAttribute(org.w3c.dom.Element e,
java.lang.String attrName)
public java.lang.String getElementStyling(org.w3c.dom.Element e)
getElementStyling in interface NamespaceHandlergetElementStyling in class NoNamespaceHandlere - PARAM
public java.lang.String getLinkUri(org.w3c.dom.Element e)
getLinkUri in interface NamespaceHandlergetLinkUri in class NoNamespaceHandlere - PARAM
public java.lang.String getAnchorName(org.w3c.dom.Element e)
getAnchorName in interface NamespaceHandlergetAnchorName in class NoNamespaceHandlerpublic java.lang.String getDocumentTitle(org.w3c.dom.Document doc)
getDocumentTitle in interface NamespaceHandlergetDocumentTitle in class NoNamespaceHandlerdoc - the document to search for a title
protected StylesheetInfo readStyleElement(org.w3c.dom.Element style)
protected StylesheetInfo readLinkElement(org.w3c.dom.Element link)
public StylesheetInfo[] getStylesheets(org.w3c.dom.Document doc)
getStylesheets in interface NamespaceHandlergetStylesheets in class NoNamespaceHandlerdoc - PARAM
public StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
getDefaultStylesheet in interface NamespaceHandlergetDefaultStylesheet in class NoNamespaceHandlerpublic java.lang.String getLang(org.w3c.dom.Element e)
NamespaceHandler
getLang in interface NamespaceHandlergetLang in class NoNamespaceHandlere - PARAM
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||