Class CssPageMarginBoxSelector

  • All Implemented Interfaces:
    ICssSelector

    public class CssPageMarginBoxSelector
    extends java.lang.Object
    implements ICssSelector
    ICssSelector implementation for CSS page margin box selectors.
    • Field Detail

      • pageMarginBoxName

        private java.lang.String pageMarginBoxName
        The page margin box name.
      • pageSelector

        private ICssSelector pageSelector
        The page selector.
    • Constructor Detail

      • CssPageMarginBoxSelector

        public CssPageMarginBoxSelector​(java.lang.String pageMarginBoxName,
                                        ICssSelector pageSelector)
        Creates a new CssPageMarginBoxSelector instance.
        Parameters:
        pageMarginBoxName - the page margin box name
        pageSelector - the page selector
    • Method Detail

      • calculateSpecificity

        public int calculateSpecificity()
        Description copied from interface: ICssSelector
        Calculates the specificity.
        Specified by:
        calculateSpecificity in interface ICssSelector
        Returns:
        the specificity
      • matches

        public boolean matches​(INode node)
        Description copied from interface: ICssSelector
        Checks if a node matches the selector.
        Specified by:
        matches in interface ICssSelector
        Parameters:
        node - the node
        Returns:
        true, if the selector is a match for the node