Copyright© 2008-2025 Sitevision AB, all rights reserved.
@Deprecated @Requireable(value="DocTypeUtil") public interface DocTypeUtil
NOTE! This interface is deprecated and should typically not be used!
All methods have a fixed behaviour, i.e. always returns true or false
since all Sitevision pages use HTML5.
An instance of the Sitevision class implementing this interface can be obtained via Utils.getDocTypeUtil().
See Utils for how to obtain an instance of the Utils interface.
| Modifier and Type | Method and Description |
|---|---|
DocType |
getDocType()
Deprecated.
This method always return
DocType.HTML5 since all pages are always HTML5. |
DocType |
getDocType(Node aPageNode)
Deprecated.
This method always return
DocType.HTML5 since all pages are always HTML5. |
boolean |
isDocType(DocType aDocType)
Deprecated.
This method always return true if the aDocType argument is
DocType.HTML5. |
boolean |
isDocType(Node aPageNode,
DocType aDocType)
Deprecated.
This method always return true if the aDocType argument is
DocType.HTML5. |
boolean |
isHtml()
Deprecated.
This method always return true since all pages are always HTML5.
|
boolean |
isHtml(Node aPageNode)
Deprecated.
This method always return true since all pages are always HTML5.
|
boolean |
isHtml4()
Deprecated.
This method always return false since all pages are always HTML5.
|
boolean |
isHtml4(Node aPageNode)
Deprecated.
This method always return false since all pages are always HTML5.
|
boolean |
isHtml5()
Deprecated.
This method always return true since all pages are always HTML5.
|
boolean |
isHtml5(Node aPageNode)
Deprecated.
This method always return true since all pages are always HTML5.
|
boolean |
isXhtml()
Deprecated.
This method always return false since all pages are always HTML5.
|
boolean |
isXhtml(Node aPageNode)
Deprecated.
This method always return false since all pages are always HTML5.
|
boolean |
isXhtmlStrict()
Deprecated.
This method always return false since all pages are always HTML5.
|
boolean |
isXhtmlStrict(Node aPageNode)
Deprecated.
This method always return false since all pages are always HTML5.
|
boolean |
isXhtmlTransitional()
Deprecated.
This method always return false since all pages are always HTML5.
|
boolean |
isXhtmlTransitional(Node aPageNode)
Deprecated.
This method always return false since all pages are always HTML5.
|
boolean isHtml()
Checks if the doctype for current page is HTML 4.01 Transitional or HTML5.
boolean isHtml(Node aPageNode)
Checks if the doctype for a certain page is HTML 4.01 Transitional or HTML5.
aPageNode - this argument will be completely ignoredboolean isHtml4()
Checks if the doctype for current page is HTML 4.01 Transitional.
DocType.HTML4_TRANSITIONALboolean isHtml4(Node aPageNode)
Checks if the doctype for a certain page is HTML 4.01 Transitional.
aPageNode - this argument will be completely ignoredboolean isHtml5()
Checks if the doctype for current page is HTML5.
DocType.HTML5boolean isHtml5(Node aPageNode)
Checks if the doctype for a certain page is HTML5.
aPageNode - this argument will be completely ignoredboolean isXhtml()
Checks if the doctype for current page is XHTML 1.0 Transitional or XHTML 1.0 Strict.
boolean isXhtml(Node aPageNode)
Checks if the doctype for a certain page is XHTML 1.0 Transitional or XHTML 1.0 Strict.
aPageNode - this argument will be completely ignoredboolean isXhtmlTransitional()
Checks if the doctype for current page is XHTML 1.0 Transitional.
DocType.XHTML1_TRANSITIONALboolean isXhtmlTransitional(Node aPageNode)
Checks if the doctype for a certain page is XHTML 1.0 Transitional.
aPageNode - this argument will be completely ignoredboolean isXhtmlStrict()
Checks if the doctype for current page is XHTML 1.0 Strict.
DocType.XHTML1_STRICTboolean isXhtmlStrict(Node aPageNode)
Checks if the doctype for a certain page is XHTML 1.0 Strict.
aPageNode - this argument will be completely ignoredDocType getDocType()
DocType.HTML5 since all pages are always HTML5.
Gets the doctype for current page.
DocType.HTML5DocType getDocType(Node aPageNode)
DocType.HTML5 since all pages are always HTML5.
Gets the doctype for a certain page.
aPageNode - this argument will be completely ignoredDocType.HTML5boolean isDocType(DocType aDocType)
DocType.HTML5.
Checks if the doctype for current page matches a certain DocType.
aDocType - the doctype to check againstDocType.HTML5, false otherwiseboolean isDocType(Node aPageNode, DocType aDocType)
DocType.HTML5.
Checks if the doctype for a certain page matches a certain DocType.
aPageNode - this argument will be completely ignoredaDocType - the doctype to check againstDocType.HTML5, false otherwiseSitevision - Content Management Made Easy
Sitevision is an advanced Java enterprise portal product that implements Java Content Repository (JSR 283).
Copyright© 2008-2025 Sitevision AB, all rights reserved.