Class Idents


  • public final class Idents
    extends java.lang.Object
    Booch utility class for working with ident values in CSS.
    Author:
    Patrick Wright
    • Constructor Summary

      Constructors 
      Constructor Description
      Idents()  
    • Constructor Detail

      • Idents

        public Idents()
    • Method Detail

      • convertIdent

        public static java.lang.String convertIdent​(CSSName cssName,
                                                    java.lang.String ident)
        Description of the Method
        Parameters:
        cssName - PARAM
        ident - PARAM
        Returns:
        Returns
      • looksLikeABorderStyle

        public static boolean looksLikeABorderStyle​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAColor

        public static boolean looksLikeAColor​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeALength

        public static boolean looksLikeALength​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAURI

        public static boolean looksLikeAURI​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAFunction

        public static boolean looksLikeAFunction​(java.lang.String value)
      • looksLikeABGRepeat

        public static boolean looksLikeABGRepeat​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeABGAttachment

        public static boolean looksLikeABGAttachment​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeABGPosition

        public static boolean looksLikeABGPosition​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAListStyleType

        public static boolean looksLikeAListStyleType​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAListStyleImage

        public static boolean looksLikeAListStyleImage​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAListStylePosition

        public static boolean looksLikeAListStylePosition​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAFontStyle

        public static boolean looksLikeAFontStyle​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAFontVariant

        public static boolean looksLikeAFontVariant​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAFontWeight

        public static boolean looksLikeAFontWeight​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeAFontSize

        public static boolean looksLikeAFontSize​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeALineHeight

        public static boolean looksLikeALineHeight​(java.lang.String val)
        Description of the Method
        Parameters:
        val - PARAM
        Returns:
        Returns
      • looksLikeANumber

        public static boolean looksLikeANumber​(java.lang.String val)
      • getColorHex

        public static java.lang.String getColorHex​(java.lang.String value)
        Given a String, returns either the rgb declaration for the color, or the hex declaration; used to cleanup assignments like "red" or "green".
        Parameters:
        value - A String which contains a Color identifier, an rgb assignment or a Color hex value.
        Returns:
        The colorHex value
      • looksLikeAQuote

        public static boolean looksLikeAQuote​(java.lang.String content)
      • looksLikeASkipQuote

        public static boolean looksLikeASkipQuote​(java.lang.String content)