Class ImportRule

  • All Implemented Interfaces:
    Rule

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

      • uri

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

      • ImportRule

        public ImportRule()
    • Method Detail

      • 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 java.lang.String toString​(CSSEngine eng)
        Returns a printable representation of this import rule.
        Specified by:
        toString in interface Rule
        Overrides:
        toString in class MediaRule