|
||||||||||
| 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 String |
convertToLength(String value)
|
String |
getAnchorName(Element e)
|
protected String |
getAttribute(Element e,
String attrName)
|
String |
getClass(Element e)
Gets the class attribute of the XhtmlNamespaceHandler object |
StylesheetInfo |
getDefaultStylesheet(StylesheetFactory factory)
|
String |
getDocumentTitle(Document doc)
Returns the title of the document as located in the contents of /html/head/title, or "" if none could be found. |
String |
getElementStyling(Element e)
Gets the elementStyling attribute of the XhtmlNamespaceHandler object |
String |
getID(Element e)
Gets the iD attribute of the XhtmlNamespaceHandler object |
String |
getLang(Element e)
may return null |
String |
getLinkUri(Element e)
Gets the linkUri attribute of the XhtmlNamespaceHandler object |
String |
getNamespace()
Gets the namespace attribute of the XhtmlNamespaceHandler object |
StylesheetInfo[] |
getStylesheets(Document doc)
Gets the stylesheetLinks attribute of the XhtmlNamespaceHandler object |
protected boolean |
isInteger(String value)
|
protected StylesheetInfo |
readLinkElement(Element link)
|
protected StylesheetInfo |
readStyleElement(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 String getNamespace()
getNamespace in interface NamespaceHandlergetNamespace in class NoNamespaceHandlerpublic String getClass(Element e)
getClass in interface NamespaceHandlergetClass in class NoNamespaceHandlere - PARAM
public String getID(Element e)
getID in interface NamespaceHandlergetID in class NoNamespaceHandlere - PARAM
protected String convertToLength(String value)
protected boolean isInteger(String value)
protected String getAttribute(Element e,
String attrName)
public String getElementStyling(Element e)
getElementStyling in interface NamespaceHandlergetElementStyling in class NoNamespaceHandlere - PARAM
public String getLinkUri(Element e)
getLinkUri in interface NamespaceHandlergetLinkUri in class NoNamespaceHandlere - PARAM
public String getAnchorName(Element e)
getAnchorName in interface NamespaceHandlergetAnchorName in class NoNamespaceHandlerpublic String getDocumentTitle(Document doc)
getDocumentTitle in interface NamespaceHandlergetDocumentTitle in class NoNamespaceHandlerdoc - the document to search for a title
protected StylesheetInfo readStyleElement(Element style)
protected StylesheetInfo readLinkElement(Element link)
public StylesheetInfo[] getStylesheets(Document doc)
getStylesheets in interface NamespaceHandlergetStylesheets in class NoNamespaceHandlerdoc - PARAM
public StylesheetInfo getDefaultStylesheet(StylesheetFactory factory)
getDefaultStylesheet in interface NamespaceHandlergetDefaultStylesheet in class NoNamespaceHandlerpublic String getLang(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 | |||||||||