Package org.xhtmlrenderer.css.constants
Class Idents
- java.lang.Object
-
- org.xhtmlrenderer.css.constants.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()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
convertIdent(CSSName cssName, java.lang.String ident)
Description of the Methodstatic 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".static boolean
looksLikeABGAttachment(java.lang.String val)
Description of the Methodstatic boolean
looksLikeABGPosition(java.lang.String val)
Description of the Methodstatic boolean
looksLikeABGRepeat(java.lang.String val)
Description of the Methodstatic boolean
looksLikeABorderStyle(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAColor(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAFontSize(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAFontStyle(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAFontVariant(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAFontWeight(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAFunction(java.lang.String value)
static boolean
looksLikeALength(java.lang.String val)
Description of the Methodstatic boolean
looksLikeALineHeight(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAListStyleImage(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAListStylePosition(java.lang.String val)
Description of the Methodstatic boolean
looksLikeAListStyleType(java.lang.String val)
Description of the Methodstatic boolean
looksLikeANumber(java.lang.String val)
static boolean
looksLikeAQuote(java.lang.String content)
static boolean
looksLikeASkipQuote(java.lang.String content)
static boolean
looksLikeAURI(java.lang.String val)
Description of the Method
-
-
-
Method Detail
-
convertIdent
public static java.lang.String convertIdent(CSSName cssName, java.lang.String ident)
Description of the Method- Parameters:
cssName
- PARAMident
- 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)
-
-