Package org.w3c.tidy

Class Attribute


  • public class Attribute
    extends java.lang.Object
    HTML attribute.
    Version:
    $Revision: 400 $ ($Author: fgiust $)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private AttrCheck attrchk
      checker for the attribute.
      private boolean literal
      unmodifiable attribute?
      private java.lang.String name
      attribute name.
      private boolean nowrap
      don't wrap attribute.
      private short versions
      html versions for this attribute.
    • Constructor Summary

      Constructors 
      Constructor Description
      Attribute​(java.lang.String attributeName, short htmlVersions, AttrCheck check)
      Instantiates a new Attribute.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AttrCheck getAttrchk()
      Returns the checker for this attribute.
      java.lang.String getName()
      Returns the attribute name.
      short getVersions()
      Returns the html versions in which this attribute is supported.
      boolean isLiteral()
      Is this a literal (unmodifiable) attribute?
      boolean isNowrap()
      Don't wrap this attribute?
      void setLiteral​(boolean isLiteral)
      Is this a literal (unmodifiable) attribute?
      void setNowrap​(boolean isNowrap)
      Don't wrap this attribute?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
        attribute name.
      • nowrap

        private boolean nowrap
        don't wrap attribute.
      • literal

        private boolean literal
        unmodifiable attribute?
      • versions

        private short versions
        html versions for this attribute.
      • attrchk

        private AttrCheck attrchk
        checker for the attribute.
    • Constructor Detail

      • Attribute

        public Attribute​(java.lang.String attributeName,
                         short 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 java.lang.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 short getVersions()
        Returns the html versions in which this attribute is supported.
        Returns:
        html versions for this attribute.
        See Also:
        Dict