Package org.htmlcleaner
Class DoctypeToken
- java.lang.Object
-
- org.htmlcleaner.BaseTokenImpl
-
- org.htmlcleaner.DoctypeToken
-
public class DoctypeToken extends BaseTokenImpl implements HtmlNode
HTML doctype token.
-
-
Field Summary
Fields Modifier and Type Field Description static intHTML4_0static intHTML4_01static intHTML4_01_FRAMESETstatic intHTML4_01_STRICTstatic intHTML4_01_TRANSITIONALstatic intHTML5static intHTML5_LEGACY_TOOL_COMPATIBLEstatic intUNKNOWNstatic intXHTML1_0_FRAMESETstatic intXHTML1_0_STRICTstatic intXHTML1_0_TRANSITIONALstatic intXHTML1_1static intXHTML1_1_BASIC
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetContent()StringgetName()StringgetPart1()StringgetPart2()StringgetPart3()Deprecated.StringgetPart4()Deprecated.StringgetPublicId()This will retrieve the public ID of an externally referenced DTD, or an empty String if none is referenced.StringgetSystemId()This will retrieve the system ID of an externally referenced DTD, or an empty String if none is referenced.intgetType()This will retrieve an integer representing the identified DocTypebooleanisValid()voidserialize(Serializer serializer, Writer writer)StringtoString()-
Methods inherited from class org.htmlcleaner.BaseTokenImpl
getCol, getRow, setCol, setRow
-
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
HTML4_0
public static final int HTML4_0
- See Also:
- Constant Field Values
-
HTML4_01
public static final int HTML4_01
- See Also:
- Constant Field Values
-
HTML4_01_STRICT
public static final int HTML4_01_STRICT
- See Also:
- Constant Field Values
-
HTML4_01_TRANSITIONAL
public static final int HTML4_01_TRANSITIONAL
- See Also:
- Constant Field Values
-
HTML4_01_FRAMESET
public static final int HTML4_01_FRAMESET
- See Also:
- Constant Field Values
-
XHTML1_0_STRICT
public static final int XHTML1_0_STRICT
- See Also:
- Constant Field Values
-
XHTML1_0_TRANSITIONAL
public static final int XHTML1_0_TRANSITIONAL
- See Also:
- Constant Field Values
-
XHTML1_0_FRAMESET
public static final int XHTML1_0_FRAMESET
- See Also:
- Constant Field Values
-
XHTML1_1
public static final int XHTML1_1
- See Also:
- Constant Field Values
-
XHTML1_1_BASIC
public static final int XHTML1_1_BASIC
- See Also:
- Constant Field Values
-
HTML5
public static final int HTML5
- See Also:
- Constant Field Values
-
HTML5_LEGACY_TOOL_COMPATIBLE
public static final int HTML5_LEGACY_TOOL_COMPATIBLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
public boolean isValid()
-
getContent
public String getContent()
-
toString
public String toString()
- Overrides:
toStringin classBaseTokenImpl
-
getType
public int getType()
This will retrieve an integer representing the identified DocType
-
getName
public String getName()
-
serialize
public void serialize(Serializer serializer, Writer writer) throws IOException
- Specified by:
serializein interfaceBaseToken- Throws:
IOException
-
getPublicId
public String getPublicId()
This will retrieve the public ID of an externally referenced DTD, or an empty String if none is referenced.
-
getSystemId
public String getSystemId()
This will retrieve the system ID of an externally referenced DTD, or an empty String if none is referenced.
-
getPart1
public String getPart1()
-
getPart2
public String getPart2()
-
getPart3
@Deprecated public String getPart3()
Deprecated.Deprecated - use getPublicId() instead- Returns:
-
getPart4
@Deprecated public String getPart4()
Deprecated.Deprecated - use getSystemId() instead- Returns:
-
-