Class DoctypeToken

    • Constructor Detail

      • DoctypeToken

        public DoctypeToken​(java.lang.String part1,
                            java.lang.String part2,
                            java.lang.String part3,
                            java.lang.String part4)
      • DoctypeToken

        public DoctypeToken​(java.lang.String part1,
                            java.lang.String part2,
                            java.lang.String part3,
                            java.lang.String part4,
                            java.lang.String part5)
    • Method Detail

      • clean

        private java.lang.String clean​(java.lang.String s)
      • isValid

        public boolean isValid()
      • validate

        private void validate()
        Checks the doctype according to W3C parsing rules and tries to identify the type and validity See:
        • http://www.w3.org/TR/html-markup/syntax.html#doctype-syntax
        • http://dev.w3.org/html5/html-author/#doctype-declaration
      • getContent

        public java.lang.String getContent()
      • getType

        public int getType()
        This will retrieve an integer representing the identified DocType
      • getName

        public java.lang.String getName()
      • getPublicId

        public java.lang.String getPublicId()
        This will retrieve the public ID of an externally referenced DTD, or an empty String if none is referenced.
      • getSystemId

        public java.lang.String getSystemId()
        This will retrieve the system ID of an externally referenced DTD, or an empty String if none is referenced.
      • getPart1

        public java.lang.String getPart1()
      • getPart2

        public java.lang.String getPart2()
      • getPart3

        @Deprecated
        public java.lang.String getPart3()
        Deprecated.
        Deprecated - use getPublicId() instead
        Returns:
        the third part of the DOCSTRING
      • getPart4

        @Deprecated
        public java.lang.String getPart4()
        Deprecated.
        Deprecated - use getSystemId() instead
        Returns:
        the fourth part of the DOCSTRING