Package org.xhtmlrenderer.css.constants
Class Idents
java.lang.Object
org.xhtmlrenderer.css.constants.Idents
Booch utility class for working with ident values in CSS.
- Author:
- Patrick Wright
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
convertIdent
(CSSName cssName, String ident) Description of the Methodstatic 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".static boolean
Description of the Methodstatic boolean
Description of the Methodstatic boolean
looksLikeABGRepeat
(String val) Description of the Methodstatic boolean
Description of the Methodstatic boolean
looksLikeAColor
(String val) Description of the Methodstatic boolean
looksLikeAFontSize
(String val) Description of the Methodstatic boolean
Description of the Methodstatic boolean
Description of the Methodstatic boolean
Description of the Methodstatic boolean
looksLikeAFunction
(String value) static boolean
looksLikeALength
(String val) Description of the Methodstatic boolean
Description of the Methodstatic boolean
Description of the Methodstatic boolean
Description of the Methodstatic boolean
Description of the Methodstatic boolean
looksLikeANumber
(String val) static boolean
looksLikeAQuote
(String content) static boolean
looksLikeASkipQuote
(String content) static boolean
looksLikeAURI
(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
-