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 enumThis 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_DOCTYPEtag.The_SKIPpseudo tag for everything to be skipped.The fieldArepresents the a tag.The constantABBRrepresents the abbr tag.The constantACRONYMrepresents the acronym tag.The constantADDRESSrepresents the address tag.The constantAPPLETrepresents the applet tag.The constantAREArepresents the area tag.The constantBrepresents the b tag.The constantB_Irepresents the b-i tag combination.The constantBASErepresents the base tag.The constantBASEFONTrepresents the basefont tag.The constantBDOrepresents the bdo tag.The constantBIGrepresents the big tag.The constantBLOCKQUOTErepresents the blockquote tag.The constantBODYrepresents the body tag.The constantBRrepresents the br tag.The constantBUTTONrepresents the button tag.The constantCAPTIONrepresents the caption tag.The constantCENTERrepresents the center tag.The constantCITErepresents the cite tag.The constantCODErepresents the code tag.The constantCOLrepresents the col tag.The constantCOLGROUPrepresents the colgroup tag.The constantDDrepresents the dd tag.The constantDELrepresents the del tag.The constantDFNrepresents the dfn tag.The constantDIRrepresents the dir tag.The constantDIVrepresents the div tag.The constantDLrepresents the dl tag.The constantDTrepresents the dt tag.The constantEMrepresents the em tag.The constantFIELDSETrepresents the fieldset tag.The constantFONTrepresents the font tag.The constantFORMrepresents the form tag.The constantFRAMErepresents the frame tag.The constantFRAMESETrepresents the frameset tag.TheH1tag.TheH2tag.TheH3tag.TheH4tag.TheH5tag.TheH6tag.The constantHEADrepresents the head tag.The constantHRrepresents the hr tag.The constantHTMLrepresents the html tag.The constantIrepresents the i tag.The constantIFRAMErepresents the iframe tag.The constantIMGrepresents the img tag.The constantINPUTrepresents the input tag.The constantINSrepresents the ins tag.The constantISINDEXrepresents the isindex tag.The constantKBDrepresents the kbd tag.The constantLABELrepresents the label tag.The constantLEGENDrepresents the legend tag.The constantLIrepresents the li tag.The constantLINKrepresents the link tag.The constantMAPrepresents the map tag.The constantMENUrepresents the menu tag.The constantMETArepresents the meta tag.The constantNOFRAMESrepresents the noframes tag.The constantNOSCRIPTrepresents the noscript tag.The constantOBJECTrepresents the object tag.The constantOLrepresents the ol tag.The constantOPTGROUPrepresents the optgroup tag.The constantOPTIONrepresents the option tag.The constantPrepresents the p tag.The constantPARAMrepresents the param tag.The constantPRErepresents the pre tag.The constantQrepresents the q tag.The constantSrepresents the s tag.The constantSAMPrepresents the samp tag.The constantSCRIPTrepresents the script tag.The constantSELECTrepresents the select tag.The constantSMALLrepresents the small tag.The constantSPANrepresents the span tag.The constantSTRIKErepresents the strike tag.The constantSTRONGrepresents the strong tag.The constantSTYLErepresents the style tag.The constantSUBrepresents the sub tag.The constantSUPrepresents the sup tag.The constantTABLErepresents the table tag.The constantTBODYrepresents the tbody tag.The constantTDrepresents the td tag.The constantTEXTAREArepresents the textarea tag.The constantTFOOTrepresents the tfoot tag.The constantTHrepresents the th tag.The constantTHEADrepresents the thead tag.The constantTITLErepresents the title tag.The constantTRrepresents the tr tag.The constantTTrepresents the tt tag.The constantUrepresents the u tag.The constantULrepresents the ul tag.The constantVARrepresents the var tag. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method writes the start tag to the writer.booleanThe methodisSectionis the getter for the section indicator.voidThis method writes the start tag to the writer.voidThis method writes the start tag to the writer.booleanThis method writes the start tag to the writer.booleanThis method writes the start tag to the writer.static TagReturns 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.voidThis method writes the tag to the writer.voidThis method writes the tag to the writer.
-
Enum Constant Details
-
_SKIP
The_SKIPpseudo tag for everything to be skipped. -
_DOCTYPE
The_DOCTYPEtag. -
A
The fieldArepresents the a tag. -
ABBR
The constantABBRrepresents the abbr tag. -
ACRONYM
The constantACRONYMrepresents the acronym tag. -
ADDRESS
The constantADDRESSrepresents the address tag. -
APPLET
The constantAPPLETrepresents the applet tag. -
AREA
The constantAREArepresents the area tag. -
B
The constantBrepresents the b tag. -
B_I
The constantB_Irepresents the b-i tag combination. -
BASE
The constantBASErepresents the base tag. -
BASEFONT
The constantBASEFONTrepresents the basefont tag. -
BDO
The constantBDOrepresents the bdo tag. -
BIG
The constantBIGrepresents the big tag. -
BLOCKQUOTE
The constantBLOCKQUOTErepresents the blockquote tag. -
BODY
The constantBODYrepresents the body tag. -
BR
The constantBRrepresents the br tag. -
BUTTON
The constantBUTTONrepresents the button tag. -
CAPTION
The constantCAPTIONrepresents the caption tag. -
CENTER
The constantCENTERrepresents the center tag. -
CITE
The constantCITErepresents the cite tag. -
CODE
The constantCODErepresents the code tag. -
COL
The constantCOLrepresents the col tag. -
COLGROUP
The constantCOLGROUPrepresents the colgroup tag. -
DD
The constantDDrepresents the dd tag. -
DEL
The constantDELrepresents the del tag. -
DFN
The constantDFNrepresents the dfn tag. -
DIR
The constantDIRrepresents the dir tag. -
DIV
The constantDIVrepresents the div tag. -
DL
The constantDLrepresents the dl tag. -
DT
The constantDTrepresents the dt tag. -
EM
The constantEMrepresents the em tag. -
FIELDSET
The constantFIELDSETrepresents the fieldset tag. -
FONT
The constantFONTrepresents the font tag. -
FORM
The constantFORMrepresents the form tag. -
FRAME
The constantFRAMErepresents the frame tag. -
FRAMESET
The constantFRAMESETrepresents the frameset tag. -
H1
TheH1tag. -
H2
TheH2tag. -
H3
TheH3tag. -
H4
TheH4tag. -
H5
TheH5tag. -
H6
TheH6tag. -
HEAD
The constantHEADrepresents the head tag. -
HR
The constantHRrepresents the hr tag. -
HTML
The constantHTMLrepresents the html tag. -
I
The constantIrepresents the i tag. -
IFRAME
The constantIFRAMErepresents the iframe tag. -
IMG
The constantIMGrepresents the img tag. -
INPUT
The constantINPUTrepresents the input tag. -
INS
The constantINSrepresents the ins tag. -
ISINDEX
The constantISINDEXrepresents the isindex tag. -
KBD
The constantKBDrepresents the kbd tag. -
LABEL
The constantLABELrepresents the label tag. -
LEGEND
The constantLEGENDrepresents the legend tag. -
LI
The constantLIrepresents the li tag. -
LINK
The constantLINKrepresents the link tag. -
MAP
The constantMAPrepresents the map tag. -
MENU
The constantMENUrepresents the menu tag. -
META
The constantMETArepresents the meta tag. -
NOFRAMES
The constantNOFRAMESrepresents the noframes tag. -
NOSCRIPT
The constantNOSCRIPTrepresents the noscript tag. -
OBJECT
The constantOBJECTrepresents the object tag. -
OL
The constantOLrepresents the ol tag. -
OPTGROUP
The constantOPTGROUPrepresents the optgroup tag. -
OPTION
The constantOPTIONrepresents the option tag. -
P
The constantPrepresents the p tag. -
PARAM
The constantPARAMrepresents the param tag. -
PRE
The constantPRErepresents the pre tag. -
Q
The constantQrepresents the q tag. -
S
The constantSrepresents the s tag. -
SAMP
The constantSAMPrepresents the samp tag. -
SCRIPT
The constantSCRIPTrepresents the script tag. -
SELECT
The constantSELECTrepresents the select tag. -
SMALL
The constantSMALLrepresents the small tag. -
SPAN
The constantSPANrepresents the span tag. -
STRIKE
The constantSTRIKErepresents the strike tag. -
STRONG
The constantSTRONGrepresents the strong tag. -
STYLE
The constantSTYLErepresents the style tag. -
SUB
The constantSUBrepresents the sub tag. -
SUP
The constantSUPrepresents the sup tag. -
TABLE
The constantTABLErepresents the table tag. -
TBODY
The constantTBODYrepresents the tbody tag. -
TD
The constantTDrepresents the td tag. -
TEXTAREA
The constantTEXTAREArepresents the textarea tag. -
TFOOT
The constantTFOOTrepresents the tfoot tag. -
TH
The constantTHrepresents the th tag. -
THEAD
The constantTHEADrepresents the thead tag. -
TITLE
The constantTITLErepresents the title tag. -
TR
The constantTRrepresents the tr tag. -
TT
The constantTTrepresents the tt tag. -
U
The constantUrepresents the u tag. -
UL
The constantULrepresents the ul tag. -
VAR
The constantVARrepresents the var tag.
-
-
Field Details
-
SECTION
The constantSECTIONcontains 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 methodisSectionis the getter for the section indicator.- Returns:
trueif 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- Returns:
trueiff the tag has been closed- 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:
trueiff 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
-