Package com.openhtmltopdf.css.constants
Class Idents
- java.lang.Object
-
- com.openhtmltopdf.css.constants.Idents
-
public final class Idents extends Object
Booch utility class for working with ident values in CSS.- Author:
- Patrick Wright
-
-
Constructor Summary
Constructors Constructor Description Idents()
-
Method Summary
Modifier and Type Method Description static StringconvertIdent(CSSName cssName, String ident)Description of the Methodstatic StringgetColorHex(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".static booleanlooksLikeABGAttachment(String val)Description of the Methodstatic booleanlooksLikeABGPosition(String val)Description of the Methodstatic booleanlooksLikeABGRepeat(String val)Description of the Methodstatic booleanlooksLikeABorderStyle(String val)Description of the Methodstatic booleanlooksLikeAColor(String val)Description of the Methodstatic booleanlooksLikeAFontSize(String val)Description of the Methodstatic booleanlooksLikeAFontStyle(String val)Description of the Methodstatic booleanlooksLikeAFontVariant(String val)Description of the Methodstatic booleanlooksLikeAFontWeight(String val)Description of the Methodstatic booleanlooksLikeAFunction(String value)static booleanlooksLikeALength(String val)Description of the Methodstatic booleanlooksLikeALineHeight(String val)Description of the Methodstatic booleanlooksLikeAListStyleImage(String val)Description of the Methodstatic booleanlooksLikeAListStylePosition(String val)Description of the Methodstatic booleanlooksLikeAListStyleType(String val)Description of the Methodstatic booleanlooksLikeANumber(String val)static booleanlooksLikeAQuote(String content)static booleanlooksLikeASkipQuote(String content)static booleanlooksLikeAURI(String val)Description of the Method
-
-
-
Method Detail
-
convertIdent
public static String convertIdent(CSSName cssName, String ident)
Description of the Method- Parameters:
cssName- PARAMident- PARAM- Returns:
- Returns
-
looksLikeABorderStyle
public static boolean looksLikeABorderStyle(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAColor
public static boolean looksLikeAColor(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeALength
public static boolean looksLikeALength(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAURI
public static boolean looksLikeAURI(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFunction
public static boolean looksLikeAFunction(String value)
-
looksLikeABGRepeat
public static boolean looksLikeABGRepeat(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeABGAttachment
public static boolean looksLikeABGAttachment(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeABGPosition
public static boolean looksLikeABGPosition(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAListStyleType
public static boolean looksLikeAListStyleType(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAListStyleImage
public static boolean looksLikeAListStyleImage(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAListStylePosition
public static boolean looksLikeAListStylePosition(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFontStyle
public static boolean looksLikeAFontStyle(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFontVariant
public static boolean looksLikeAFontVariant(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFontWeight
public static boolean looksLikeAFontWeight(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFontSize
public static boolean looksLikeAFontSize(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeALineHeight
public static boolean looksLikeALineHeight(String val)
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeANumber
public static boolean looksLikeANumber(String val)
-
getColorHex
public static String getColorHex(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(String content)
-
looksLikeASkipQuote
public static boolean looksLikeASkipQuote(String content)
-
-