Class CSSNamespaceRule

java.lang.Object
com.helger.css.decl.CSSNamespaceRule
All Implemented Interfaces:
ICSSSourceLocationAware, ICSSWriteable

@NotThreadSafe public class CSSNamespaceRule extends Object implements ICSSWriteable, ICSSSourceLocationAware
Represents a single namespace rule on top level.
Example:
@namespace Q "http://example.com/q-markup";
Author:
Philip Helger
  • Constructor Details

    • CSSNamespaceRule

      public CSSNamespaceRule(@Nonnull String sURL)
      Constructor for the default namespace
      Parameters:
      sURL - The namespace URL to use. May not be null.
    • CSSNamespaceRule

      public CSSNamespaceRule(@Nullable String sNamespacePrefix, @Nonnull String sURL)
      Constructor
      Parameters:
      sNamespacePrefix - The namespace prefix to use. May be null or empty for the default namespace.
      sURL - The namespace URL to use. May not be null.
  • Method Details