Class Rule


  • public class Rule
    extends java.lang.Object
    A CSS rule, consisting of one or more selectors and a declaration.
    Author:
    Garret Wilson
    • Constructor Summary

      Constructors 
      Constructor Description
      Rule​(Selector... selectors)
      Selectors constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<com.globalmentor.model.NameValuePair<java.lang.String,​java.lang.String>> getDeclarations()  
      java.util.List<Selector> getSelectors()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Rule

        public Rule​(Selector... selectors)
        Selectors constructor.
        Parameters:
        selectors - any selectors to add to the rule.
    • Method Detail

      • getSelectors

        public java.util.List<Selector> getSelectors()
        Returns:
        The list of selectors.
      • getDeclarations

        public java.util.List<com.globalmentor.model.NameValuePair<java.lang.String,​java.lang.String>> getDeclarations()
        Returns:
        The list of declarations.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object