Class ImportRule

All Implemented Interfaces:
Rule

public class ImportRule extends MediaRule
This class represents a @import CSS rule.
  • Field Details

    • TYPE

      public static final short TYPE
      The type constant.
      See Also:
    • uri

      protected ParsedURL uri
      The URI of the imported stylesheet.
  • Constructor Details

    • ImportRule

      public ImportRule()
  • Method Details

    • getType

      public short getType()
      Returns a constant identifying the rule type.
      Specified by:
      getType in interface Rule
      Overrides:
      getType in class MediaRule
    • setURI

      public void setURI(ParsedURL u)
      Sets the URI of the imported stylesheet.
    • getURI

      public ParsedURL getURI()
      Returns the URI of the imported stylesheet.
    • toString

      public String toString(CSSEngine eng)
      Returns a printable representation of this import rule.
      Specified by:
      toString in interface Rule
      Overrides:
      toString in class MediaRule