Copyright© 2008-2018 SiteVision AB, all rights reserved.
@Requireable(value="DocTypeUtil") public interface DocTypeUtil
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()
Gets the doctype for current page.
|
DocType |
getDocType(Node aPageNode)
Gets the doctype for a certain page.
|
boolean |
isDocType(DocType aDocType)
Checks if the doctype for current page matches a certain DocType.
|
boolean |
isDocType(Node aPageNode,
DocType aDocType)
Checks if the doctype for a certain page matches a certain DocType.
|
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.
|
boolean |
isHtml4()
Checks if the doctype for current page is HTML 4.01 Transitional.
|
boolean |
isHtml4(Node aPageNode)
Checks if the doctype for a certain page is HTML 4.01 Transitional.
|
boolean |
isHtml5()
Checks if the doctype for current page is HTML5.
|
boolean |
isHtml5(Node aPageNode)
Checks if the doctype for a certain page is HTML5.
|
boolean |
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.
|
boolean |
isXhtmlStrict()
Checks if the doctype for current page is XHTML 1.0 Strict.
|
boolean |
isXhtmlStrict(Node aPageNode)
Checks if the doctype for a certain page is XHTML 1.0 Strict.
|
boolean |
isXhtmlTransitional()
Checks if the doctype for current page is XHTML 1.0 Transitional.
|
boolean |
isXhtmlTransitional(Node aPageNode)
Checks if the doctype for a certain page is XHTML 1.0 Transitional.
|
boolean isHtml()
true
if current page is HTML 4.01 Transitional or HTML5, false
otherwiseDocType.HTML4_TRANSITIONAL
,
DocType.HTML5
boolean isHtml(Node aPageNode)
aPageNode
- the page tree node to checktrue
if aPageNode
is HTML 4.01 Transitional or HTML5, false
otherwiseDocType.HTML4_TRANSITIONAL
,
DocType.HTML5
boolean isHtml4()
true
if current page is HTML 4.01 Transitional, false
otherwiseDocType.HTML4_TRANSITIONAL
boolean isHtml4(Node aPageNode)
aPageNode
- the page tree node to checktrue
if aPageNode
is HTML 4.01 Transitional, false
otherwiseDocType.HTML4_TRANSITIONAL
boolean isHtml5()
true
if current page is HTML5, false
otherwiseDocType.HTML5
boolean isHtml5(Node aPageNode)
aPageNode
- the page tree node to checktrue
if aPageNode
is HTML5, false
otherwiseDocType.HTML5
boolean isXhtml()
true
if current page is XHTML 1.0 Transitional or XHTML 1.0 Strict, false
otherwiseDocType.XHTML1_TRANSITIONAL
,
DocType.XHTML1_STRICT
boolean isXhtml(Node aPageNode)
aPageNode
- the page tree node to checktrue
if aPageNode
is XHTML 1.0 Transitional or XHTML 1.0 Strict, false
otherwiseDocType.XHTML1_TRANSITIONAL
,
DocType.XHTML1_STRICT
boolean isXhtmlTransitional()
true
if current page is XHTML 1.0 Transitional, false
otherwiseDocType.XHTML1_TRANSITIONAL
boolean isXhtmlTransitional(Node aPageNode)
aPageNode
- the page tree node to checktrue
if aPageNode
is XHTML 1.0 Transitional, false
otherwiseDocType.XHTML1_TRANSITIONAL
boolean isXhtmlStrict()
true
if current page is XHTML 1.0 Strict, false
otherwiseDocType.XHTML1_STRICT
boolean isXhtmlStrict(Node aPageNode)
aPageNode
- the page tree node to checktrue
if aPageNode
is XHTML 1.0 Strict, false
otherwiseDocType.XHTML1_STRICT
DocType getDocType()
DocType getDocType(Node aPageNode)
aPageNode
- the page tree node to get doctype foraPageNode
boolean isDocType(DocType aDocType)
aDocType
- the doctype to check againsttrue
if the doctype for current page matches aDocType
, false
otherwiseSiteVision - Portal and Content Management Made Easy
SiteVision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2018 SiteVision AB, all rights reserved.