Package org.ctan.markup
Enum Class Tag
- All Implemented Interfaces:
Serializable
,Comparable<Tag>
,Constable
This enumeration represents HTML tags.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
This enumeration defines the modes to sanitise tags.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe_DOCTYPE
tag.The_SKIP
pseudo tag for everything to be skipped.The fieldA
represents the a tag.The constantABBR
represents the abbr tag.The constantACRONYM
represents the acronym tag.The constantADDRESS
represents the address tag.The constantAPPLET
represents the applet tag.The constantAREA
represents the area tag.The constantB
represents the b tag.The constantB_I
represents the b-i tag combination.The constantBASE
represents the base tag.The constantBASEFONT
represents the basefont tag.The constantBDO
represents the bdo tag.The constantBIG
represents the big tag.The constantBLOCKQUOTE
represents the blockquote tag.The constantBODY
represents the body tag.The constantBR
represents the br tag.The constantBUTTON
represents the button tag.The constantCAPTION
represents the caption tag.The constantCENTER
represents the center tag.The constantCITE
represents the cite tag.The constantCODE
represents the code tag.The constantCOL
represents the col tag.The constantCOLGROUP
represents the colgroup tag.The constantDD
represents the dd tag.The constantDEL
represents the del tag.The constantDFN
represents the dfn tag.The constantDIR
represents the dir tag.The constantDIV
represents the div tag.The constantDL
represents the dl tag.The constantDT
represents the dt tag.The constantEM
represents the em tag.The constantFIELDSET
represents the fieldset tag.The constantFONT
represents the font tag.The constantFORM
represents the form tag.The constantFRAME
represents the frame tag.The constantFRAMESET
represents the frameset tag.TheH1
tag.TheH2
tag.TheH3
tag.TheH4
tag.TheH5
tag.TheH6
tag.The constantHEAD
represents the head tag.The constantHR
represents the hr tag.The constantHTML
represents the html tag.The constantI
represents the i tag.The constantIFRAME
represents the iframe tag.The constantIMG
represents the img tag.The constantINPUT
represents the input tag.The constantINS
represents the ins tag.The constantISINDEX
represents the isindex tag.The constantKBD
represents the kbd tag.The constantLABEL
represents the label tag.The constantLEGEND
represents the legend tag.The constantLI
represents the li tag.The constantLINK
represents the link tag.The constantMAP
represents the map tag.The constantMENU
represents the menu tag.The constantMETA
represents the meta tag.The constantNOFRAMES
represents the noframes tag.The constantNOSCRIPT
represents the noscript tag.The constantOBJECT
represents the object tag.The constantOL
represents the ol tag.The constantOPTGROUP
represents the optgroup tag.The constantOPTION
represents the option tag.The constantP
represents the p tag.The constantPARAM
represents the param tag.The constantPRE
represents the pre tag.The constantQ
represents the q tag.The constantS
represents the s tag.The constantSAMP
represents the samp tag.The constantSCRIPT
represents the script tag.The constantSELECT
represents the select tag.The constantSMALL
represents the small tag.The constantSPAN
represents the span tag.The constantSTRIKE
represents the strike tag.The constantSTRONG
represents the strong tag.The constantSTYLE
represents the style tag.The constantSUB
represents the sub tag.The constantSUP
represents the sup tag.The constantTABLE
represents the table tag.The constantTBODY
represents the tbody tag.The constantTD
represents the td tag.The constantTEXTAREA
represents the textarea tag.The constantTFOOT
represents the tfoot tag.The constantTH
represents the th tag.The constantTHEAD
represents the thead tag.The constantTITLE
represents the title tag.The constantTR
represents the tr tag.The constantTT
represents the tt tag.The constantU
represents the u tag.The constantUL
represents the ul tag.The constantVAR
represents the var tag. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method writes the start tag to the writer.boolean
The methodisSection
is the getter for the section indicator.void
This method writes the start tag to the writer.void
This method writes the start tag to the writer.void
This method writes the start tag to the writer.boolean
This method writes the start tag to the writer.static Tag
Returns the enum constant of this class with the specified name.static Tag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.void
This method writes the tag to the writer.void
This method writes the tag to the writer.
-
Enum Constant Details
-
_SKIP
The_SKIP
pseudo tag for everything to be skipped. -
_DOCTYPE
The_DOCTYPE
tag. -
A
The fieldA
represents the a tag. -
ABBR
The constantABBR
represents the abbr tag. -
ACRONYM
The constantACRONYM
represents the acronym tag. -
ADDRESS
The constantADDRESS
represents the address tag. -
APPLET
The constantAPPLET
represents the applet tag. -
AREA
The constantAREA
represents the area tag. -
B
The constantB
represents the b tag. -
B_I
The constantB_I
represents the b-i tag combination. -
BASE
The constantBASE
represents the base tag. -
BASEFONT
The constantBASEFONT
represents the basefont tag. -
BDO
The constantBDO
represents the bdo tag. -
BIG
The constantBIG
represents the big tag. -
BLOCKQUOTE
The constantBLOCKQUOTE
represents the blockquote tag. -
BODY
The constantBODY
represents the body tag. -
BR
The constantBR
represents the br tag. -
BUTTON
The constantBUTTON
represents the button tag. -
CAPTION
The constantCAPTION
represents the caption tag. -
CENTER
The constantCENTER
represents the center tag. -
CITE
The constantCITE
represents the cite tag. -
CODE
The constantCODE
represents the code tag. -
COL
The constantCOL
represents the col tag. -
COLGROUP
The constantCOLGROUP
represents the colgroup tag. -
DD
The constantDD
represents the dd tag. -
DEL
The constantDEL
represents the del tag. -
DFN
The constantDFN
represents the dfn tag. -
DIR
The constantDIR
represents the dir tag. -
DIV
The constantDIV
represents the div tag. -
DL
The constantDL
represents the dl tag. -
DT
The constantDT
represents the dt tag. -
EM
The constantEM
represents the em tag. -
FIELDSET
The constantFIELDSET
represents the fieldset tag. -
FONT
The constantFONT
represents the font tag. -
FORM
The constantFORM
represents the form tag. -
FRAME
The constantFRAME
represents the frame tag. -
FRAMESET
The constantFRAMESET
represents the frameset tag. -
H1
TheH1
tag. -
H2
TheH2
tag. -
H3
TheH3
tag. -
H4
TheH4
tag. -
H5
TheH5
tag. -
H6
TheH6
tag. -
HEAD
The constantHEAD
represents the head tag. -
HR
The constantHR
represents the hr tag. -
HTML
The constantHTML
represents the html tag. -
I
The constantI
represents the i tag. -
IFRAME
The constantIFRAME
represents the iframe tag. -
IMG
The constantIMG
represents the img tag. -
INPUT
The constantINPUT
represents the input tag. -
INS
The constantINS
represents the ins tag. -
ISINDEX
The constantISINDEX
represents the isindex tag. -
KBD
The constantKBD
represents the kbd tag. -
LABEL
The constantLABEL
represents the label tag. -
LEGEND
The constantLEGEND
represents the legend tag. -
LI
The constantLI
represents the li tag. -
LINK
The constantLINK
represents the link tag. -
MAP
The constantMAP
represents the map tag. -
MENU
The constantMENU
represents the menu tag. -
META
The constantMETA
represents the meta tag. -
NOFRAMES
The constantNOFRAMES
represents the noframes tag. -
NOSCRIPT
The constantNOSCRIPT
represents the noscript tag. -
OBJECT
The constantOBJECT
represents the object tag. -
OL
The constantOL
represents the ol tag. -
OPTGROUP
The constantOPTGROUP
represents the optgroup tag. -
OPTION
The constantOPTION
represents the option tag. -
P
The constantP
represents the p tag. -
PARAM
The constantPARAM
represents the param tag. -
PRE
The constantPRE
represents the pre tag. -
Q
The constantQ
represents the q tag. -
S
The constantS
represents the s tag. -
SAMP
The constantSAMP
represents the samp tag. -
SCRIPT
The constantSCRIPT
represents the script tag. -
SELECT
The constantSELECT
represents the select tag. -
SMALL
The constantSMALL
represents the small tag. -
SPAN
The constantSPAN
represents the span tag. -
STRIKE
The constantSTRIKE
represents the strike tag. -
STRONG
The constantSTRONG
represents the strong tag. -
STYLE
The constantSTYLE
represents the style tag. -
SUB
The constantSUB
represents the sub tag. -
SUP
The constantSUP
represents the sup tag. -
TABLE
The constantTABLE
represents the table tag. -
TBODY
The constantTBODY
represents the tbody tag. -
TD
The constantTD
represents the td tag. -
TEXTAREA
The constantTEXTAREA
represents the textarea tag. -
TFOOT
The constantTFOOT
represents the tfoot tag. -
TH
The constantTH
represents the th tag. -
THEAD
The constantTHEAD
represents the thead tag. -
TITLE
The constantTITLE
represents the title tag. -
TR
The constantTR
represents the tr tag. -
TT
The constantTT
represents the tt tag. -
U
The constantU
represents the u tag. -
UL
The constantUL
represents the ul tag. -
VAR
The constantVAR
represents the var tag.
-
-
Field Details
-
SECTION
The constantSECTION
contains a list of section tags in ascending order.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
end
This method writes the start tag to the writer.- Parameters:
writer
- the writer- Throws:
IOException
- in case of an I/O error
-
isSection
public boolean isSection()The methodisSection
is the getter for the section indicator.- Returns:
true
if the tag is a H* tag.
-
start
This method writes the start tag to the writer.- Parameters:
writer
- the writer- Throws:
IOException
- in case of an I/O error
-
start
This method writes the start tag to the writer.- Parameters:
writer
- the writerattr
- the attribute values- Throws:
IOException
- in case of an I/O error
-
start
This method writes the start tag to the writer.- Parameters:
writer
- the writerkey
- the key of a single propertyvalue
- the value for the key- Throws:
IOException
- in case of an I/O error
-
startSave
public boolean startSave(Writer writer, String base, Map<String, String> attributes) throws IOExceptionThis method writes the start tag to the writer.- Parameters:
writer
- the writerbase
- the base URLattributes
- the attributes- Returns:
true
iff the tag is save- Throws:
IOException
- in case of an I/O error
-
write
This method writes the tag to the writer.- Parameters:
writer
- the writerattributes
- the attributes- Throws:
IOException
- in case of an I/O error
-
writeSave
This method writes the tag to the writer.- Parameters:
writer
- the writerattributes
- the attributes- Throws:
IOException
- in case of an I/O error
-