Class Hamlet
java.lang.Object
org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec
org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl
org.apache.hadoop.yarn.webapp.hamlet2.Hamlet
- All Implemented Interfaces:
HamletSpec.__,HamletSpec._Block,HamletSpec._Body,HamletSpec._FieldSet,HamletSpec._Form,HamletSpec._Head,HamletSpec._Html,HamletSpec._InsDel,HamletSpec._Object,HamletSpec._Script,HamletSpec.Block,HamletSpec.Heading,HamletSpec.HeadMisc,HamletSpec.Listing,HamletSpec.Preformatted
- Direct Known Subclasses:
HtmlBlock.Block,HtmlPage.Page
@LimitedPrivate({"YARN","MapReduce"})
public class Hamlet
extends HamletImpl
implements HamletSpec._Html
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassHamlet.A<T extends HamletSpec.__>classHamlet.ABBR<T extends HamletSpec.__>classHamlet.ACRONYM<T extends HamletSpec.__>classHamlet.ADDRESS<T extends HamletSpec.__>classHamlet.AREA<T extends HamletSpec.__>classHamlet.B<T extends HamletSpec.__>classHamlet.BASE<T extends HamletSpec.__>classHamlet.BDO<T extends HamletSpec.__>classHamlet.BLOCKQUOTE<T extends HamletSpec.__>classHamlet.BODY<T extends HamletSpec.__>classHamlet.BR<T extends HamletSpec.__>classHamlet.BUTTON<T extends HamletSpec.__>classHamlet.CAPTION<T extends HamletSpec.__>classHamlet.CITE<T extends HamletSpec.__>classHamlet.CODE<T extends HamletSpec.__>classHamlet.COL<T extends HamletSpec.__>classHamlet.COLGROUP<T extends HamletSpec.__>classHamlet.DD<T extends HamletSpec.__>classHamlet.DEL<T extends HamletSpec.__>classHamlet.DFN<T extends HamletSpec.__>classHamlet.DIV<T extends HamletSpec.__>classHamlet.DL<T extends HamletSpec.__>classHamlet.DT<T extends HamletSpec.__>classHamlet.EM<T extends HamletSpec.__>classHamlet.FIELDSET<T extends HamletSpec.__>classHamlet.FORM<T extends HamletSpec.__>classHamlet.H1<T extends HamletSpec.__>classHamlet.H2<T extends HamletSpec.__>classHamlet.H3<T extends HamletSpec.__>classHamlet.H4<T extends HamletSpec.__>classHamlet.H5<T extends HamletSpec.__>classHamlet.H6<T extends HamletSpec.__>classHamlet.HEAD<T extends HamletSpec.__>classHamlet.HR<T extends HamletSpec.__>classHamlet.HTML<T extends HamletSpec.__>classHamlet.I<T extends HamletSpec.__>classHamlet.IMG<T extends HamletSpec.__>classHamlet.INPUT<T extends HamletSpec.__>classHamlet.INS<T extends HamletSpec.__>classHamlet.KBD<T extends HamletSpec.__>classHamlet.LABEL<T extends HamletSpec.__>classHamlet.LEGEND<T extends HamletSpec.__>classHamlet.LI<T extends HamletSpec.__>classHamlet.LINK<T extends HamletSpec.__>classHamlet.MAP<T extends HamletSpec.__>classHamlet.META<T extends HamletSpec.__>classHamlet.OBJECT<T extends HamletSpec.__>classHamlet.OL<T extends HamletSpec.__>classHamlet.OPTGROUP<T extends HamletSpec.__>classHamlet.OPTION<T extends HamletSpec.__>classHamlet.P<T extends HamletSpec.__>classHamlet.PARAM<T extends HamletSpec.__>classHamlet.PRE<T extends HamletSpec.__>classHamlet.Q<T extends HamletSpec.__>classHamlet.SAMP<T extends HamletSpec.__>classHamlet.SCRIPT<T extends HamletSpec.__>classHamlet.SELECT<T extends HamletSpec.__>classHamlet.SMALL<T extends HamletSpec.__>classHamlet.SPAN<T extends HamletSpec.__>classHamlet.STRONG<T extends HamletSpec.__>classHamlet.STYLE<T extends HamletSpec.__>classHamlet.SUB<T extends HamletSpec.__>classHamlet.SUP<T extends HamletSpec.__>classHamlet.TABLE<T extends HamletSpec.__>classHamlet.TBODY<T extends HamletSpec.__>classHamlet.TD<T extends HamletSpec.__>classHamlet.TEXTAREA<T extends HamletSpec.__>classHamlet.TFOOT<T extends HamletSpec.__>classHamlet.TH<T extends HamletSpec.__>classHamlet.THEAD<T extends HamletSpec.__>classHamlet.TITLE<T extends HamletSpec.__>classHamlet.TR<T extends HamletSpec.__>classHamlet.UL<T extends HamletSpec.__>classHamlet.VAR<T extends HamletSpec.__>Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl
HamletImpl.EImp<T extends HamletSpec.__>, HamletImpl.EOpt, HamletImpl.Generic<T extends HamletSpec.__>Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec
HamletSpec.__, HamletSpec._Anchor, HamletSpec._Block, HamletSpec._Body, HamletSpec._Cell, HamletSpec._Child, HamletSpec._Content, HamletSpec._Dl, HamletSpec._FieldSet, HamletSpec._FontSize, HamletSpec._FontStyle, HamletSpec._Form, HamletSpec._FormCtrl, HamletSpec._Head, HamletSpec._Html, HamletSpec._ImgObject, HamletSpec._InsDel, HamletSpec._Label, HamletSpec._Legend, HamletSpec._Li, HamletSpec._Object, HamletSpec._Option, HamletSpec._Param, HamletSpec._RawContent, HamletSpec._Script, HamletSpec._Special, HamletSpec._SubSup, HamletSpec._Table, HamletSpec._TableCol, HamletSpec._TableRow, HamletSpec._Tr, HamletSpec.Attrs, HamletSpec.Block, HamletSpec.ButtonType, HamletSpec.CoreAttrs, HamletSpec.Dir, HamletSpec.Element, HamletSpec.EventsAttrs, HamletSpec.Flow, HamletSpec.FontStyle, HamletSpec.FormCtrl, HamletSpec.Heading, HamletSpec.HeadMisc, HamletSpec.I18nAttrs, HamletSpec.Inline, HamletSpec.InputType, HamletSpec.LinkType, HamletSpec.Listing, HamletSpec.Media, HamletSpec.Method, HamletSpec.PCData, HamletSpec.Phrase, HamletSpec.Preformatted, HamletSpec.Scope, HamletSpec.Shape, HamletSpec.Special -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEmbed a sub-view.address()Add a ADDRESS element.Add a complete ADDRESS element.base()Add a BASE element.Add a complete BASE element.Add a BLOCKQUOTE element.body()Add a BODY element.Add a BODY element.bq()Alias of blockquotedel()Add a DEL (delete) element.Add a complete DEL element.div()Add a DIV element.Add a DIV element.dl()Add a DL (description list) element.Add a DL element.fieldset()Add a FIELDSET element.Add a FIELDSET element.form()Add a FORM element.Add a FORM element.h1()Add an H1 element.Add a complete H1 element.Add a complete H1 elementh2()Add an H2 element.Add a complete H2 element.Add a complete H1 elementh3()Add an H3 element.Add a complete H3 element.Add a complete H1 elementh4()Add an H4 element.Add a complete H4 element.Add a complete H4 elementh5()Add an H5 element.Add a complete H5 element.Add a complete H5 elementh6()Add an H6 element.Add a complete H6 element.Add a complete H6 element.head()Add a HEAD element.hr()Add a HR (horizontal rule) element.Add a HR element.ins()Add an INS (insert) element.Add a complete INS element.link()Add a link element.Add a link element.meta()Add a meta element.Add a meta element.Add a meta element with http-equiv attribute.object()Add an object element.Add an object element.ol()Add a OL (ordered list) element.Add a OL (ordered list) element.p()Add a P (paragraph) element.Add a P (paragraph) element.pre()Add a PRE (preformatted) element.Add a PRE (preformatted) element.script()Add a script element.Add a script elementstyle()Add a style element.Add a css style element.table()Add a TABLE element.Add a TABLE element.title()Add a TITLE element.Add a TITLE element.ul()Add a UL (unordered list) element.Add a UL (unordered list) element.Methods inherited from class org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl
getWriter, indent, nestLevel, parseSelector, printAttr, printEndTag, printStartTag, root, root, setLinkHref, setScriptSrc, setSelector, setWasInline, subView, wasInline
-
Constructor Details
-
Hamlet
-
-
Method Details
-
head
Description copied from interface:HamletSpec._HtmlAdd a HEAD element.- Specified by:
headin interfaceHamletSpec._Html- Returns:
- a new HEAD element builder
-
body
Description copied from interface:HamletSpec._HtmlAdd a BODY element.- Specified by:
bodyin interfaceHamletSpec._Html- Returns:
- a new BODY element builder
-
body
Description copied from interface:HamletSpec._HtmlAdd a BODY element.- Specified by:
bodyin interfaceHamletSpec._Html- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new BODY element builder
-
base
Description copied from interface:HamletSpec._HeadAdd a BASE element.- Specified by:
basein interfaceHamletSpec._Head- Returns:
- a new BASE element builder
-
base
Description copied from interface:HamletSpec._HeadAdd a complete BASE element.- Specified by:
basein interfaceHamletSpec._Head- Parameters:
href- the URI.- Returns:
- the current element builder
-
title
Description copied from interface:HamletSpec._HeadAdd a TITLE element.- Specified by:
titlein interfaceHamletSpec._Head- Returns:
- a new TITLE element builder
-
title
Description copied from interface:HamletSpec._HeadAdd a TITLE element.- Specified by:
titlein interfaceHamletSpec._Head- Parameters:
cdata- the content- Returns:
- the current element builder
-
style
Description copied from interface:HamletSpec.HeadMiscAdd a style element.- Specified by:
stylein interfaceHamletSpec.HeadMisc- Returns:
- a style element builder
-
style
Description copied from interface:HamletSpec.HeadMiscAdd a css style element.- Specified by:
stylein interfaceHamletSpec.HeadMisc- Parameters:
lines- content of the style sheet- Returns:
- the current element builder
-
link
Description copied from interface:HamletSpec.HeadMiscAdd a link element.- Specified by:
linkin interfaceHamletSpec.HeadMisc- Returns:
- a link element builder
-
link
Description copied from interface:HamletSpec.HeadMiscAdd a link element. Implementation should try to figure out type by the suffix of href. Solink("style.css");is a shortcut oflink().$rel("stylesheet").$type("text/css").$href("style.css").__();- Specified by:
linkin interfaceHamletSpec.HeadMisc- Parameters:
href- of the link- Returns:
- the current element builder
-
meta
Description copied from interface:HamletSpec.HeadMiscAdd a meta element.- Specified by:
metain interfaceHamletSpec.HeadMisc- Returns:
- a meta element builder
-
meta
Description copied from interface:HamletSpec.HeadMiscAdd a meta element. Shortcut ofmeta().$name(name).$content(content).__();- Specified by:
metain interfaceHamletSpec.HeadMisc- Parameters:
name- of the meta elementcontent- of the meta element- Returns:
- the current element builder
-
meta_http
Description copied from interface:HamletSpec.HeadMiscAdd a meta element with http-equiv attribute. Shortcut of
meta().$http_equiv(header).$content(content).__();- Specified by:
meta_httpin interfaceHamletSpec.HeadMisc- Parameters:
header- for the http-equiv attributecontent- of the header- Returns:
- the current element builder
-
script
Description copied from interface:HamletSpec._ScriptAdd a script element.- Specified by:
scriptin interfaceHamletSpec._Script- Returns:
- a script element builder
-
script
Description copied from interface:HamletSpec._ScriptAdd a script element- Specified by:
scriptin interfaceHamletSpec._Script- Parameters:
src- uri of the script- Returns:
- the current element builder
-
object
Description copied from interface:HamletSpec._ObjectAdd an object element.- Specified by:
objectin interfaceHamletSpec._Object- Returns:
- an object element builder
-
object
Description copied from interface:HamletSpec._ObjectAdd an object element.- Specified by:
objectin interfaceHamletSpec._Object- Parameters:
selector- as #id.class etc.- Returns:
- an object element builder
-
table
Description copied from interface:HamletSpec._BlockAdd a TABLE element.- Specified by:
tablein interfaceHamletSpec._Block- Returns:
- a new TABLE element builder
-
table
Description copied from interface:HamletSpec._BlockAdd a TABLE element.- Specified by:
tablein interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new TABLE element builder
-
address
Description copied from interface:HamletSpec._BlockAdd a complete ADDRESS element.- Specified by:
addressin interfaceHamletSpec._Block- Parameters:
cdata- the content- Returns:
- the current element builder
-
address
Description copied from interface:HamletSpec._BlockAdd a ADDRESS element.- Specified by:
addressin interfaceHamletSpec._Block- Returns:
- a new ADDRESS element builder
-
p
Description copied from interface:HamletSpec._BlockAdd a P (paragraph) element.- Specified by:
pin interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new P element builder
-
p
Description copied from interface:HamletSpec._BlockAdd a P (paragraph) element.- Specified by:
pin interfaceHamletSpec._Block- Returns:
- a new P element builder
-
__
Description copied from interface:HamletSpec._BlockEmbed a sub-view.- Specified by:
__in interfaceHamletSpec._Block- Parameters:
cls- the sub-view class- Returns:
- the current element builder
-
hr
Description copied from interface:HamletSpec._BlockAdd a HR (horizontal rule) element.- Specified by:
hrin interfaceHamletSpec._Block- Returns:
- a new HR element builder
-
hr
Description copied from interface:HamletSpec._BlockAdd a HR element.- Specified by:
hrin interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new HR element builder
-
dl
Description copied from interface:HamletSpec._BlockAdd a DL element.- Specified by:
dlin interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new DL element builder
-
dl
Description copied from interface:HamletSpec._BlockAdd a DL (description list) element.- Specified by:
dlin interfaceHamletSpec._Block- Returns:
- a new DL element builder
-
div
Description copied from interface:HamletSpec._BlockAdd a DIV element.- Specified by:
divin interfaceHamletSpec._Block- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new DIV element builder
-
div
Description copied from interface:HamletSpec._BlockAdd a DIV element.- Specified by:
divin interfaceHamletSpec._Block- Returns:
- a new DIV element builder
-
blockquote
Description copied from interface:HamletSpec._BlockAdd a BLOCKQUOTE element.- Specified by:
blockquotein interfaceHamletSpec._Block- Returns:
- a new BLOCKQUOTE element builder
-
bq
Description copied from interface:HamletSpec._BlockAlias of blockquote- Specified by:
bqin interfaceHamletSpec._Block- Returns:
- a new BLOCKQUOTE element builder
-
h1
Description copied from interface:HamletSpec.HeadingAdd a complete H1 element.- Specified by:
h1in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h1
Description copied from interface:HamletSpec.HeadingAdd an H1 element.- Specified by:
h1in interfaceHamletSpec.Heading- Returns:
- a new H1 element builder
-
h1
Description copied from interface:HamletSpec.HeadingAdd a complete H1 element- Specified by:
h1in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h2
Description copied from interface:HamletSpec.HeadingAdd a complete H2 element.- Specified by:
h2in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h2
Description copied from interface:HamletSpec.HeadingAdd an H2 element.- Specified by:
h2in interfaceHamletSpec.Heading- Returns:
- a new H2 element builder
-
h2
Description copied from interface:HamletSpec.HeadingAdd a complete H1 element- Specified by:
h2in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h3
Description copied from interface:HamletSpec.HeadingAdd an H3 element.- Specified by:
h3in interfaceHamletSpec.Heading- Returns:
- a new H3 element builder
-
h3
Description copied from interface:HamletSpec.HeadingAdd a complete H3 element.- Specified by:
h3in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h3
Description copied from interface:HamletSpec.HeadingAdd a complete H1 element- Specified by:
h3in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h4
Description copied from interface:HamletSpec.HeadingAdd an H4 element.- Specified by:
h4in interfaceHamletSpec.Heading- Returns:
- a new H4 element builder
-
h4
Description copied from interface:HamletSpec.HeadingAdd a complete H4 element.- Specified by:
h4in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h4
Description copied from interface:HamletSpec.HeadingAdd a complete H4 element- Specified by:
h4in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h5
Description copied from interface:HamletSpec.HeadingAdd an H5 element.- Specified by:
h5in interfaceHamletSpec.Heading- Returns:
- a new H5 element builder
-
h5
Description copied from interface:HamletSpec.HeadingAdd a complete H5 element.- Specified by:
h5in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h5
Description copied from interface:HamletSpec.HeadingAdd a complete H5 element- Specified by:
h5in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
h6
Description copied from interface:HamletSpec.HeadingAdd an H6 element.- Specified by:
h6in interfaceHamletSpec.Heading- Returns:
- a new H6 element builder
-
h6
Description copied from interface:HamletSpec.HeadingAdd a complete H6 element.- Specified by:
h6in interfaceHamletSpec.Heading- Parameters:
cdata- the content of the element- Returns:
- the current element builder
-
h6
Description copied from interface:HamletSpec.HeadingAdd a complete H6 element.- Specified by:
h6in interfaceHamletSpec.Heading- Parameters:
selector- the css selector in the form of (#id)?(.class)*cdata- the content of the element- Returns:
- the current element builder
-
ul
Description copied from interface:HamletSpec.ListingAdd a UL (unordered list) element.- Specified by:
ulin interfaceHamletSpec.Listing- Returns:
- a new UL element builder
-
ul
Description copied from interface:HamletSpec.ListingAdd a UL (unordered list) element.- Specified by:
ulin interfaceHamletSpec.Listing- Parameters:
selector- the css selector in the form of (#id)?(.class)*- Returns:
- a new UL element builder
-
ol
Description copied from interface:HamletSpec.ListingAdd a OL (ordered list) element.- Specified by:
olin interfaceHamletSpec.Listing- Returns:
- a new UL element builder
-
ol
Description copied from interface:HamletSpec.ListingAdd a OL (ordered list) element.- Specified by:
olin interfaceHamletSpec.Listing- Parameters:
selector- the css selector in the form of (#id)?(.class)*- Returns:
- a new UL element builder
-
pre
Description copied from interface:HamletSpec.PreformattedAdd a PRE (preformatted) element.- Specified by:
prein interfaceHamletSpec.Preformatted- Returns:
- a new PRE element builder
-
pre
Description copied from interface:HamletSpec.PreformattedAdd a PRE (preformatted) element.- Specified by:
prein interfaceHamletSpec.Preformatted- Parameters:
selector- the css selector in the form of (#id)?(.class)*- Returns:
- a new PRE element builder
-
form
Description copied from interface:HamletSpec._FormAdd a FORM element.- Specified by:
formin interfaceHamletSpec._Form- Returns:
- a new FORM element builder
-
form
Description copied from interface:HamletSpec._FormAdd a FORM element.- Specified by:
formin interfaceHamletSpec._Form- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new FORM element builder
-
fieldset
Description copied from interface:HamletSpec._FieldSetAdd a FIELDSET element.- Specified by:
fieldsetin interfaceHamletSpec._FieldSet- Returns:
- a new FIELDSET element builder
-
fieldset
Description copied from interface:HamletSpec._FieldSetAdd a FIELDSET element.- Specified by:
fieldsetin interfaceHamletSpec._FieldSet- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new FIELDSET element builder
-
ins
Description copied from interface:HamletSpec._InsDelAdd an INS (insert) element.- Specified by:
insin interfaceHamletSpec._InsDel- Returns:
- an INS element builder
-
ins
Description copied from interface:HamletSpec._InsDelAdd a complete INS element.- Specified by:
insin interfaceHamletSpec._InsDel- Parameters:
cdata- inserted data- Returns:
- the current element builder
-
del
Description copied from interface:HamletSpec._InsDelAdd a DEL (delete) element.- Specified by:
delin interfaceHamletSpec._InsDel- Returns:
- a DEL element builder
-
del
Description copied from interface:HamletSpec._InsDelAdd a complete DEL element.- Specified by:
delin interfaceHamletSpec._InsDel- Parameters:
cdata- deleted data- Returns:
- the current element builder
-