Class CSSUnknownRule

    • Constructor Detail

      • CSSUnknownRule

        public CSSUnknownRule​(@Nonnull @Nonempty
                              String sDeclaration)
    • Method Detail

      • isValidDeclaration

        public static boolean isValidDeclaration​(@Nonnull @Nonempty
                                                 String sDeclaration)
      • getDeclaration

        @Nonnull
        @Nonempty
        public String getDeclaration()
        Returns:
        The rule declaration string used in the CSS. Neither null nor empty. Always starting with @.
      • getParameterList

        @Nullable
        public String getParameterList()
        Returns:
        The parameter-list of the unknown rule. This is the part between the declaration and the first opening bracket ('{')
      • getBody

        @Nullable
        public String getBody()
        Returns:
        The body of the unknown rule. This is the part between the first opening bracket ('{') and the matching closing bracket ('}').
      • getAsCSSString

        @Nonnull
        @Nonempty
        public String getAsCSSString​(@Nonnull
                                     ICSSWriterSettings aSettings,
                                     @Nonnegative
                                     int nIndentLevel)
        Description copied from interface: ICSSWriteable
        Get the contents of this object as a serialized CSS string for writing to an output.
        Specified by:
        getAsCSSString in interface ICSSWriteable
        Parameters:
        aSettings - The settings to be used to format the output. May not be null.
        nIndentLevel - The current indentation level
        Returns:
        The content of this object as CSS string. Never null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object