Package org.w3c.tidy

Class Attribute

    • Constructor Detail

      • Attribute

        public Attribute​(String attributeName,
                         EnumSet<HtmlVersion> htmlVersions,
                         AttrCheck check)
        Instantiates a new Attribute.
        Parameters:
        attributeName - attribute name
        htmlVersions - versions in which this attribute is supported
        check - AttrCheck instance
    • Method Detail

      • setLiteral

        public void setLiteral​(boolean isLiteral)
        Is this a literal (unmodifiable) attribute?
        Parameters:
        isLiteral - boolean true for a literal attribute
      • setNowrap

        public void setNowrap​(boolean isNowrap)
        Don't wrap this attribute?
        Parameters:
        isNowrap - boolean true= don't wrap
      • getAttrchk

        public AttrCheck getAttrchk()
        Returns the checker for this attribute.
        Returns:
        instance of AttrCheck.
      • isLiteral

        public boolean isLiteral()
        Is this a literal (unmodifiable) attribute?
        Returns:
        true for a literal attribute
      • getName

        public String getName()
        Returns the attribute name.
        Returns:
        attribute name.
      • isNowrap

        public boolean isNowrap()
        Don't wrap this attribute?
        Returns:
        true= don't wrap
      • getVersions

        public EnumSet<HtmlVersion> getVersions()
        Returns the html versions in which this attribute is supported.
        Returns:
        html versions for this attribute.
        See Also:
        Dict