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
-
Constructor Details
-
Idents
public Idents()
-
-
Method Details
-
convertIdent
Description of the Method- Parameters:
cssName- PARAMident- PARAM- Returns:
- Returns
-
looksLikeABorderStyle
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAColor
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeALength
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAURI
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFunction
-
looksLikeABGRepeat
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeABGAttachment
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeABGPosition
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAListStyleType
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAListStyleImage
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAListStylePosition
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFontStyle
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFontVariant
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFontWeight
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeAFontSize
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeALineHeight
Description of the Method- Parameters:
val- PARAM- Returns:
- Returns
-
looksLikeANumber
-
getColorHex
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
-
looksLikeASkipQuote
-